public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/24490]  New: gcc / gdb backtrace problem
@ 2005-10-23  4:08 kev dot gilbert at cdu dot edu dot au
  2005-10-23 14:12 ` [Bug debug/24490] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: kev dot gilbert at cdu dot edu dot au @ 2005-10-23  4:08 UTC (permalink / raw)
  To: gcc-bugs

Environment:

gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ./configure  : (reconfigured) ./configure
--enable-languages=c,c++,fortran,java,objc --no-create --no-recursion
Thread model: posix
gcc version 4.1.0 20051022 (experimental)

====

Program:

#include <stdlib.h>

int main( int argc, char** argv )
{   abort( );
    return 0;
}

====

Compile command:

gcc -O0 -ggdb -o test test.c

====

When run under 'gdb' then using the 'bt' commands results in

#0  0xffffe410 in __kernel_vsyscall ()
#1  0x00afa118 in raise () from /lib/libc.so.6
#2  0x00afb888 in abort () from /lib/libc.so.6
#3  0x080483a5 in main (argc=Could not find the frame base for "main".) at
test.c:4

====

Works correctly with:

gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--host=i386-redhat-linux
Thread model: posix
gcc version 4.0.1 20050727 (Red Hat 4.0.1-5)

====

backtrace then gives:

0  0xffffe410 in __kernel_vsyscall ()
#1  0x00afa118 in raise () from /lib/libc.so.6
#2  0x00afb888 in abort () from /lib/libc.so.6
#3  0x080483a5 in main (argc=Could not find the frame base for "main".) at
test.c:4


-- 
           Summary: gcc / gdb backtrace problem
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kev dot gilbert at cdu dot edu dot au


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24490


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-11-14 21:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-23  4:08 [Bug c/24490] New: gcc / gdb backtrace problem kev dot gilbert at cdu dot edu dot au
2005-10-23 14:12 ` [Bug debug/24490] " pinskia at gcc dot gnu dot org
2005-10-23 14:34 ` [Bug debug/24490] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-10-23 22:13 ` kev dot gilbert at cdu dot edu dot au
2005-10-31  6:40 ` mmitchel at gcc dot gnu dot org
2005-11-01  2:45 ` wilson at gcc dot gnu dot org
2005-11-01 23:22 ` wilson at gcc dot gnu dot org
2005-11-01 23:55 ` kev dot gilbert at cdu dot edu dot au
2005-11-02  0:00 ` pinskia at gcc dot gnu dot org
2005-11-14 21:09 ` wilson at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).