Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
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 Archives:
Bug reports: FAQ:
Beginner's list: