Skip to content

Instantly share code, notes, and snippets.

@i3luefire
Last active December 26, 2015 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save i3luefire/3b1177deef1ef473735b to your computer and use it in GitHub Desktop.
Save i3luefire/3b1177deef1ef473735b to your computer and use it in GitHub Desktop.
# gdb ntpd ntpd.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd5.9"...(no debugging symbols found)
Core was generated by `ntpd'.
Program terminated with signal 4, Illegal instruction.
(no debugging symbols found)
Loaded symbols for /usr/sbin/ntpd
Reading symbols from /usr/lib/libm.so.9.0...done.
Loaded symbols for /usr/lib/libm.so.9.0
Reading symbols from /usr/lib/libutil.so.12.1...done.
Loaded symbols for /usr/lib/libutil.so.12.1
Reading symbols from /usr/lib/libtls.so.10.0...done.
Loaded symbols for /usr/lib/libtls.so.10.0
Reading symbols from /usr/lib/libssl.so.38.0...done.
Loaded symbols for /usr/lib/libssl.so.38.0
Reading symbols from /usr/lib/libcrypto.so.37.0...done.
Loaded symbols for /usr/lib/libcrypto.so.37.0
Reading symbols from /usr/lib/libc.so.84.2...done.
Loaded symbols for /usr/lib/libc.so.84.2
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0 0x000001a1dc940dda in poll () at <stdin>:2
2 <stdin>: No such file or directory.
in <stdin>
(gdb) x/i $pc
0x1a1dc940dda <poll+10>: jb 0x1a1dc940dc0 <rand+48>
Current language: auto; currently asm
(gdb) q
# gdb tmux tmux.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd5.9"...(no debugging symbols found)
Core was generated by `tmux'.
Program terminated with signal 4, Illegal instruction.
(no debugging symbols found)
Loaded symbols for /usr/bin/tmux
Reading symbols from /usr/lib/libutil.so.12.1...done.
Loaded symbols for /usr/lib/libutil.so.12.1
Reading symbols from /usr/lib/libcurses.so.14.0...done.
Loaded symbols for /usr/lib/libcurses.so.14.0
Reading symbols from /usr/lib/libevent.so.4.1...done.
Loaded symbols for /usr/lib/libevent.so.4.1
Reading symbols from /usr/lib/libc.so.84.2...done.
Loaded symbols for /usr/lib/libc.so.84.2
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0 0x000007684b5a8e2a in kevent () at <stdin>:2
2 <stdin>: No such file or directory.
in <stdin>
(gdb) x/i $pc
0x7684b5a8e2a <kevent+10>: jb 0x7684b5a8e10 <_libc___p_type+16>
Current language: auto; currently asm
(gdb) q
# gdb ftp ftp.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd5.9"...(no debugging symbols found)
Core was generated by `ftp'.
Program terminated with signal 4, Illegal instruction.
(no debugging symbols found)
Loaded symbols for /usr/bin/ftp
Reading symbols from /usr/lib/libedit.so.5.2...done.
Loaded symbols for /usr/lib/libedit.so.5.2
Reading symbols from /usr/lib/libcurses.so.14.0...done.
Loaded symbols for /usr/lib/libcurses.so.14.0
Reading symbols from /usr/lib/libutil.so.12.1...done.
Loaded symbols for /usr/lib/libutil.so.12.1
Reading symbols from /usr/lib/libtls.so.10.0...done.
Loaded symbols for /usr/lib/libtls.so.10.0
Reading symbols from /usr/lib/libssl.so.38.0...done.
Loaded symbols for /usr/lib/libssl.so.38.0
Reading symbols from /usr/lib/libcrypto.so.37.0...done.
Loaded symbols for /usr/lib/libcrypto.so.37.0
Reading symbols from /usr/lib/libc.so.84.2...done.
Loaded symbols for /usr/lib/libc.so.84.2
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0 0x000015e1b2bbf2c8 in read () at <stdin>:2
2 <stdin>: No such file or directory.
in <stdin>
(gdb) bt
#0 0x000015e1b2bbf2c8 in read () at <stdin>:2
#1 0x000015e1b2bdd274 in __sread (cookie=0x15e1b3013100, buf=Variable "buf" is not available.
) at /usr/src/lib/libc/stdio/stdio.c:49
#2 0x000015e1b2bdccaa in __srefill (fp=0x15e1b3013100) at /usr/src/lib/libc/stdio/refill.c:116
#3 0x000015e1b2bdcb00 in *_libc_fread (buf=Variable "buf" is not available.
) at /usr/src/lib/libc/stdio/fread.c:92
#4 0x000015debf10fe5c in complete () from /usr/bin/ftp
#5 0x000015debf110658 in complete () from /usr/bin/ftp
#6 0x000015debf118314 in intr () from /usr/bin/ftp
#7 0x000015debf107cb1 in ?? () from /usr/bin/ftp
#8 0x0000000000000000 in ?? ()
Current language: auto; currently asm
(gdb) x/i $pc
0x15e1b2bbf2c8 <read+8>: syscall
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment