gdb In Action
$ gdb overflow
...<snip>

(gdb) run `perl -e 'print "A"x412'`
Starting program: /home/thegnome/Projects/dc214/overflow `perl –e 'print "A"x412'`
Subroutine output: AAAA...<snip>

Program received signal SIGSEGV, Segmentation fault.
0x00244151 in _dl_relocate_object_terminal () from /lib/ld-linux.so.2
(gdb) run `perl -e 'print "A"x416'`
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /home/thegnome/Projects/dc214/overflow `perl -e 'print "A"x416'`
Subroutine output: AAAA...<snip>

Program received signal SIGSEGV, Segmentation fault.
0x41414141 in ?? ()
(gdb) info reg eip
eip            0x41414141       0x41414141