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

Crash in HostDB,During debug message generating

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: HostDB
    • Labels:

      Description

      STACK TRACE:

      /usr/bin/traffic_server(crash_logger_invoke(int, siginfo_t*, void*)+0xa2)[0x7fec78d2cf52]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0)[0x7fec76cfb8d0]
      /usr/bin/traffic_server(+0x2acc5f)[0x7fec78edec5f]
      /usr/bin/traffic_server(HostDBContinuation::dnsEvent(int, HostEnt*)+0x370)[0x7fec78ee3130]
      /usr/bin/traffic_server(DNSEntry::postEvent(int, Event*)+0x4b)[0x7fec78ec8feb]
      /usr/bin/traffic_server(EThread::process_event(Event*, int)+0x90)[0x7fec78fa4ee0]
      /usr/bin/traffic_server(EThread::execute()+0x67f)[0x7fec78fa5aef]
      /usr/bin/traffic_server(+0x3722da)[0x7fec78fa42da]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x80a4)[0x7fec76cf40a4]
      /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fec75ca204d]
      Segmentation fault (core dumped)
      

      gdb with core file

      Core was generated by `/usr/bin/traffic_server'.
      Program terminated with signal 11, Segmentation fault.
      #0  0x00007fec78edec5f in reply_to_cont (is_srv=false, r=0x7fec718beec0, cont=0x7fec6d375a10) at HostDB.cc:612
      
      612         Debug("hostdb", "RR of %d with %d good, 1st IP = %s", r->rr()->rrcount, r->rr()->good, ats_ip_ntop(r->ip(), ipb, sizeof ipb))
      (gdb) bt
      #0  0x00007fec78edec5f in reply_to_cont (is_srv=false, r=0x7fec718beec0, cont=0x7fec6d375a10) at HostDB.cc:612
      #1  reply_to_cont (cont=0x7fec6d375a10, r=0x7fec718beec0, is_srv=false) at HostDB.cc:585
      #2  0x00007fec78ee3130 in HostDBContinuation::dnsEvent (this=<optimized out>, event=<optimized out>, e=<optimized out>)
          at HostDB.cc:1682
      #3  0x00007fec78ec8feb in handleEvent (data=<optimized out>, event=600, this=<optimized out>)
          at ../../iocore/eventsystem/I_Continuation.h:146
      #4  DNSEntry::postEvent (this=0x7fec6d236b10) at DNS.cc:1267
      #5  0x00007fec78fa4ee0 in handleEvent (data=0x7fec64164fe0, event=1, this=<optimized out>) at I_Continuation.h:146
      #6  EThread::process_event (this=this@entry=0x7fec73e3f010, e=e@entry=0x7fec64164fe0, calling_code=1) at UnixEThread.cc:131
      #7  0x00007fec78fa5aef in EThread::execute (this=0x7fec73e3f010) at UnixEThread.cc:182
      #8  0x00007fec78fa42da in spawn_thread_internal (a=0x7fec7b6d1af0) at Thread.cc:86
      #9  0x00007fec76cf40a4 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
      #10 0x00007fec75ca204d in clone () from /lib/x86_64-linux-gnu/libc.so.6
      (gdb) p r
      $1 = (HostDBInfo *) 0x7fec718beec0
      (gdb) p *r
      Cannot access memory at address 0x7fec718beec0
      (gdb) p ipb
      $2 = "175.25.168.40\000\000\000p+\377x\354\177\000\000\366\377\377\377\000\000\000\000 \367\025d\354\177\000\000\240\234\243s\354\177"
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jacksontj Thomas Jackson
                Reporter:
                oknet Oknet Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: