Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GNU gdb (GDB) 7.9
- Copyright (C) 2015 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 "x86_64-unknown-linux-gnu".
- Type "show configuration" for configuration details.
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/gdb/bugs/>.
- Find the GDB manual and other documentation resources online at:
- <http://www.gnu.org/software/gdb/documentation/>.
- For help, type "help".
- Type "apropos word" to search for commands related to "word"...
- Reading symbols from lc...done.
- (gdb) r
- Starting program: /home/simon/GitClone/programmes/lc
- [Thread debugging using libthread_db enabled]
- Using host libthread_db library "/usr/lib/libthread_db.so.1".
- [New Thread 0x7ffff781a700 (LWP 5940)]
- Program received signal SIGSEGV, Segmentation fault.
- [Switching to Thread 0x7ffff781a700 (LWP 5940)]
- 0x00007ffff789b20a in strlen () from /usr/lib/libc.so.6
- (gdb) bt
- #0 0x00007ffff789b20a in strlen () from /usr/lib/libc.so.6
- #1 0x00007ffff78851ec in puts () from /usr/lib/libc.so.6
- #2 0x0000000000400adb in count_lines (args=0x7fffffffe578)
- at lc.c:28
- #3 0x00007ffff7bc5374 in start_thread ()
- from /usr/lib/libpthread.so.0
- #4 0x00007ffff790327d in clone () from /usr/lib/libc.so.6
- (gdb) frame 2
- #2 0x0000000000400adb in count_lines (args=0x7fffffffe578)
- at lc.c:28
- 28 printf("%s\n", tinfo->file);
- (gdb) print tinfo->file
- $1 = 0x437469472f6e6f6d <error: Cannot access memory at address 0x437469472f6e6f6d>
Advertisement
Add Comment
Please, Sign In to add comment