Skip to content

Instantly share code, notes, and snippets.

@sdstrowes
Created April 23, 2013 22:48
Show Gist options
  • Save sdstrowes/5448080 to your computer and use it in GitHub Desktop.
Save sdstrowes/5448080 to your computer and use it in GitHub Desktop.
sds@ubuntu-12-04:~$ gdb ./spin
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 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-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/sds/spin...done.
(gdb) r
Starting program: /home/sds/spin
^C
Program received signal SIGINT, Interrupt.
0x00007ffff7adb020 in __nanosleep_nocancel () at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) generate-core-file
warning: Memory read failed for corefile section, 1048576 bytes at 0x7ffff7bd0000.
Saved corefile core.3332
(gdb) quit
A debugging session is active.
Inferior 1 [process 3332] will be killed.
Quit anyway? (y or n) y
sds@ubuntu-12-04:~$
sds@ubuntu-12-04:~$
sds@ubuntu-12-04:~$ gdb ./spin core.3332
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 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-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/sds/spin...done.
[New LWP 3332]
Core was generated by `spin'.
Program terminated with signal 2, Interrupt.
#0 0x00007ffff7adb020 in __nanosleep_nocancel () at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt
#0 0x00007ffff7adb020 in __nanosleep_nocancel () at ../sysdeps/unix/syscall-template.S:82
#1 0x00007ffff7adaedc in __sleep (seconds=0) at ../sysdeps/unix/sysv/linux/sleep.c:138
#2 0x0000000000400502 in main () at spin.c:6
(gdb) quit
sds@ubuntu-12-04:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment