Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Unix.chdir and backtrace
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: david.fox@l...
Subject: [Caml-list] Unix.chdir and backtrace
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