caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Unix.chdir and backtrace
@ 2003-08-23 13:58 david.fox
  2003-08-23 16:59 ` Eric C. Cooper
  2003-08-25  7:14 ` [Caml-list] DOMINOCAML release charles@laposte
  0 siblings, 2 replies; 3+ messages in thread
From: david.fox @ 2003-08-23 13:58 UTC (permalink / raw)
  To: caml-list

Just a quick note to let everyone know that backtrace stops working
when your program uses Unix.chdir to change directory and argv[0] is a
relative pathname, like "./foo".  The output of strace shows it trying
to open ./foo and failing.  It might be a good idea to apply
realpath(3) to this path before the program runs.  Not a big deal, but
maybe I can save someone the half hour I spent tracking this down.

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-08-25  7:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-23 13:58 [Caml-list] Unix.chdir and backtrace david.fox
2003-08-23 16:59 ` Eric C. Cooper
2003-08-25  7:14 ` [Caml-list] DOMINOCAML release charles@laposte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).