failed to map segment from shared object: Cannot allocate memory
Sylvain Pasche
sylvain_pasche@yahoo.fr
Fri Aug 9 15:20:00 GMT 2002
Hi,
I ve seen that this thread has already been covered before (handling
breakpoints in shared objects), but I did not manage to find a
solution to this problem:
I want to debug a program which dlopen a shared object. If the
breakpoing inside the shared object, then the programs fails in
dlopen, and returns an error:
(taken from wine)
err:module:BUILTIN32_dlopen failed to load .so lib for builtin
user32.dll: libgdi32.dll.so: failed to map segment from shared object:
Cannot allocate memory
I don't know if this problem is specific to gdb, as the error message
comes from glibc in dlopen. Or maybe specific to linux ? Looks like
the breakpoints seems to be confusing mmap.
Is there a workaround for this problem, or has anyone an idea about it ?
Regards
Sylvain
More information about the Gdb
mailing list