This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/571: Cant view stack trace on alpha core file when target linked to -lpthread -lexc
- From: eric dot ayers at compgen dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 15 Jun 2002 10:38:12 -0000
- Subject: gdb/571: Cant view stack trace on alpha core file when target linked to -lpthread -lexc
- Reply-to: eric dot ayers at compgen dot com
>Number: 571
>Category: gdb
>Synopsis: Cant view stack trace on alpha core file when target linked to -lpthread -lexc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 15 03:48:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: eric.ayers@compgen.com
>Release: gdb-5.2, gdb+dejagnu-20020614
>Organization:
>Environment:
Compaq Tru64 (OSF/1) 4.0f, 5.1a
Compiled gdb using native 'cc' compiler
>Description:
When an executable is compiled with threads support, gdb
cannot read the stack trace of the resulting core file.
The stack traces always look similar to:
(gdb) set heuristic-fence 10000000
(gdb) where
#0 0x000003ff805b0c18 in __nxm_thread_kill () from /usr/shlib/libpthread.so
#1 0x000003ff805a0830 in pthread_kill () from /usr/shlib/libpthread.so
#2 0x000003ff805b3da0 in __excInit () from /usr/shlib/libpthread.so
#3 0x000003ff807e3710 in exc_unwind_rfp () from /usr/shlib/libexc.so
#4 0x000003ff807e3810 in exc_unwind () from /usr/shlib/libexc.so
#5 0x000003ff807e3acc in exc_raise_signal_exception () from /usr/shlib/libexc.so
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x86
This warning occurs if you are debugging a function without any symbols
(for example, in a stripped executable). In that case, you may wish to
increase the size of the search with the `set heuristic-fence-post' command.
>How-To-Repeat:
Here is the test program:
/* compile with
gcc -g test_compaq_crash.c -o test_compaq_crash -lpthread -lexc
*/
#include <stdio.h>
int main (int argc, char * argv[])
{
printf ("Hello World!\n");
*(int *)0 = 1;
}
compile and run the program and allow it to generate a core file
gdb test_compaq_crash core
(gdb) where
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: