Haritha Haridas created TS-4690:
-----------------------------------

             Summary: Logging to ascii_pipe fails in 6.2.x
                 Key: TS-4690
                 URL: https://issues.apache.org/jira/browse/TS-4690
             Project: Traffic Server
          Issue Type: Bug
          Components: Logging
            Reporter: Haritha Haridas


Seeing the following stack trace when trying to log to an ascii_pipe in the new 
code :


/lib64/libpthread.so.0(+0xf7e0)[0x2ba4ab4f97e0]
/lib64/libc.so.6(gsignal+0x35)[0x2ba4ac134625]
/lib64/libc.so.6(abort+0x175)[0x2ba4ac135e05]
..//lib64/libtsutil.so.6(_Z20signal_crash_handleriP7siginfoPv+0x54)[0x2ba4aa053184]
../bin/traffic_server(_Z19crash_logger_invokeiP7siginfoPv+0x8e)[0x4af11e]
/lib64/libpthread.so.0(+0xf7e0)[0x2ba4ab4f97e0]
../bin/traffic_server(_ZN7LogFile22preproc_and_try_deleteEP9LogBuffer+0x3f)[0x5cbeef]
../bin/traffic_server(_ZN16LogBufferManager15preproc_buffersEP13LogBufferSink+0xb3)[0x5d5ba3]
../bin/traffic_server(_ZN16LogObjectManager15preproc_buffersEi+0x53)[0x5d7a33]
../bin/traffic_server(_ZN3Log19preproc_thread_mainEPv+0x8f)[0x5b644f]
../bin/traffic_server(_ZN26LoggingPreprocContinuation9mainEventEiPv+0xd)[0x5bb4cd]
../bin/traffic_server(_ZN7EThread7executeEv+0x83)[0x6fc4c3]
../bin/traffic_server[0x6fb9ea]
/lib64/libpthread.so.0(+0x7aa1)[0x2ba4ab4f1aa1]
/lib64/libc.so.6(clone+0x6d)[0x2ba4ac1ea93d]
traffic_server - STACK TRACE:


seems to crash at the line   if (!m_log->m_start_time)

and from the constructor looks like it will be NULL for the pipes:
 if (m_file_format != LOG_FILE_PIPE) {
    m_log = new BaseLogFile(name, m_signature);
    m_log->set_hostname(Machine::instance()->hostname);
  } else {
    m_log = NULL;
  }

im still unsure how this wasn in a problem in 5.3.x, but im seeing this only in 
the newest code 




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to