[root@karine peroyvind]# gdb s2ram GNU gdb 6.3-7mdv2007.0 (Mandriva Linux release 2007.0) Copyright 2004 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 "i586-mandriva-linux-gnu"...Using host libthread_db library "/lib/i686/libthread_db.so.1". (gdb) start Breakpoint 1 at 0x8049440: file s2ram.c, line 268. Starting program: /sbin/s2ram Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0xbfffe000 main (argc=Cannot access memory at address 0xa7416a64 ) at s2ram.c:268 268 { (gdb) continue Continuing. Program received signal SIGSEGV, Segmentation fault. 0xb7e2914b in strlen () from /lib/i686/libc.so.6 (gdb) bt full #0 0xb7e2914b in strlen () from /lib/i686/libc.so.6 No symbol table info available. #1 0x080490b8 in match (t=0x8053d80 "A08", s=0x1
) at s2ram.c:103 No locals. #2 0x0804917b in machine_match () at s2ram.c:121 i = 42 #3 0x08049635 in main (argc=Cannot access memory at address 0x1 ) at s2ram.c:331 i = Variable "i" is not available. (gdb) next Single stepping until exit from function strlen, which has no line number information. Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. (gdb)