Finding an address in a link map

I have a program that has SIGSEGV’D. It was not compiled with debug.

There is an IP= and a mapaddr= address in the SIGSEGV dump line. But
neither of these seem to compare to anything that makes any sense in
the link map.

How can I get from one of these addresses to the name of the routine
that faulted in the program?

GDB could do that using a core file. But only if it was compiled with debug,
AFAIK.

“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:c085gp$746$1@inn.qnx.com

I have a program that has SIGSEGV’D. It was not compiled with debug.

There is an IP= and a mapaddr= address in the SIGSEGV dump line. But
neither of these seem to compare to anything that makes any sense in
the link map.

How can I get from one of these addresses to the name of the routine
that faulted in the program?

Bill Caroselli wrote:

I have a program that has SIGSEGV’D. It was not compiled with debug.

There is an IP= and a mapaddr= address in the SIGSEGV dump line. But
neither of these seem to compare to anything that makes any sense in
the link map.

How can I get from one of these addresses to the name of the routine
that faulted in the program?

mapaddr usually refers to the offset within a shared lib.
ip is the actual (loaded address) where the fault happened,
so you might be able to work out what shared lib was mapped
at that address, then objdump it to find out where in the
library it faulted?

Sunil.