This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]