Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2686

logging subsystem core dump

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • WT2.9.0, 3.3.9
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: