From owner-freebsd-bugs Sun Jul 6 11:40:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA01487 for bugs-outgoing; Sun, 6 Jul 1997 11:40:05 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA01467; Sun, 6 Jul 1997 11:40:02 -0700 (PDT) Resent-Date: Sun, 6 Jul 1997 11:40:02 -0700 (PDT) Resent-Message-Id: <199707061840.LAA01467@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, dirk.meyer@dinoex.sub.org Received: from mail.Contrib.Com (mail.Contrib.Com [194.77.12.8]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA01131 for ; Sun, 6 Jul 1997 11:32:57 -0700 (PDT) Received: from net2.dinoex.sub.org (net2.dinoex.sub.de [193.203.172.193]) by mail.Contrib.Com (8.8.4/8.8.4) with SMTP id UAA10805 for ; Sun, 6 Jul 1997 20:32:48 +0200 (MET DST) Received: by net2.dinoex.sub.org (Smail3.1.29.1 #1) id m0wkwBs-000DzsC; Sun, 6 Jul 97 20:37 CEST Message-Id: Date: Sun, 6 Jul 97 20:37 CEST From: dinoex@net2.dinoex.sub.org Reply-To: dirk.meyer@dinoex.sub.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: gnu/4042: gdb stackframe in static library shows not the calling function Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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 void main( void ) { size_t len; printf( "a\n" ); len = strlen( NULL ); printf( "b\n" ); } /* EOF */ >Fix: none. >Audit-Trail: >Unformatted: