Skip to content

Instantly share code, notes, and snippets.

@kaworu
Created April 26, 2016 08:14
Show Gist options
  • Select an option

  • Save kaworu/dc30ead97d3b44b5cabb67b134362820 to your computer and use it in GitHub Desktop.

Select an option

Save kaworu/dc30ead97d3b44b5cabb67b134362820 to your computer and use it in GitHub Desktop.
/usr/bin/openssl ocsp -issuer bla.sub+ca -cert bla.crt -url http://ocsp.startssl.com/sub/class2/server/ca -header Host ocsp.startssl.com -respout /tmp/ocsp.rv8rDSvf6f
# gdb /usr/bin/openssl openssl.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 `openssl'.
Program terminated with signal 6, Aborted.
(no debugging symbols found)
Loaded symbols for /usr/bin/openssl
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 0x0000097f05f7a4ba in socket () at <stdin>:2
2 <stdin>: No such file or directory.
in <stdin>
(gdb) bt
#0 0x0000097f05f7a4ba in socket () at <stdin>:2
#1 0x0000097f05f74707 in sockaddr_connect (sa=0x97e94810740, socktype=Variable "socktype" is not available.
) at /usr/src/lib/libc/asr/res_send_async.c:307
#2 0x0000097f05f74cf4 in res_send_async_run (as=0x97ee8c09300, ar=0x7f7ffffd1640)
at /usr/src/lib/libc/asr/res_send_async.c:425
#3 0x0000097f05f7657a in *_libc_asr_run (as=0x97ee8c09300, ar=0x7f7ffffd1640) at /usr/src/lib/libc/asr/asr.c:148
#4 0x0000097f05f54266 in res_search_async_run (as=0x97ee8c09c00, ar=0x7f7ffffd1640)
at /usr/src/lib/libc/asr/res_search_async.c:141
#5 0x0000097f05f7657a in *_libc_asr_run (as=0x97ee8c09c00, ar=0x7f7ffffd1640) at /usr/src/lib/libc/asr/asr.c:148
#6 0x0000097f05f53605 in gethostnamadr_async_run (as=0x97f69658200, ar=0x7f7ffffd1640)
at /usr/src/lib/libc/asr/gethostnamadr_async.c:278
#7 0x0000097f05f7657a in *_libc_asr_run (as=0x97f69658200, ar=0x7f7ffffd1640) at /usr/src/lib/libc/asr/asr.c:148
#8 0x0000097f05f765e3 in *_libc_asr_run_sync (as=0x97f69658200, ar=0x7f7ffffd1640) at /usr/src/lib/libc/asr/asr.c:174
#9 0x0000097f05f52f7d in *_libc_gethostbyname2 (name=0x97e94810fa0 "ocsp.startssl.com", af=2)
at /usr/src/lib/libc/asr/gethostnamadr.c:119
#10 0x0000097e962b94bd in BIO_get_host_ip (str=0x97e94810fa0 "ocsp.startssl.com", ip=0x97ebbd4e91c "")
at /usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/bio/b_sock.c:90
#11 0x0000097e9628fcad in conn_state (b=0x97ee8c08a00, c=0x97ebbd4e900)
at /usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/bio/bss_conn.c:169
#12 0x0000097e962900ba in conn_ctrl (b=0x97ee8c08a00, cmd=Variable "cmd" is not available.
)
at /usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/bio/bss_conn.c:447
#13 0x0000097c94433f43 in enc_main () from /usr/bin/openssl
#14 0x0000097c94435c24 in enc_main () from /usr/bin/openssl
#15 0x0000097c94437406 in enc_main () from /usr/bin/openssl
#16 0x0000097c94437d0b in enc_main () from /usr/bin/openssl
#17 0x0000097c9441df21 in ?? () from /usr/bin/openssl
#18 0x0000000000000000 in ?? ()
Current language: auto; currently asm
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment