|
(gdb) p *ssl
|
|
$1 = {version = 771, type = 4096,
|
|
method = 0x7f09b3177740 <TLSv1_2_client_method_data.15997>, rbio = 0x7f0978019d20,
|
|
wbio = 0x7f0978019d20, bbio = 0x0, rwstate = 3, in_handshake = 0,
|
|
handshake_func = 0x7f09b2f39870 <ssl3_connect>, server = 0, new_session = 0,
|
|
quiet_shutdown = 0, shutdown = 1, state = 3, rstate = 240, init_buf = 0x0,
|
|
init_msg = 0x7f09780035c4, init_num = 0, init_off = 0, packet = 0x7f097801d543 "",
|
|
packet_length = 0, s2 = 0x0, s3 = 0x7f0978018190, d1 = 0x0, read_ahead = 0,
|
|
msg_callback = 0x0, msg_callback_arg = 0x0, hit = 0, param = 0x7f0978019990,
|
|
cipher_list = 0x0, cipher_list_by_id = 0x0, mac_flags = 0,
|
|
enc_read_ctx = 0x7f097802c2a0, read_hash = 0x7f097802c3f0, expand = 0x0,
|
|
enc_write_ctx = 0x7f097802fcc0, write_hash = 0x7f097802fb30, compress = 0x0,
|
|
cert = 0x7f097801a0c0, sid_ctx_length = 0, sid_ctx = '\000' <repeats 31 times>,
|
|
session = 0x7f097801d220, generate_session_id = 0x0, verify_mode = 1,
|
|
verify_callback = 0x7f09b31b6ad0 <ossl_ssl_verify_callback>, info_callback = 0x0,
|
|
error = 0, error_code = 0, psk_client_callback = 0x0, psk_server_callback = 0x0,
|
|
ctx = 0x7f0978019dd0, debug = 0, verify_result = 0, ex_data = {sk = 0x7f09780190b0,
|
|
dummy = 0}, client_CA = 0x0, references = 1, options = 18446744071562071039,
|
|
mode = 17, max_cert_list = 102400, first_packet = 0, client_version = 771,
|
|
max_send_fragment = 16384, tlsext_debug_cb = 0x0, tlsext_debug_arg = 0x0,
|
|
tlsext_hostname = 0x7f0978002620 "www.google.com", servername_done = 0,
|
|
tlsext_status_type = -1, tlsext_status_expected = 0, tlsext_ocsp_ids = 0x0,
|
|
tlsext_ocsp_exts = 0x0, tlsext_ocsp_resp = 0x0, tlsext_ocsp_resplen = -1,
|
|
tlsext_ticket_expected = 1, tlsext_ecpointformatlist_length = 3,
|
|
tlsext_ecpointformatlist = 0x7f097801ab90 "", tlsext_ellipticcurvelist_length = 50,
|
|
tlsext_ellipticcurvelist = 0x7f0978018650 "", tlsext_opaque_prf_input = 0x0,
|
|
tlsext_opaque_prf_input_len = 0, tlsext_session_ticket = 0x0,
|
|
tls_session_ticket_ext_cb = 0x0, tls_session_ticket_ext_cb_arg = 0x0,
|
|
tls_session_secret_cb = 0x0, tls_session_secret_cb_arg = 0x0,
|
|
initial_ctx = 0x7f0978019dd0, next_proto_negotiated = 0x0,
|
|
next_proto_negotiated_len = 0 '\000', srtp_profiles = 0x0, srtp_profile = 0x0,
|
|
tlsext_heartbeat = 1, tlsext_hb_pending = 0, tlsext_hb_seq = 0, renegotiate = 0,
|
|
srp_ctx = {SRP_cb_arg = 0x0, TLS_ext_srp_username_callback = 0x0,
|
|
SRP_verify_param_callback = 0x0, SRP_give_srp_client_pwd_callback = 0x0,
|
|
login = 0x0, N = 0x0, g = 0x0, s = 0x0, B = 0x0, A = 0x0, a = 0x0, b = 0x0, v = 0x0,
|
|
info = 0x0, strength = 1024, srp_Mask = 0}}
|
|
|
|
(gdb) p *(ssl->rbio)
|
|
$2 = {method = 0x7f09b2f076e0 <methods_sockp>, callback = 0x0, cb_arg = 0x0, init = 1,
|
|
shutdown = 0, flags = 0, retry_reason = 0, num = 11, ptr = 0x0, next_bio = 0x0,
|
|
prev_bio = 0x0, references = 1, num_read = 2130, num_write = 498, ex_data = {sk = 0x0,
|
|
dummy = 0}}
|
|
|
|
|
|
(gdb) bt
|
|
#0 0x00007f09c2cdb3ed in read () from /usr/lib/libpthread.so.0
|
|
#1 0x00007f09b2c0db9a in sock_read () from /usr/lib/libcrypto.so.1.0.0
|
|
#2 0x00007f09b2c0b689 in BIO_read () from /usr/lib/libcrypto.so.1.0.0
|
|
#3 0x00007f09b2f3de9a in ssl3_read_n () from /usr/lib/libssl.so.1.0.0
|
|
#4 0x00007f09b2f3f555 in ssl3_read_bytes () from /usr/lib/libssl.so.1.0.0
|
|
#5 0x00007f09b2f3be00 in ssl3_shutdown () from /usr/lib/libssl.so.1.0.0
|
|
#6 0x00007f09b31b4d1a in ossl_ssl_shutdown (ssl=0x7f0978019660) at ossl_ssl.c:987
|
|
#7 ossl_ssl_free (ssl=0x7f0978019660) at ossl_ssl.c:998
|
|
#8 0x000000000041f19f in run_final (obj=16301320, objspace=<optimized out>) at gc.c:3033
|
|
#9 finalize_list (objspace=objspace@entry=0xf7d8a0, p=0xf8bd08) at gc.c:2055
|
|
#10 0x00000000004231e6 in finalize_deferred (objspace=0xf7d8a0) at gc.c:3049
|
|
#11 rb_gc () at gc.c:3172
|
|
#12 rb_gc_start () at gc.c:2646
|
|
|
|
LSOF Output:
|
|
|
|
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
|
|
ruby 30475 bpot cwd DIR 8,5 39 155801623 /home/bpot/ssl_debug
|
|
ruby 30475 bpot rtd DIR 8,5 4096 128 /
|
|
ruby 30475 bpot txt REG 8,5 10577499 404941753 /opt/rubies/ruby-1.9.3-p374/bin/ruby
|
|
ruby 30475 bpot mem REG 8,5 11423 287528559 /opt/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/x86_64-linux/fcntl.so
|
|
ruby 30475 bpot mem REG 8,5 53539 287528563 /opt/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/x86_64-linux/digest.so
|
|
ruby 30475 bpot mem REG 8,5 2396987 288183917 /usr/lib/libcrypto.so.1.0.0
|
|
ruby 30475 bpot mem REG 8,5 488027 288183916 /usr/lib/libssl.so.1.0.0
|
|
ruby 30475 bpot mem REG 8,5 1510181 287528545 /opt/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/x86_64-linux/openssl.so
|
|
ruby 30475 bpot mem REG 8,5 84840 314812261 /usr/lib/libresolv-2.17.so
|
|
ruby 30475 bpot mem REG 8,5 22936 314812127 /usr/lib/libnss_dns-2.17.so
|
|
ruby 30475 bpot mem REG 8,5 52144 287068261 /usr/lib/libnss_files-2.17.so
|
|
ruby 30475 bpot mem REG 8,5 108238 287528542 /opt/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/x86_64-linux/stringio.so
|
|
ruby 30475 bpot mem REG 8,5 88656 316733533 /usr/lib/libz.so.1.2.7
|
|
ruby 30475 bpot mem REG 8,5 253826 287528535 /opt/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/x86_64-linux/zlib.so
|
|
ruby 30475 bpot mem REG 8,5 606190 287528540 /opt/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/x86_64-linux/socket.so
|
|
ruby 30475 bpot mem REG 8,5 25064 404941454 /opt/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
|
|
ruby 30475 bpot mem REG 8,5 19672 287528928 /opt/rubies/ruby-1.9.3-p374/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
|
|
ruby 30475 bpot mem REG 8,5 2035539 287068248 /usr/lib/libc-2.17.so
|
|
ruby 30475 bpot mem REG 8,5 1038744 287068249 /usr/lib/libm-2.17.so
|
|
ruby 30475 bpot mem REG 8,5 35160 314812151 /usr/lib/libcrypt-2.17.so
|
|
ruby 30475 bpot mem REG 8,5 14648 314812153 /usr/lib/libdl-2.17.so
|
|
ruby 30475 bpot mem REG 8,5 31744 287068251 /usr/lib/librt-2.17.so
|
|
ruby 30475 bpot mem REG 8,5 138206 314812147 /usr/lib/libpthread-2.17.so
|
|
ruby 30475 bpot mem REG 8,5 165436 314812149 /usr/lib/ld-2.17.so
|
|
ruby 30475 bpot mem REG 8,5 1607632 404698871 /usr/lib/locale/locale-archive
|
|
ruby 30475 bpot 0u CHR 136,5 0t0 8 /dev/pts/5
|
|
ruby 30475 bpot 1u CHR 136,5 0t0 8 /dev/pts/5
|
|
ruby 30475 bpot 2u CHR 136,5 0t0 8 /dev/pts/5
|
|
ruby 30475 bpot 3w REG 8,5 37542 182998803 /var/log/slim.log
|
|
ruby 30475 bpot 4r FIFO 0,8 0t0 1356446 pipe
|
|
ruby 30475 bpot 5w FIFO 0,8 0t0 1356446 pipe
|
|
ruby 30475 bpot 6u IPv4 1370762 0t0 TCP stunna:46041->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 7u IPv4 1370785 0t0 TCP stunna:46048->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 8u IPv4 1370789 0t0 TCP stunna:46049->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 9u IPv4 1370771 0t0 TCP stunna:46045->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 10u IPv4 1368772 0t0 TCP stunna:46042->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 12u IPv4 1371256 0t0 TCP stunna:46028->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 14u IPv4 1371268 0t0 TCP stunna:46035->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 15u IPv4 1370733 0t0 TCP stunna:46030->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 18u IPv4 1370749 0t0 TCP stunna:46036->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 19u IPv4 1370767 0t0 TCP stunna:46044->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 21u IPv4 1370745 0t0 TCP stunna:46034->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 22u IPv4 1370753 0t0 TCP stunna:46037->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 23u IPv4 1368761 0t0 TCP stunna:46038->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 24u IPv4 1370775 0t0 TCP stunna:46046->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 25u IPv4 1368766 0t0 TCP stunna:46040->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
ruby 30475 bpot 26u IPv4 1370780 0t0 TCP stunna:46047->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
|
|
|