Skip to content

Crash on RangeTransform::handle_event #8979

Closed

Description

@masaori335

We faced the below crash on a 9.2.0 testing box. There must be some conditions like a slow disk to trigger the crash, but we haven't found it.

[ 00 ] libpthread-2.17.so  waitpid                                                              
[ 01 ] traffic_server      crash_logger_invoke(int, siginfo_t*, void*)                          ( Crash.cc:168 )
[ 02 ] libpthread-2.17.so                                                                       
[ 03 ] traffic_server      RangeTransform::handle_event(int, void*)                             ( iocore/eventsystem/I_Lock.h:263 )
[ 04 ] traffic_server      EThread::process_event(Event*, int)                                  ( I_Continuation.h:227 )
[ 05 ] traffic_server      EThread::process_queue(Queue<Event, Event::Link_link>*, int*, int*)  ( UnixEThread.cc:188 )
[ 06 ] traffic_server      EThread::execute_regular()                                           ( UnixEThread.cc:248 )
[ 07 ] traffic_server      EThread::execute()                                                   ( UnixEThread.cc:353 )
[ 08 ] traffic_server      spawn_thread_internal(void*) [clone .llvm.12268301668034307738]      ( Thread.cc:79 )
[ 09 ] libpthread-2.17.so  start_thread                                                         

Activity

  1. added this to the 10.0.0 milestone on Jul 26, 2022
  2. masaori335 commented on Jul 26, 2022

    @masaori335
    ContributorAuthor
    (gdb) f 3
    #3  RangeTransform::handle_event(int, void*) (this=0x7f86751c0000, event=<optimized out>, edata=<optimized out>) at Transform.cc:817
    817          MUTEX_TRY_LOCK(trylock, m_write_vio.mutex, this_ethread());
    (gdb) p this->m_write_vio
    $1 = {
      cont = 0x0, 
      nbytes = 0, 
      ndone = 0, 
      op = 0, 
      buffer = {
        mbuf = 0x0, 
        entry = 0x0
      }, 
      vc_server = 0x0, 
      mutex = {
        m_ptr = 0x0
      }, 
      _disabled = false
    }
    
  3. masaori335 commented on Jul 26, 2022

    @masaori335
    ContributorAuthor

    I tried the --enable-event-tracker build option to see where the event is scheduled. However, it points odd line, unfortunately.

    (gdb) p e->_location
    $3 = (const void *) 0x5654998b4f10 <HttpTunnel::consumer_handler(int, HttpTunnelConsumer*)+320>
    (gdb) info line *0x5654998b4f10
    Line 1373 of "HttpTunnel.cc" starts at address 0x5654998b4f10 <HttpTunnel::consumer_handler(int, HttpTunnelConsumer*)+320> and ends at 0x5654998b4f2a <HttpTunnel::consumer_handler(int, HttpTunnelConsumer*)+346>
    

    if (c->producer && c->producer->handler_state == 0) {

    A wild idea is that HttpTunnel producer and consumer has a race. Anyway, we need a guard for the nullptr.

  4. modified the milestones: 10.0.0, 9.2.0 on Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions