This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
failed to map segment from shared object: Cannot allocate memory
- From: Sylvain Pasche <sylvain_pasche at yahoo dot fr>
- To: <gdb at sources dot redhat dot com>
- Date: Sat, 10 Aug 2002 00:20:30 +0200
- Subject: failed to map segment from shared object: Cannot allocate memory
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