Guest User

Untitled

a guest
Apr 6th, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. GNU gdb (GDB) 7.9
  2. Copyright (C) 2015 Free Software Foundation, Inc.
  3. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  4. This is free software: you are free to change and redistribute it.
  5. There is NO WARRANTY, to the extent permitted by law. Type "show copying"
  6. and "show warranty" for details.
  7. This GDB was configured as "x86_64-unknown-linux-gnu".
  8. Type "show configuration" for configuration details.
  9. For bug reporting instructions, please see:
  10. <http://www.gnu.org/software/gdb/bugs/>.
  11. Find the GDB manual and other documentation resources online at:
  12. <http://www.gnu.org/software/gdb/documentation/>.
  13. For help, type "help".
  14. Type "apropos word" to search for commands related to "word"...
  15. Reading symbols from lc...done.
  16. (gdb) r
  17. Starting program: /home/simon/GitClone/programmes/lc
  18. [Thread debugging using libthread_db enabled]
  19. Using host libthread_db library "/usr/lib/libthread_db.so.1".
  20. [New Thread 0x7ffff781a700 (LWP 5940)]
  21.  
  22. Program received signal SIGSEGV, Segmentation fault.
  23. [Switching to Thread 0x7ffff781a700 (LWP 5940)]
  24. 0x00007ffff789b20a in strlen () from /usr/lib/libc.so.6
  25. (gdb) bt
  26. #0 0x00007ffff789b20a in strlen () from /usr/lib/libc.so.6
  27. #1 0x00007ffff78851ec in puts () from /usr/lib/libc.so.6
  28. #2 0x0000000000400adb in count_lines (args=0x7fffffffe578)
  29. at lc.c:28
  30. #3 0x00007ffff7bc5374 in start_thread ()
  31. from /usr/lib/libpthread.so.0
  32. #4 0x00007ffff790327d in clone () from /usr/lib/libc.so.6
  33. (gdb) frame 2
  34. #2 0x0000000000400adb in count_lines (args=0x7fffffffe578)
  35. at lc.c:28
  36. 28 printf("%s\n", tinfo->file);
  37. (gdb) print tinfo->file
  38. $1 = 0x437469472f6e6f6d <error: Cannot access memory at address 0x437469472f6e6f6d>
Advertisement
Add Comment
Please, Sign In to add comment