[erlang-bugs] Debugging strips compile module_info

Dominic Williams xpdoka@REDACTED
Wed Oct 25 10:21:07 CEST 2006


Hello,

It appears that any kind of debugging activity strips
compile information from the module_info.
This is very inconvenient when debugging 24/7 systems which
use this information, e.g. for automatic code upgrades...

The problem exists from at least R8, through to R11, and at
least on Linux and MacOSX.

MacOSX 10.4.7, R11B1:

Eshell V5.5.1  (abort with ^G)
1> compile:file(foo, [debug_info]).
{ok,foo}
2> foo:module_info(compile).
[{options,[debug_info]},
{version,"4.4.1"},
{time,{2006,10,19,20,41,43}},
{source,"/Users/xpdoka/tmp/foo.erl"}]
3> int:i(foo).
{module,foo}
4> foo:module_info(compile).
[]

Linux FC4, R10B10:

Eshell V5.4.13  (abort with ^G)
1> compile:file(foo, [debug_info]).
compile:file(foo, [debug_info]).
{ok,foo}
2> foo:module_info(compile).
foo:module_info(compile).
[{options,[debug_info]},
{version,"4.3.12"},
{time,{2006,10,19,14,52,41}},
{source,"/home/dw/tmp/foo.erl"}]
3> int:i(foo).
int:i(foo).
{module,foo}
4> foo:module_info(compile).
foo:module_info(compile).
[]

Linux FC4, R8:

Eshell V5.1.2  (abort with ^G)
1> compile:file(foo, [debug_info]).
compile:file(foo, [debug_info]).
{ok,foo}
2> foo:module_info(compile).
foo:module_info(compile).
[{options,[v3,debug_info]},{version,"4.0.1"},{time,{2006,10,19,14,58,54}}]
3> int:i(foo).
int:i(foo).
{module,foo}
4> foo:module_info(compile).
foo:module_info(compile).
[]

Regards,

Dominic Williams
http://www.dominicwilliams.net

----









More information about the erlang-bugs mailing list