Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-3952

SSLNetVConnection::free crashes when "nh" is not initialized

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0.1, 6.1.0
    • Component/s: SSL
    • Labels:

      Description

      On failure to making a connection, the nh is not init'ed in netVC and ::free crashes on a null pointer.

      Below's the backtrace:

      (gdb) bt
      #0 0x00000000006da394 in Queue<UnixNetVConnection, UnixNetVConnection::Link_read_ready_link>::remove (this=0x38, e=0x2b46c5b97e10) at ../../lib/ts/List.h:251
      #1 0x000000000072bb47 in SSLNetVConnection::free (this=0x2b46c5b97e10, t=0x2b4568000010) at SSLNetVConnection.cc:630
      #2 0x00000000007430c9 in UnixNetVConnection::connectUp (this=0x2b46c5b97e10, t=0x2b4568000010, fd=-1) at UnixNetVConnection.cc:1269
      #3 0x000000000073dbf8 in UnixNetProcessor::connect_re_internal (this=0x1029960, cont=0x2b4a5ca1c5c0, target=0x2b4a5ca1c870, opt=0x2b456bc36de0, 
      servername=0x2b476c6c9530 "md2liveorigin02.atlas.cdn.md2.yahoo.com") at UnixNetProcessor.cc:255
      #4 0x0000000000521d23 in NetProcessor::connect_re (this=0x1029960, cont=0x2b4a5ca1c5c0, addr=0x2b4a5ca1c870, opts=0x2b456bc36de0, 
      servername=0x2b476c6c9530 "md2liveorigin02.atlas.cdn.md2.yahoo.com") at ../iocore/net/P_UnixNetProcessor.h:87
      #5 0x00000000005db17e in HttpSM::do_http_server_open (this=0x2b4a5ca1c5c0, raw=false) at HttpSM.cc:4759
      #6 0x00000000005e2d4d in HttpSM::set_next_state (this=0x2b4a5ca1c5c0) at HttpSM.cc:7128
      #7 0x00000000005e2178 in HttpSM::call_transact_and_set_next_state (this=0x2b4a5ca1c5c0, f=0) at HttpSM.cc:6945
      #8 0x00000000005d2afc in HttpSM::state_cache_open_write (this=0x2b4a5ca1c5c0, event=1109, data=0xffffffffffffb04f) at HttpSM.cc:2415
      #9 0x00000000005d31cd in HttpSM::main_handler (this=0x2b4a5ca1c5c0, event=1109, data=0xffffffffffffb04f) at HttpSM.cc:2522
      #10 0x00000000004f8d4c in Continuation::handleEvent (this=0x2b4a5ca1c5c0, event=1109, data=0xffffffffffffb04f) at ../iocore/eventsystem/I_Continuation.h:146
      #11 0x00000000005bef39 in HttpCacheSM::open_write (this=0x2b4a5ca1d7d0, url=0x2b4a5ca1c730, request=0x2b4a5ca1c8d0, old_info=0x2b46b5738320, pin_in_cache=0, retry=true, 
      allow_multiple=false) at HttpCacheSM.cc:297
      #12 0x00000000005da126 in HttpSM::do_cache_prepare_action (this=0x2b4a5ca1c5c0, c_sm=0x2b4a5ca1d7d0, object_read_info=0x2b46b5738320, retry=true, allow_multiple=false)
      at HttpSM.cc:4513
      #13 0x00000000005e8850 in HttpSM::do_cache_prepare_write (this=0x2b4a5ca1c5c0) at HttpSM.cc:4434
      #14 0x00000000005e30ee in HttpSM::set_next_state (this=0x2b4a5ca1c5c0) at HttpSM.cc:7211
      #15 0x00000000005e2178 in HttpSM::call_transact_and_set_next_state (this=0x2b4a5ca1c5c0, f=0) at HttpSM.cc:6945
      #16 0x00000000005cfbc0 in HttpSM::handle_api_return (this=0x2b4a5ca1c5c0) at HttpSM.cc:1502
      #17 0x00000000005cfa5c in HttpSM::state_api_callout (this=0x2b4a5ca1c5c0, event=0, data=0x0) at HttpSM.cc:1438
      #18 0x00000000005db6c7 in HttpSM::do_api_callout_internal (this=0x2b4a5ca1c5c0) at HttpSM.cc:4875
      #19 0x00000000005e879c in HttpSM::do_api_callout (this=0x2b4a5ca1c5c0) at HttpSM.cc:437
      #20 0x00000000005e21de in HttpSM::set_next_state (this=0x2b4a5ca1c5c0) at HttpSM.cc:6979
      #21 0x00000000005e2178 in HttpSM::call_transact_and_set_next_state (this=0x2b4a5ca1c5c0, f=0) at HttpSM.cc:6945
      #22 0x00000000005d8385 in HttpSM::do_hostdb_lookup (this=0x2b4a5ca1c5c0) at HttpSM.cc:3997
      #23 0x00000000005e2ae7 in HttpSM::set_next_state (this=0x2b4a5ca1c5c0) at HttpSM.cc:7078
      #24 0x00000000005e2178 in HttpSM::call_transact_and_set_next_state (this=0x2b4a5ca1c5c0, f=0) at HttpSM.cc:6945
      #25 0x00000000005cfbc0 in HttpSM::handle_api_return (this=0x2b4a5ca1c5c0) at HttpSM.cc:1502
      #26 0x00000000005cfa5c in HttpSM::state_api_callout (this=0x2b4a5ca1c5c0, event=0, data=0x0) at HttpSM.cc:1438
      #27 0x00000000005db6c7 in HttpSM::do_api_callout_internal (this=0x2b4a5ca1c5c0) at HttpSM.cc:4875
      #28 0x00000000005e879c in HttpSM::do_api_callout (this=0x2b4a5ca1c5c0) at HttpSM.cc:437
      #29 0x00000000005e21de in HttpSM::set_next_state (this=0x2b4a5ca1c5c0) at HttpSM.cc:6979
      #30 0x00000000005e2178 in HttpSM::call_transact_and_set_next_state (this=0x2b4a5ca1c5c0, f=0) at HttpSM.cc:6945
      #31 0x00000000005cfbc0 in HttpSM::handle_api_return (this=0x2b4a5ca1c5c0) at HttpSM.cc:1502
      #32 0x00000000005cfa5c in HttpSM::state_api_callout (this=0x2b4a5ca1c5c0, event=0, data=0x0) at HttpSM.cc:1438
      #33 0x00000000005db6c7 in HttpSM::do_api_callout_internal (this=0x2b4a5ca1c5c0) at HttpSM.cc:4875
      #34 0x00000000005e879c in HttpSM::do_api_callout (this=0x2b4a5ca1c5c0) at HttpSM.cc:437
      #35 0x00000000005e21de in HttpSM::set_next_state (this=0x2b4a5ca1c5c0) at HttpSM.cc:6979
      #36 0x00000000005e2178 in HttpSM::call_transact_and_set_next_state (this=0x2b4a5ca1c5c0, f=0x5f635a <HttpTransact::HandleCacheOpenRead(HttpTransact::State*)>)
      at HttpSM.cc:6945
      #37 0x00000000005d2dd4 in HttpSM::state_cache_open_read (this=0x2b4a5ca1c5c0, event=1102, data=0x2b46b57381d0) at HttpSM.cc:2463
      #38 0x00000000005d31cd in HttpSM::main_handler (this=0x2b4a5ca1c5c0, event=1102, data=0x2b46b57381d0) at HttpSM.cc:2522
      #39 0x00000000004f8d4c in Continuation::handleEvent (this=0x2b4a5ca1c5c0, event=1102, data=0x2b46b57381d0) at ../iocore/eventsystem/I_Continuation.h:146
      --Type <return> to continue, or q <return> to quit--
      #40 0x00000000005be8ee in HttpCacheSM::state_cache_open_read (this=0x2b4a5ca1d7d0, event=1102, data=0x2b46b57381d0) at HttpCacheSM.cc:118
      #41 0x00000000004f8d4c in Continuation::handleEvent (this=0x2b4a5ca1d7d0, event=1102, data=0x2b46b57381d0) at ../iocore/eventsystem/I_Continuation.h:146
      #42 0x000000000070e7e3 in CacheVC::callcont (this=0x2b46b57381d0, event=1102) at P_CacheInternal.h:656
      #43 0x000000000070e04b in CacheVC::openReadStartHead (this=0x2b46b57381d0, event=3900, e=0x0) at CacheRead.cc:1217
      #44 0x00000000004f8d4c in Continuation::handleEvent (this=0x2b46b57381d0, event=3900, data=0x0) at ../iocore/eventsystem/I_Continuation.h:146
      #45 0x0000000000708974 in Cache::open_read (this=0x2b46480108c0, cont=0x2b4a5ca1d7d0, key=0x2b456bc38690, request=0x2b4a5ca1c8d0, params=0x2b4a5ca1c6a0, 
      type=CACHE_FRAG_TYPE_HTTP, 
      hostname=0x2b476cda6ea5 "md2liveorigin02.atlas.cdn.md2.yahoo.comlive/md2-global/external/livenation1p_regprofile/livenation1p_regprofile_348.m3u8a=livenation&ib=sapi&ns=c+i+ci+cii+ps+flags+ru&vid=71d9db7f-1c7d-3d45-a388-5913b"..., host_len=39) at CacheRead.cc:153
      #46 0x00000000006f4785 in Cache::open_read (this=0x2b46480108c0, cont=0x2b4a5ca1d7d0, url=0x2b4a5ca1c8e8, request=0x2b4a5ca1c8d0, params=0x2b4a5ca1c6a0, 
      type=CACHE_FRAG_TYPE_HTTP) at P_CacheInternal.h:1078
      #47 0x00000000006f2482 in CacheProcessor::open_read (this=0x1028c60, cont=0x2b4a5ca1d7d0, url=0x2b4a5ca1c8e8, cluster_cache_local=false, request=0x2b4a5ca1c8d0, 
      params=0x2b4a5ca1c6a0, pin_in_cache=0, type=CACHE_FRAG_TYPE_HTTP) at Cache.cc:3490
      #48 0x00000000005becca in HttpCacheSM::do_cache_open_read (this=0x2b4a5ca1d7d0) at HttpCacheSM.cc:216
      #49 0x00000000005bedbc in HttpCacheSM::open_read (this=0x2b4a5ca1d7d0, url=0x2b4a5ca1c8e8, hdr=0x2b4a5ca1c8d0, params=0x2b4a5ca1c6a0, pin_in_cache=0) at HttpCacheSM.cc:248
      #50 0x00000000005d9b75 in HttpSM::do_cache_lookup_and_read (this=0x2b4a5ca1c5c0) at HttpSM.cc:4387
      #51 0x00000000005e2ba7 in HttpSM::set_next_state (this=0x2b4a5ca1c5c0) at HttpSM.cc:7092
      #52 0x00000000005e2178 in HttpSM::call_transact_and_set_next_state (this=0x2b4a5ca1c5c0, f=0x5f17d2 <HttpTransact::HandleRequest(HttpTransact::State*)>) at HttpSM.cc:6945
      #53 0x00000000005cfe13 in HttpSM::handle_api_return (this=0x2b4a5ca1c5c0) at HttpSM.cc:1580
      #54 0x00000000005cfa5c in HttpSM::state_api_callout (this=0x2b4a5ca1c5c0, event=60000, data=0x0) at HttpSM.cc:1438
      #55 0x00000000005cf1f2 in HttpSM::state_api_callback (this=0x2b4a5ca1c5c0, event=60000, data=0x0) at HttpSM.cc:1256
      #56 0x0000000000518f67 in TSHttpTxnReenable (txnp=0x2b4a5ca1c5c0, event=TS_EVENT_HTTP_CONTINUE) at InkAPI.cc:5583
      #57 0x00002b4643e586da in check_response (contp=0x2b4789530370, event=TS_EVENT_HTTP_SEND_RESPONSE_HDR, edata=0x2b4a5ca1c5c0) at live_origin_remap.cc:226
      #58 0x000000000050d730 in INKContInternal::handle_event (this=0x2b4789530370, event=60007, edata=0x2b4a5ca1c5c0) at InkAPI.cc:1000
      #59 0x00000000004f8d4c in Continuation::handleEvent (this=0x2b4789530370, event=60007, data=0x2b4a5ca1c5c0) at ../iocore/eventsystem/I_Continuation.h:146
      #60 0x000000000050df77 in APIHook::invoke (this=0x2b46c915fda0, event=60007, edata=0x2b4a5ca1c5c0) at InkAPI.cc:1219
      #61 0x00000000005cf7c5 in HttpSM::state_api_callout (this=0x2b4a5ca1c5c0, event=60000, data=0x0) at HttpSM.cc:1363
      #62 0x00000000005cf1f2 in HttpSM::state_api_callback (this=0x2b4a5ca1c5c0, event=60000, data=0x0) at HttpSM.cc:1256
      #63 0x0000000000518f67 in TSHttpTxnReenable (txnp=0x2b4a5ca1c5c0, event=TS_EVENT_HTTP_CONTINUE) at InkAPI.cc:5583
      #64 0x00002b46421cceb7 in transaction_hook_handler (continuation=0x2b46c8dcccc0, event=TS_EVENT_HTTP_SEND_RESPONSE_HDR, edata=0x2b4a5ca1c5c0) at metrics.cc:309
      #65 0x000000000050d730 in INKContInternal::handle_event (this=0x2b46c8dcccc0, event=60007, edata=0x2b4a5ca1c5c0) at InkAPI.cc:1000
      #66 0x00000000004f8d4c in Continuation::handleEvent (this=0x2b46c8dcccc0, event=60007, data=0x2b4a5ca1c5c0) at ../iocore/eventsystem/I_Continuation.h:146
      #67 0x000000000050df77 in APIHook::invoke (this=0x2b472ed3c350, event=60007, edata=0x2b4a5ca1c5c0) at InkAPI.cc:1219
      #68 0x00000000005cf7c5 in HttpSM::state_api_callout (this=0x2b4a5ca1c5c0, event=60000, data=0x0) at HttpSM.cc:1363
      #69 0x00000000005cf1f2 in HttpSM::state_api_callback (this=0x2b4a5ca1c5c0, event=60000, data=0x0) at HttpSM.cc:1256
      #70 0x0000000000518f67 in TSHttpTxnReenable (txnp=0x2b4a5ca1c5c0, event=TS_EVENT_HTTP_CONTINUE) at InkAPI.cc:5583
      #71 0x00002b4571bbaafa in txn_handler (contp=0x2b477e729890, event=TS_EVENT_HTTP_SEND_RESPONSE_HDR, edata=0x2b4a5ca1c5c0) at auth.cc:1445
      #72 0x000000000050d730 in INKContInternal::handle_event (this=0x2b477e729890, event=60007, edata=0x2b4a5ca1c5c0) at InkAPI.cc:1000
      #73 0x00000000004f8d4c in Continuation::handleEvent (this=0x2b477e729890, event=60007, data=0x2b4a5ca1c5c0) at ../iocore/eventsystem/I_Continuation.h:146
      #74 0x000000000050df77 in APIHook::invoke (this=0x2b474d25c910, event=60007, edata=0x2b4a5ca1c5c0) at InkAPI.cc:1219
      #75 0x00000000005cf7c5 in HttpSM::state_api_callout (this=0x2b4a5ca1c5c0, event=60000, data=0x0) at HttpSM.cc:1363
      #76 0x00000000005cf1f2 in HttpSM::state_api_callback (this=0x2b4a5ca1c5c0, event=60000, data=0x0) at HttpSM.cc:1256
      #77 0x0000000000518f67 in TSHttpTxnReenable (txnp=0x2b4a5ca1c5c0, event=TS_EVENT_HTTP_CONTINUE) at InkAPI.cc:5583
      #78 0x00002b4641ef233a in txn_hook_handler (contp=0x27f41d0, event=TS_EVENT_HTTP_SEND_RESPONSE_HDR, edata=0x2b4a5ca1c5c0) at headers.cc:395
      #79 0x000000000050d730 in INKContInternal::handle_event (this=0x27f41d0, event=60007, edata=0x2b4a5ca1c5c0) at InkAPI.cc:1000
      --Type <return> to continue, or q <return> to quit--
      #80 0x00000000004f8d4c in Continuation::handleEvent (this=0x27f41d0, event=60007, data=0x2b4a5ca1c5c0) at ../iocore/eventsystem/I_Continuation.h:146
      #81 0x000000000050df77 in APIHook::invoke (this=0x27e60e0, event=60007, edata=0x2b4a5ca1c5c0) at InkAPI.cc:1219
      #82 0x00000000005cf7c5 in HttpSM::state_api_callout (this=0x2b4a5ca1c5c0, event=0, data=0x0) at HttpSM.cc:1363
      #83 0x00000000005db6c7 in HttpSM::do_api_callout_internal (this=0x2b4a5ca1c5c0) at HttpSM.cc:4875
      #84 0x00000000005e879c in HttpSM::do_api_callout (this=0x2b4a5ca1c5c0) at HttpSM.cc:437
      #85 0x00000000005decf2 in HttpSM::setup_error_transfer (this=0x2b4a5ca1c5c0) at HttpSM.cc:5964
      #86 0x00000000005e327f in HttpSM::set_next_state (this=0x2b4a5ca1c5c0) at HttpSM.cc:7267
      #87 0x00000000005e2178 in HttpSM::call_transact_and_set_next_state (this=0x2b4a5ca1c5c0, f=0x5fb69a <HttpTransact::HandleResponse(HttpTransact::State*)>) at HttpSM.cc:6945
      #88 0x00000000005dc87c in HttpSM::handle_server_setup_error (this=0x2b4a5ca1c5c0, event=106, data=0x2b46a13f8310) at HttpSM.cc:5274
      #89 0x00000000005d117b in HttpSM::state_send_server_request_header (this=0x2b4a5ca1c5c0, event=106, data=0x2b46a13f8310) at HttpSM.cc:1967
      #90 0x00000000005d3164 in HttpSM::main_handler (this=0x2b4a5ca1c5c0, event=106, data=0x2b46a13f8310) at HttpSM.cc:2519
      #91 0x00000000004f8d4c in Continuation::handleEvent (this=0x2b4a5ca1c5c0, event=106, data=0x2b46a13f8310) at ../iocore/eventsystem/I_Continuation.h:146
      #92 0x000000000073f3c3 in read_signal_and_update (event=106, vc=0x2b46a13f8200) at UnixNetVConnection.cc:143
      #93 0x0000000000742b2a in UnixNetVConnection::mainEvent (this=0x2b46a13f8200, event=2, e=0x2b476c5de890) at UnixNetVConnection.cc:1170
      #94 0x00000000004f8d4c in Continuation::handleEvent (this=0x2b46a13f8200, event=2, data=0x2b476c5de890) at ../iocore/eventsystem/I_Continuation.h:146
      #95 0x000000000076080a in EThread::process_event (this=0x2b4568000010, e=0x2b476c5de890, calling_code=2) at UnixEThread.cc:145
      #96 0x0000000000760b25 in EThread::execute (this=0x2b4568000010) at UnixEThread.cc:224
      #97 0x000000000075fd7c in spawn_thread_internal (a=0x1f86b80) at Thread.cc:88
      #98 0x00002b455f0419d1 in start_thread () from /lib64/libpthread.so.0
      #99 0x00002b45600388fd in clone () from /lib64/libc.so.6
      

        Attachments

          Activity

            People

            • Assignee:
              sudheerv Sudheer Vinukonda
              Reporter:
              sudheerv Sudheer Vinukonda
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: