1828219 Members
1786 Online
109975 Solutions
New Discussion

Segmentation fault

 

Segmentation fault

I have found a segmentation error for a c++ application:

Program terminated with signal 11, Segmentation fault.
SEGV_MAPERR - Address not mapped to object
Error trying to get information about dynamic linker.
#0 0xc0000000000cc260 in ()

can anyone help me...
Thanks in advance.
Regards,
Subrat
2 REPLIES 2
Hein van den Heuvel
Honored Contributor

Re: Segmentation fault

What is the history here?
Is this a new program?
Home grown or 3rd party?
Did it ever work?
What changed?

If I had to investigate this problem for real, then I would start with analyzing the progam you are trying to run with 'ldd' and check the PATH, LD_LIBRARY_PATH and application environment variables.

Check the man pages for ldd and dld.sl

If that did not point me in the right direction, then I would run the program with trace, let the (reams of) output scroll by untill the problem happens. Then scroll back a screen or two looking for a failing (dlopen?) call.


Hope this helps some,
Hein van den Heuvel (at gmail dot com)
HvdH Performance Consulting


Dennis Handly
Acclaimed Contributor

Re: Segmentation fault

What version of gdb do you have? The latest is 5.6.

Was the above output from a core file? If you have a corefile, you must debug it on the system it occurs, or use the packcore/unpackcore commands to move it to another system.

The address above looks like you are aborting in a readonly shared lib. Can you get a stack trace with "bt"?

Once you get that, you could compile with -g so you can query the local variables of the function in question.