[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#627132: New "-custom" binary generation breaks stack backtraces



clone 627132 -1
retitle -1 Sys.executable_name is not set properly by caml_startup_code
severity -1 important
thanks

Le 20/05/2011 03:11, Stephen McCamant a écrit :
I haven't checked the source code for this, but my first guess is that
the program might be trying to find its own executable by looking in
$PATH (/home/smcc/bin through /sbin) and the current directory. The
reason it's currently failing is that it's using "" as the program
name, which is of course incorrect. This maybe would work well enough
if the program used argv[0] instead of "", but using /proc/self/exe
would really be better, IMO.

This is a bug. Sys.executable_name is not set properly by caml_startup_code, which is called by code generated by -output-obj.

--
Stéphane



Reply to: