Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Debugging

By: a guest on Feb 1st, 2014  |  syntax: None  |  size: 2.50 KB  |  views: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. (gdb) run `python -c 'print "A"*128'`
  2. The program being debugged has been started already.
  3. Start it from the beginning? (y or n) y
  4. Starting program: /Users/****/test2 `python -c 'print "A"*128'`
  5. buffer: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  6.  
  7. Program received signal SIGSEGV, Segmentation fault.
  8. 0x0000000100000f5f in main ()
  9. (gdb) info registers
  10. rax            0x0      0
  11. rbx            0x0      0
  12. rcx            0x0      0
  13. rdx            0x7fff7857f618   140735212418584
  14. rsi            0x10000000100    1099511628032
  15. rdi            0x103    259
  16. rbp            0x4141414141414141       0x4141414141414141
  17. rsp            0x7fff5fbffb68   0x7fff5fbffb68
  18. r8             0x40     64
  19. r9             0x7fff5fbff900   140734799804672
  20. r10            0x100000f0a      4294971146
  21. r11            0x246    582
  22. r12            0x0      0
  23. r13            0x0      0
  24. r14            0x0      0
  25. r15            0x0      0
  26. rip            0x100000f5f      0x100000f5f <main+79>
  27. eflags         0x10206  [ PF IF RF ]
  28. cs             0x2b     43
  29. ss             *value not available*
  30. ds             *value not available*
  31. es             *value not available*
  32. fs             0x0      0
  33. gs             0x0      0
  34. (gdb) bt
  35. #0  0x0000000100000f5f in main ()
  36. (gdb) return
  37. Make selected stack frame return now? (y or n) y
  38. warning: Mach error at "i386-darwin-nat.c:190" in function "void i386_darwin_store_inferior_registers(struct target_ops *, struct regcache *, int)": (os/kern) invalid argument (0x4)
  39. #0  0x4141414141414141 in ?? ()
  40. (gdb) bt
  41. #0  0x4141414141414141 in ?? ()
  42. #1  0x4141414141414141 in ?? ()
  43. #2  0x4141414141414141 in ?? ()
  44. #3  0x4141414141414141 in ?? ()
  45. #4  0x4141414141414141 in ?? ()
  46. #5  0x0000000000000000 in ?? ()
  47. (gdb) info registers
  48. rax            0x0      0
  49. rbx            0x0      0
  50. rcx            0x0      0
  51. rdx            0x7fff7857f618   140735212418584
  52. rsi            0x10000000100    1099511628032
  53. rdi            0x103    259
  54. rbp            0x4141414141414141       0x4141414141414141
  55. rsp            0x7fff5fbffb70   0x7fff5fbffb70
  56. r8             0x40     64
  57. r9             0x7fff5fbff900   140734799804672
  58. r10            0x100000f0a      4294971146
  59. r11            0x246    582
  60. r12            0x0      0
  61. r13            0x0      0
  62. r14            0x0      0
  63. r15            0x0      0
  64. rip            0x4141414141414141       0x4141414141414141
  65. eflags         0x10206  [ PF IF RF ]
  66. cs             0x2b     43
  67. ss             *value not available*
  68. ds             *value not available*
  69. es             *value not available*
  70. fs             0x0      0
  71. gs             0x0      0
  72. (gdb)