info.txt

Bob Potter, 03/23/2013 10:32 AM

Download (8.4 KB)

 
1
(gdb) p *ssl
2
$1 = {version = 771, type = 4096, 
3
  method = 0x7f09b3177740 <TLSv1_2_client_method_data.15997>, rbio = 0x7f0978019d20, 
4
  wbio = 0x7f0978019d20, bbio = 0x0, rwstate = 3, in_handshake = 0, 
5
  handshake_func = 0x7f09b2f39870 <ssl3_connect>, server = 0, new_session = 0, 
6
  quiet_shutdown = 0, shutdown = 1, state = 3, rstate = 240, init_buf = 0x0, 
7
  init_msg = 0x7f09780035c4, init_num = 0, init_off = 0, packet = 0x7f097801d543 "", 
8
  packet_length = 0, s2 = 0x0, s3 = 0x7f0978018190, d1 = 0x0, read_ahead = 0, 
9
  msg_callback = 0x0, msg_callback_arg = 0x0, hit = 0, param = 0x7f0978019990, 
10
  cipher_list = 0x0, cipher_list_by_id = 0x0, mac_flags = 0, 
11
  enc_read_ctx = 0x7f097802c2a0, read_hash = 0x7f097802c3f0, expand = 0x0, 
12
  enc_write_ctx = 0x7f097802fcc0, write_hash = 0x7f097802fb30, compress = 0x0, 
13
  cert = 0x7f097801a0c0, sid_ctx_length = 0, sid_ctx = '\000' <repeats 31 times>, 
14
  session = 0x7f097801d220, generate_session_id = 0x0, verify_mode = 1, 
15
  verify_callback = 0x7f09b31b6ad0 <ossl_ssl_verify_callback>, info_callback = 0x0, 
16
  error = 0, error_code = 0, psk_client_callback = 0x0, psk_server_callback = 0x0, 
17
  ctx = 0x7f0978019dd0, debug = 0, verify_result = 0, ex_data = {sk = 0x7f09780190b0, 
18
    dummy = 0}, client_CA = 0x0, references = 1, options = 18446744071562071039, 
19
  mode = 17, max_cert_list = 102400, first_packet = 0, client_version = 771, 
20
  max_send_fragment = 16384, tlsext_debug_cb = 0x0, tlsext_debug_arg = 0x0, 
21
  tlsext_hostname = 0x7f0978002620 "www.google.com", servername_done = 0, 
22
  tlsext_status_type = -1, tlsext_status_expected = 0, tlsext_ocsp_ids = 0x0, 
23
  tlsext_ocsp_exts = 0x0, tlsext_ocsp_resp = 0x0, tlsext_ocsp_resplen = -1, 
24
  tlsext_ticket_expected = 1, tlsext_ecpointformatlist_length = 3, 
25
  tlsext_ecpointformatlist = 0x7f097801ab90 "", tlsext_ellipticcurvelist_length = 50, 
26
  tlsext_ellipticcurvelist = 0x7f0978018650 "", tlsext_opaque_prf_input = 0x0, 
27
  tlsext_opaque_prf_input_len = 0, tlsext_session_ticket = 0x0, 
28
  tls_session_ticket_ext_cb = 0x0, tls_session_ticket_ext_cb_arg = 0x0, 
29
  tls_session_secret_cb = 0x0, tls_session_secret_cb_arg = 0x0, 
30
  initial_ctx = 0x7f0978019dd0, next_proto_negotiated = 0x0, 
31
  next_proto_negotiated_len = 0 '\000', srtp_profiles = 0x0, srtp_profile = 0x0, 
32
  tlsext_heartbeat = 1, tlsext_hb_pending = 0, tlsext_hb_seq = 0, renegotiate = 0, 
33
  srp_ctx = {SRP_cb_arg = 0x0, TLS_ext_srp_username_callback = 0x0, 
34
    SRP_verify_param_callback = 0x0, SRP_give_srp_client_pwd_callback = 0x0, 
35
    login = 0x0, N = 0x0, g = 0x0, s = 0x0, B = 0x0, A = 0x0, a = 0x0, b = 0x0, v = 0x0, 
36
    info = 0x0, strength = 1024, srp_Mask = 0}}
37

    
38
(gdb) p *(ssl->rbio)
39
$2 = {method = 0x7f09b2f076e0 <methods_sockp>, callback = 0x0, cb_arg = 0x0, init = 1, 
40
  shutdown = 0, flags = 0, retry_reason = 0, num = 11, ptr = 0x0, next_bio = 0x0, 
41
  prev_bio = 0x0, references = 1, num_read = 2130, num_write = 498, ex_data = {sk = 0x0, 
42
    dummy = 0}}
43

    
44

    
45
(gdb) bt
46
#0  0x00007f09c2cdb3ed in read () from /usr/lib/libpthread.so.0
47
#1  0x00007f09b2c0db9a in sock_read () from /usr/lib/libcrypto.so.1.0.0
48
#2  0x00007f09b2c0b689 in BIO_read () from /usr/lib/libcrypto.so.1.0.0
49
#3  0x00007f09b2f3de9a in ssl3_read_n () from /usr/lib/libssl.so.1.0.0
50
#4  0x00007f09b2f3f555 in ssl3_read_bytes () from /usr/lib/libssl.so.1.0.0
51
#5  0x00007f09b2f3be00 in ssl3_shutdown () from /usr/lib/libssl.so.1.0.0
52
#6  0x00007f09b31b4d1a in ossl_ssl_shutdown (ssl=0x7f0978019660) at ossl_ssl.c:987
53
#7  ossl_ssl_free (ssl=0x7f0978019660) at ossl_ssl.c:998
54
#8  0x000000000041f19f in run_final (obj=16301320, objspace=<optimized out>) at gc.c:3033
55
#9  finalize_list (objspace=objspace@entry=0xf7d8a0, p=0xf8bd08) at gc.c:2055
56
#10 0x00000000004231e6 in finalize_deferred (objspace=0xf7d8a0) at gc.c:3049
57
#11 rb_gc () at gc.c:3172
58
#12 rb_gc_start () at gc.c:2646
59

    
60
LSOF Output:
61

    
62
COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF      NODE NAME
63
ruby    30475 bpot  cwd    DIR     8,5       39 155801623 /home/bpot/ssl_debug
64
ruby    30475 bpot  rtd    DIR     8,5     4096       128 /
65
ruby    30475 bpot  txt    REG     8,5 10577499 404941753 /opt/rubies/ruby-1.9.3-p374/bin/ruby
66
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
67
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
68
ruby    30475 bpot  mem    REG     8,5  2396987 288183917 /usr/lib/libcrypto.so.1.0.0
69
ruby    30475 bpot  mem    REG     8,5   488027 288183916 /usr/lib/libssl.so.1.0.0
70
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
71
ruby    30475 bpot  mem    REG     8,5    84840 314812261 /usr/lib/libresolv-2.17.so
72
ruby    30475 bpot  mem    REG     8,5    22936 314812127 /usr/lib/libnss_dns-2.17.so
73
ruby    30475 bpot  mem    REG     8,5    52144 287068261 /usr/lib/libnss_files-2.17.so
74
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
75
ruby    30475 bpot  mem    REG     8,5    88656 316733533 /usr/lib/libz.so.1.2.7
76
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
77
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
78
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
79
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
80
ruby    30475 bpot  mem    REG     8,5  2035539 287068248 /usr/lib/libc-2.17.so
81
ruby    30475 bpot  mem    REG     8,5  1038744 287068249 /usr/lib/libm-2.17.so
82
ruby    30475 bpot  mem    REG     8,5    35160 314812151 /usr/lib/libcrypt-2.17.so
83
ruby    30475 bpot  mem    REG     8,5    14648 314812153 /usr/lib/libdl-2.17.so
84
ruby    30475 bpot  mem    REG     8,5    31744 287068251 /usr/lib/librt-2.17.so
85
ruby    30475 bpot  mem    REG     8,5   138206 314812147 /usr/lib/libpthread-2.17.so
86
ruby    30475 bpot  mem    REG     8,5   165436 314812149 /usr/lib/ld-2.17.so
87
ruby    30475 bpot  mem    REG     8,5  1607632 404698871 /usr/lib/locale/locale-archive
88
ruby    30475 bpot    0u   CHR   136,5      0t0         8 /dev/pts/5
89
ruby    30475 bpot    1u   CHR   136,5      0t0         8 /dev/pts/5
90
ruby    30475 bpot    2u   CHR   136,5      0t0         8 /dev/pts/5
91
ruby    30475 bpot    3w   REG     8,5    37542 182998803 /var/log/slim.log
92
ruby    30475 bpot    4r  FIFO     0,8      0t0   1356446 pipe
93
ruby    30475 bpot    5w  FIFO     0,8      0t0   1356446 pipe
94
ruby    30475 bpot    6u  IPv4 1370762      0t0       TCP stunna:46041->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
95
ruby    30475 bpot    7u  IPv4 1370785      0t0       TCP stunna:46048->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
96
ruby    30475 bpot    8u  IPv4 1370789      0t0       TCP stunna:46049->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
97
ruby    30475 bpot    9u  IPv4 1370771      0t0       TCP stunna:46045->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
98
ruby    30475 bpot   10u  IPv4 1368772      0t0       TCP stunna:46042->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
99
ruby    30475 bpot   12u  IPv4 1371256      0t0       TCP stunna:46028->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
100
ruby    30475 bpot   14u  IPv4 1371268      0t0       TCP stunna:46035->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
101
ruby    30475 bpot   15u  IPv4 1370733      0t0       TCP stunna:46030->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
102
ruby    30475 bpot   18u  IPv4 1370749      0t0       TCP stunna:46036->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
103
ruby    30475 bpot   19u  IPv4 1370767      0t0       TCP stunna:46044->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
104
ruby    30475 bpot   21u  IPv4 1370745      0t0       TCP stunna:46034->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
105
ruby    30475 bpot   22u  IPv4 1370753      0t0       TCP stunna:46037->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
106
ruby    30475 bpot   23u  IPv4 1368761      0t0       TCP stunna:46038->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
107
ruby    30475 bpot   24u  IPv4 1370775      0t0       TCP stunna:46046->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
108
ruby    30475 bpot   25u  IPv4 1368766      0t0       TCP stunna:46040->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
109
ruby    30475 bpot   26u  IPv4 1370780      0t0       TCP stunna:46047->dfw06s17-in-f20.1e100.net:https (CLOSE_WAIT)
110