Date: Sun, 6 Jul 97 20:37 CEST From: dinoex@net2.dinoex.sub.org To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: gnu/4042: gdb stackframe in static library shows not the calling function Message-ID: <m0wkwBs-000DzsC@net2.dinoex.sub.org> Resent-Message-ID: <199707061840.LAA01467@hub.freebsd.org>
index | next in thread | raw e-mail
>Number: 4042
>Category: gnu
>Synopsis: gdb stackframe in static library shows not the calling function
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 6 11:40:01 PDT 1997
>Last-Modified:
>Originator: Dirk Meyer
>Organization:
privat
>Release: FreeBSD 2.2.1-RELEASE i386
>Environment:
>Description:
gdb doesn't sho the calling stack
in a function of a static linked library.
if an error ocurrs in the function,
ther is no information of the calling stack frame.
>How-To-Repeat:
compile the folowing sample, run it under gdb,
show the calling stack.
/*
st.c
gcc: 2.7.2.1
gdb: GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc.
cc st.c -static -g
gdb a.out
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc...
(gdb) run
Starting program: /var/spool/dinoex/hub/a.out
a
Program received signal SIGSEGV, Segmentation fault.
0x11b5 in strlen ()
(gdb) bt
#0 0x11b5 in strlen ()
#1 0x0 in ?? ()
(gdb) quit
The program is running. Quit anyway (and kill it)? (y or n) y
*/
#include <string.h>
void main( void )
{
size_t len;
printf( "a\n" );
len = strlen( NULL );
printf( "b\n" );
}
/* EOF */
>Fix:
none.
>Audit-Trail:
>Unformatted:
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0wkwBs-000DzsC>
