Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.9.0, 3.3.9
    • Labels:
      None

      Description

      Logging subsystem core dump.

      Sue LoVerso, test_txn08 is currently failing on the PPC and on my FreeBSD box:

      % env LD_LIBRARY_PATH=.libs python test/suite/run.py -p test_txn08.test_txn08.test_printlog_unicode
      FERROR in test_txn08.test_txn08.test_printlog_unicode
       
      ======================================================================
      FAIL: test_txn08.test_txn08.test_printlog_unicode
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/bostic/wiredtiger/test/suite/test_txn08.py", line 70, in test_printlog_unicode
          '\\u0001\\u0002abcd\\u0003\\u0004')
        File "/home/bostic/wiredtiger/test/suite/suite_subprocess.py", line 97, in check_file_contains
          self.fail(filename + ': does not contain expected \'' + expect + '\'')
      AssertionError: printlog.out: does not contain expected '\u0001\u0002abcd\u0003\u0004'
       
      ----------------------------------------------------------------------
      Ran 1 test in 2.751s
      

      It's a core dump in the wt utility:

      (gdb) where
      #0  0x00000008009263a5 in __wt_log_scan (session=0x80304f380, lsnp=0x0, 
          flags=1, func=0x8009b9530 <__txn_printlog>, cookie=0x7fffffffe6c8)
          at src/log/log.c:1763
      #1  0x00000008009b9348 in __wt_txn_printlog (wt_session=0x80304f380, flags=0)
          at src/txn/txn_log.c:561
      #2  0x000000000040a5fc in util_printlog (session=0x80304f380, argc=0, 
          argv=0x7fffffffe988) at src/utilities/util_printlog.c:44
      #3  0x00000000004099fa in main (argc=1, argv=0x7fffffffe980)
          at src/utilities/util_main.c:227
      (gdb) frame 0
      #0  0x00000008009263a5 in __wt_log_scan (session=0x80304f380, lsnp=0x0, 
          flags=1, func=0x8009b9530 <__txn_printlog>, cookie=0x7fffffffe6c8)
          at src/log/log.c:1763
      1763		F_CLR(log, WT_LOG_NOT_VERIFIED);
      (gdb) p ret
      $2 = 0
      (gdb) p log
      $3 = (WT_LOG *) 0x0
      (gdb) p conn->log
      $4 = (WT_LOG *) 0x0
      

      I think it's a problem with this change, part of SERVER-23659.

      It looks to me like log can be NULL in that function, which means that code will drop core. I have no idea why it isn't failing everywhere, though.

        Attachments

          Activity

            People

            • Assignee:
              sue.loverso Sue LoVerso
              Reporter:
              keith.bostic Keith Bostic
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: