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

LogFile::roll crash at Machine::instance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.1
    • Logging

    Description

      this is a strange error when I testing the current trunk with logging colation server enabled:

      [Oct 16 01:24:48.643] Server {0x2b4967f51760} WARNING: File /var/log/trafficserver/ex_squid.log will be rolled because a LogObject with different format is requesting the same filename
      FATAL: Machine.cc:37: failed assert `_instance || !"Machine instance accessed before initialization"`
      /usr/bin/traffic_server - STACK TRACE: 
      /usr/lib64/trafficserver/libtsutil.so.3(ink_fatal_va+0xc5)[0x2b49651a5109]
      /usr/lib64/trafficserver/libtsutil.so.3(ink_fatal+0xa3)[0x2b49651a51bb]
      /usr/lib64/trafficserver/libtsutil.so.3(_ink_assert+0xc2)[0x2b49651a3aee]
      /usr/bin/traffic_server(Machine::instance()+0x24)[0x634a04]
      /usr/bin/traffic_server(LogFile::roll(long, long)+0x230)[0x5f8138]
      /usr/bin/traffic_server(LogObjectManager::_solve_filename_conflicts(LogObject*, int)+0x489)[0x603263]
      /usr/bin/traffic_server(LogObjectManager::_manage_object(LogObject*, bool, int)+0x126)[0x6029ea]
      /usr/bin/traffic_server(LogObjectManager::manage_object(LogObject*, int)+0x2d)[0x5e9e27]
      /usr/bin/traffic_server(LogConfig::read_xml_log_config(int)+0x3189)[0x5f28c9]
      /usr/bin/traffic_server(LogConfig::setup_log_objects()+0x229)[0x5edd63]
      /usr/bin/traffic_server(LogConfig::init(LogConfig*)+0x254)[0x5ec3ea]
      /usr/bin/traffic_server(Log::init(int)+0x30c)[0x5e8134]
      /usr/bin/traffic_server(main+0xb6a)[0x5161a4]
      /lib64/libc.so.6(__libc_start_main+0xfd)[0x2b49673b4ebd]
      /usr/bin/traffic_server[0x4cc789]
      

      there is two problem here:
      1, why the machine is not initialized?
      2, what does "WARNING: File /var/log/trafficserver/ex_squid.log will be rolled because a LogObject with different format is requesting the same filename" mean? is that harm?

      Attachments

        1. ts-984.diff
          2 kB
          Alan M. Carroll

        Activity

          People

            amc Alan M. Carroll
            zym Zhao Yongming
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: