[5412] in testers
GCC 3.2.2
daemon@ATHENA.MIT.EDU (Omri Schwarz)
Tue May 20 17:42:45 2003
Message-Id: <200305202142.RAA14893@alice-whacker.mit.edu>
To: testers@MIT.EDU
From: "Omri Schwarz" <ocschwar@MIT.EDU>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 20 May 2003 17:42:41 -0400
Compile this file:
#include <unistd.h>
void foo(){
pause();
}
main(){
foo();
}
With these flags:
gcc -g -o test test.c
And run GDB:
athena% gdb test
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "i386-redhat-linux-gnu"...
(gdb) run
Starting program: /afs/athena.mit.edu/user/o/c/ocschwar/rebuild/Attilla/test
Program received signal SIGINT, Interrupt.
0xffffe002 in ?? ()
(gdb) where
#0 0xffffe002 in ?? ()
#1 0x0804834a in main () at test.c:8
#2 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) q
The program is running. Exit anyway? (y or n) y
Something is very wrong here.