  user@debian:~/triage$ gdb ./heap_overflow
  GNU gdb 7.7.1
  (gdb) r
  Starting program: /home/user/triage/heap_overflow

  Program received signal SIGSEGV, Segmentation fault.
  0x0804862b in main ()

  (gdb) x/i $pc
  => 0x804862b <main+112>:       mov     (%eax),%eax

  (gdb) info registers $eax
  eax            0x41414141      1094795585

  (gdb) x/5i $pc
  => 0x804862b <main+112>:       mov    (%eax),%eax
     0x804862d <main+114>:       sub    $0xc,%esp
     0x8048630 <main+117>:       pushl  -0x10(%ebp)
     0x8048633 <main+120>:       call   *%eax
     0x8048635 <main+122>:       add    $0x10,%esp

  (gdb) disassemble
  Dump of assembler code for function main:
     ...
     0x08048626 <+107>:          mov    -0x10(%ebp),%eax
     0x08048629 <+110>:          mov    (%eax),%eax
  => 0x0804862b <+112>:          mov    (%eax),%eax
     0x0804862d <+114>:          sub    $0xc,%esp
     0x08048630 <+117>:          pushl  -0x10(%ebp)
     0x08048633 <+120>:          call   *%eax

  (gdb) x/w $ebp-0x10
  0xbffff708:     0x0804a030

  (gdb) x/4w 0x0804a030
  0x804a030:      0x41414141     0x41414141     0x41414141     0x41414141

  (gdb) info proc mappings
  process 4578
  Mapped address spaces:

      Start Addr    End Addr     Size   Offset   objfile
       0x8048000   0x8049000   0x1000      0x0   /home/user/triage/heap_overflow
       0x8049000   0x804a000   0x1000      0x0   /home/user/triage/heap_overflow
       0x804a000   0x806b000  0x21000      0x0   [heap]
       0xb7cce000  0xb7cd0000  0x2000      0x0
       0xb7cd0000  0xb7e77000 0x1a7000     0x0   /lib/libc-2.19.so
