From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14822 invoked by alias); 23 Oct 2005 04:08:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 14807 invoked by uid 48); 23 Oct 2005 04:08:33 -0000 Date: Sun, 23 Oct 2005 04:08:00 -0000 Subject: [Bug c/24490] New: gcc / gdb backtrace problem X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kev dot gilbert at cdu dot edu dot au" X-SW-Source: 2005-10/txt/msg02975.txt.bz2 List-Id: 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 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