Skip to content

Instantly share code, notes, and snippets.

@awreece
Created October 28, 2014 06:02
Show Gist options
  • Save awreece/616b2104a77b96fbb9f1 to your computer and use it in GitHub Desktop.
Save awreece/616b2104a77b96fbb9f1 to your computer and use it in GitHub Desktop.
% gdb ./a.out core
GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
Copyright (C) 2014 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".
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 ./driver-debug...done.
warning: core file may not match specified executable file.
[New LWP 9365]
Core was generated by `/bin/sh ./wrapper.sh'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f79b558767a in ?? ()
(gdb) bt
#0 0x00007f79b558767a in ?? ()
#1 0x00007f79b5abce0c in ?? ()
#2 0x00007ffffbdfda7c in ?? ()
#3 0x00007f79b7690650 in ?? ()
#4 0x0000000000000011 in ?? ()
#5 0x0000000000000000 in ?? ()
#!/bin/sh
./a.out arg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment