I tried running gnat-gps with dmalloc preloaded:

DMALLOC_OPTIONS=debug=0x4f48d03,inter=100,log=logfile
export DMALLOC_OPTIONS
LD_PRELOAD=libdmalloc.so gnat-gps

However when I chose option (1) on the welcome screen:

debug-malloc library: dumping program, fatal error
   Error: cannot locate pointer in heap (err 22)
Aborted (core dumped)

According to the dmalloc docs, this means:

22 (ERROR_NOT_FOUND) cannot locate pointer in heap 
Cannot locate pointer in heap. The user passed in a pointer which the heap did 
not know about.
Either this pointer was allocated by some other mechanism (like mmap or sbrk 
directly) or it
is a random invalid pointer.  In some rare circumstances, sometimes seen with 
shared libraries,
there can be two separate copies of the dmalloc library in a program. Each one 
does not know
about the pointers allocated by the other.

Presumably another possibility is that it is pointing to a variable
that is not on the heap, eg one that is on the stack.

I hope this inspires you :)

PS: In your instructions for reproducing, you say
"then click on Browse".  I see no "Browse" - what
do you mean exactly?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to