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