Version : 1.0.1j
Platform : mips64

The client is trying to reach a server that does not exist. And we are
trying to free the ssl peer. It has probably tried a retransmission after 1
second and SSL_connect returned ERR_WANT. Any help here is greatly
appreciated.

Please let me know if you need any more information from the core. This
issue is not easily reproducible though.

Thanks,
Shreyas Heranjal

[New LWP 1782]
[New LWP 1895]
Core was generated by `/usr/sbin/client_proc -f'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000000000 in ?? ()
#0  0x0000000000000000 in ?? ()
#1  0x000000fff7c936d8 in EVP_MD_CTX_cleanup (ctx=0x12055d840) at
digest.c:385
#2  0x000000fff7c93624 in EVP_MD_CTX_destroy (ctx=0x12055d840) at
digest.c:371
#3  0x000000fff7e40c40 in ssl_clear_hash_ctx (hash=0x120589d58) at
ssl_lib.c:3296
#4  0x000000fff7e38d34 in SSL_free (s=0x120589c80) at ssl_lib.c:559
#5  0x00000001200424a0 in my_peer_delete (p_global=0x1200ea9e0 <g_global>,
p_peerdb_hash=0x120186070, p_peerdb_dll=0x1200eb950 <g_global+3952>,
p_peer=0x1205d3370,
    conn_flag=PEER_ERR_DISCONNECT_VBOND) at my_peer.c:1159
#6  0x00000001200419a0 in global_delete_other_peers (p_global=0x1200ea9e0
<g_global>, peer_not_to_be_deleted=0x120640d10,
wan_if=0x12052e990, p_peerdb_hash=0x120186070,
    p_peerdb_dll=0x1200eb950 <g_vbond+3952>) at my_peer.c:1018
#7  0x000000012003e7e0 in ssl_connect_timer_cb (p_timer=0x12058bf00,
peer=0x120640d10, arg2=0x0, arg3=0x0, arg4=0x0) at my_peer.c:359
#8  0x00000001200a5970 in timer_exec_pri (p_mgr=0x120398090,
p_pri=0x1203a4108, p_starttime=0xffffdff258, msecs=100) at timer.c:612
#9  0x00000001200a5334 in timer_exec (p_mgr=0x120398090,
pri_mask=TIMER_PRI_MASK_ALL, msecs=100) at timer.c:504
#10 0x0000000120022890 in vbond_base_timer_cb (base_timer_fd=-1, what=1,
vbond=0x1200ea9e0 <g_vbond>) at client.c:4524
#11 0x000000fff7ebe06c in event_process_active_single_queue
(base=0x120397af0, activeq=0x120397fe0) at
/usr/src/debug/libevent/2.0.21-r3/libevent-2.0.21-stable/event.c:1350
#12 0x000000fff7ebe3b8 in event_process_active (base=0x120397af0) at
/usr/src/debug/libevent/2.0.21-r3/libevent-2.0.21-stable/event.c:1420
#13 0x000000fff7ebeddc in event_base_loop (base=0x120397af0, flags=0) at
/usr/src/debug/libevent/2.0.21-r3/libevent-2.0.21-stable/event.c:1621
#14 0x0000000120025510 in global_main (p_cfg=0xffffdff460) at client.c:5304
#15 0x0000000120027b0c in main (argc=2, argv=0xffffdffd18) at client.c:5875


(gdb) p *ctx->digest
$3 = {
  type = 99,
  pkey_type = 807388864,
  md_size = 99,
  flags = 426009151184,
  init = 0x63301fc6d0 <main_arena+312>,
  update = 0x63301fc6e0 <main_arena+328>,
  final = 0x63301fc6e0 <main_arena+328>,
  copy = 0x63301fc6f0 <main_arena+344>,
  cleanup = 0x63301fc6f0 <main_arena+344>,
  sign = 0x63301fc700 <main_arena+360>,
  verify = 0x63301fc700 <main_arena+360>,
  required_pkey_type = {99, 807388944, 99, 807388944, 1},
  block_size = 542358544,
  ctx_size = 1,
  md_ctrl = 0x63301fc730 <main_arena+408>
}
(gdb)

(gdb) frame 4
#4  0x000000fff7e38d34 in SSL_free (s=0x120589c80) at ssl_lib.c:559
559 ssl_clear_hash_ctx(&s->read_hash);
(gdb) p *s
$4 = {
  version = 65279,
  type = 4096,
  method = 0xfff7e74e28 <DTLSv1_client_method_data.14990>,
  rbio = 0x120538800,
  wbio = 0x120538800,
  bbio = 0x0,
  rwstate = 3,
  in_handshake = 0,
  handshake_func = 0xfff7e29a88 <dtls1_connect>,
  server = 0,
  new_session = 0,
  quiet_shutdown = 0,
  shutdown = 0,
  state = 4384,
  rstate = 240,
  init_buf = 0x12058fc00,
  init_msg = 0x0,
  init_num = 0,
  init_off = 0,
  packet = 0x120551c33 "\001 T\003\300",
  packet_length = 0,
  s2 = 0x0,
  s3 = 0x1205d40c0,
  d1 = 0x1205c9850,
  read_ahead = 1,
  msg_callback = 0x0,
  msg_callback_arg = 0x0,
  hit = 0,
  param = 0x12055efa0,
  cipher_list = 0x0,
  cipher_list_by_id = 0x0,
  mac_flags = 0,
  enc_read_ctx = 0x0,
  read_hash = 0x12055d840,
  expand = 0x0,
  enc_write_ctx = 0x0,
  write_hash = 0x0,
  compress = 0x0,
  cert = 0x12052f1a0,
  sid_ctx_length = 0,
  sid_ctx = '\000' <repeats 31 times>,
  session = 0x12055cad0,
  generate_session_id = 0x0,
  verify_mode = 5,
  verify_callback = 0x12000f7e0 <vdaemon_verify_callback>,
  info_callback = 0x0,
  error = 0,
  error_code = 0,
  psk_client_callback = 0x0,
  psk_server_callback = 0x0,
  ctx = 0x120530d40,
  debug = 0,
  verify_result = 0,
  ex_data = {
    sk = 0x0,
    dummy = 0
  },
  client_CA = 0x0,
  references = 0,
  options = 4100,
  mode = 0,
  max_cert_list = 102400,
  first_packet = 0,
  client_version = 65279,
  max_send_fragment = 16384,
  tlsext_debug_cb = 0x0,
  tlsext_debug_arg = 0x0,
  tlsext_hostname = 0x0,
  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 = 0,
  tlsext_ecpointformatlist_length = 0,
  tlsext_ecpointformatlist = 0x0,
  tlsext_ellipticcurvelist_length = 0,
  tlsext_ellipticcurvelist = 0x0,
  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 = 0x120530d40,
  next_proto_negotiated = 0x0,
  next_proto_negotiated_len = 0 '\000',
  srtp_profiles = 0x0,
  srtp_profile = 0x0,
  tlsext_heartbeat = 0,
  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)

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to