Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct node{
- int value;
- node* next;
- };
- int main(){
- node* b;
- b->value=1;
- linkedList a;
- ...
- Wed Mar 29; 15:59:29; marton;~/documents/github/fmi_summer_2017/daa/bfs ; $ gdb a.out
- GNU gdb (GDB; openSUSE Leap 42.1) 7.11.1
- Copyright (C) 2016 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-suse-linux".
- Type "show configuration" for configuration details.
- For bug reporting instructions, please see:
- <http://bugs.opensuse.org/>.
- 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 a.out...done.
- (gdb) start
- Temporary breakpoint 1 at 0x4008f5: file main.cpp, line 5.
- Starting program: /home/marton/documents/github/fmi_summer_2017/daa/bfs/a.out
- step
- Temporary breakpoint 1, main () at main.cpp:5
- 5 b->value=1;
- (gdb) step
- Program received signal SIGSEGV, Segmentation fault.
- 0x00000000004008f9 in main () at main.cpp:5
- 5 b->value=1;
- (gdb)
- Program terminated with signal SIGSEGV, Segmentation fault.
- The program no longer exists.
- (gdb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement