Cannot analyze coredump using shared library
mcm57_at_gmx.at
Date: 06/17/05
- Next message: Bernhard Agthe: "Re: PLEASE HELP - Another Makefile related question"
- Previous message: cpptutor2000_at_yahoo.com: "Re: PLEASE HELP - Another Makefile related question"
- Next in thread: Stefan Klemm: "Re: Cannot analyze coredump using shared library"
- Reply: Stefan Klemm: "Re: Cannot analyze coredump using shared library"
- Reply: Paul Pluzhnikov: "Re: Cannot analyze coredump using shared library"
- Reply: John Reiser: "Re: Cannot analyze coredump using shared library"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 17 Jun 2005 01:01:30 -0700
Note - Cross-posting: I've posted this question to alt.linux.redhat
yesterday but did not get any hint until now. So please excuse this
crossposting.
-------------------------------------------------------------
I've the problem, that it is not possible to analyse core dump files
using gdb (or ddd which is built on gdb) when the crash (access
violation) occures inside a sahred library.
Details:
Program test is linked with shared library testlib.so. Debugging the
program works normally. All symbols are visible, breakpoints can be set
inside test and testlib etc.
When an access violation (termination signal) occures while executing
code in test a coredump is written. This coredump can be loaded into
gdd and "backtrace" shows sufficient information (after loading the
symbolinformation from image test)
When an access violation (termination signal) occures while executing
code in testlib (the shared library) a coredump is written, too. This
coredump can be loaded into gdd but "backtrace" does not display any
useful information, i.e.
(gdb) backtrace
#0 0xb6873fc6 in ?? ()
#1 0x00000001 in ?? ()
#2 0x00000004 in ?? ()
#3 0x00000001 in ?? ()
#4 0xbfffa758 in ?? ()
#5 0xb755b909 in ?? ()
#6 0x00000001 in ?? ()
#7 0x08048bea in _IO_stdin_used ()
Cannot access memory at address 0x8048b64
I've loaded the symbols from test ("symbol-file test"). But this does
not held. There's a add-symbol-file command. Maybe I have to load the
symbols from the shareable library. But how can I get the name of the
right .so library ? (info share returns "No shared libraries loaded at
this time.") And how can I get the address value required by
add-symbol-file ?
A scan with google did not reveal a solution.
I'm not sure whether this is possible at all. Maybe information cannot
be retrieved per design.
But maybe I missed some commands.
Or I have to set up coredumps different.
Or...
Does anyone suggestions ?
Is there a way to check the contents aof the core dump ?
The main goal for me is to analze WHERE the crash occured,
and if possible to get a traceback stack.
Thanks
Klaus
- Next message: Bernhard Agthe: "Re: PLEASE HELP - Another Makefile related question"
- Previous message: cpptutor2000_at_yahoo.com: "Re: PLEASE HELP - Another Makefile related question"
- Next in thread: Stefan Klemm: "Re: Cannot analyze coredump using shared library"
- Reply: Stefan Klemm: "Re: Cannot analyze coredump using shared library"
- Reply: Paul Pluzhnikov: "Re: Cannot analyze coredump using shared library"
- Reply: John Reiser: "Re: Cannot analyze coredump using shared library"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|