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

NULL pointer referencing/SEGV in WT format test binary

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 2
    • Storage Engines 2020-01-27

      This a test failure captured in Evergreen format-stress-sanitizer-smoke-test task. The log message points out to format test `t` binary . The test fails with following error (https://evergreen.mongodb.com/task/wiredtiger_ubuntu1804_format_stress_sanitizer_smoke_test_patch_c4be1b8dd55237f9f940761884dce9e8fe5acb7b_5df3191657e85a7afac46c28_19_12_13_04_52_39): 

       

       

      [2019/12/13 05:45:12.669] format.sh: /data/mci/8d8503baada8e2cc1cba6259b2266435/wiredtiger/test/format/RUNDIR.6 log:
      [2019/12/13 05:45:12.688]     > t: process 6274 running
      [2019/12/13 05:45:12.688]     > t: aborting to test recovery
      [2019/12/13 05:45:12.689]     > AddressSanitizer:DEADLYSIGNAL
      [2019/12/13 05:45:12.689]     > =================================================================
      [2019/12/13 05:45:12.689]     > ==6274==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000507e68 bp 0x7fff707466b0 sp 0x7fff70746690 T0)
      [2019/12/13 05:45:12.689]     > ==6274==The signal is caused by a WRITE memory access.
      [2019/12/13 05:45:12.689]     > ==6274==Hint: address points to the zero page.
      [2019/12/13 05:45:12.689]     >     #0 0x507e67 in random_failure /data/mci/8d8503baada8e2cc1cba6259b2266435/wiredtiger/build_posix/test/format/../../../test/format/ops.c:114:11
      [2019/12/13 05:45:12.689]     >     #1 0x50312d in wts_ops /data/mci/8d8503baada8e2cc1cba6259b2266435/wiredtiger/build_posix/test/format/../../../test/format/ops.c:265:21
      [2019/12/13 05:45:12.689]     >     #2 0x51e6ac in main /data/mci/8d8503baada8e2cc1cba6259b2266435/wiredtiger/build_posix/test/format/../../../test/format/t.c:229:17
      [2019/12/13 05:45:12.689]     >     #3 0x7f5b4fd4db96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
      [2019/12/13 05:45:12.689]     >     #4 0x41bae9 in _start (/data/mci/8d8503baada8e2cc1cba6259b2266435/wiredtiger/build_posix/test/format/t+0x41bae9)
      [2019/12/13 05:45:12.689]     >
      [2019/12/13 05:45:12.689]     > AddressSanitizer can not provide additional info.
      [2019/12/13 05:45:12.689]     > SUMMARY: AddressSanitizer: SEGV /data/mci/8d8503baada8e2cc1cba6259b2266435/wiredtiger/build_posix/test/format/../../../test/format/ops.c:114:11 in random_failure
      [2019/12/13 05:45:12.689]     > ==6274==ABORTING
      [2019/12/13 05:45:12.689]     >
      [2019/12/13 05:45:12.689]     > format.sh: running recovery after abort test
      [2019/12/13 05:45:12.689]     > format.sh: original directory copied into /data/mci/8d8503baada8e2cc1cba6259b2266435/wiredtiger/test/format/RUNDIR.6.RECOVER
      [2019/12/13 05:45:12.689]     >
      [2019/12/13 05:45:12.689]     > [1576233912:588815][7149:0x7fdf362707c0], wt, wiredtiger_open: __posix_open_file, 667: /data/mci/8d8503baada8e2cc1cba6259b2266435/wiredtiger/test/format/RUNDIR.6/WiredTiger.lock: handle-open: open: No such file or directory
      [2019/12/13 05:45:12.689]     > lt-wt: WT_TRY_SALVAGE: database corruption detected
       
      

      The configuration used for running this smoke test was:

       

      ############################################
      # RUN PARAMETERS
      ############################################
      abort=1
      alter=0
      assert_commit_timestamp=0
      assert_read_timestamp=0
      auto_throttle=1
      backups=0
      bitcnt=2
      bloom=1
      bloom_bit_count=24
      bloom_hash_count=10
      bloom_oldest=1
      cache=120
      cache_minimum=20
      checkpoints=off
      checkpoint_log_size=61
      checkpoint_wait=18
      checksum=uncompressed
      chunk_size=7
      compaction=0
      compression=none
      data_extend=0
      data_source=table
      delete_pct=13
      dictionary=0
      direct_io=0
      encryption=none
      evict_max=5
      file_type=row-store
      firstfit=1
      huffman_key=0
      huffman_value=0
      independent_thread_rng=0
      in_memory=1
      insert_pct=36
      internal_key_truncation=1
      internal_page_max=10
      isolation=snapshot
      key_gap=2
      key_max=32
      key_min=30
      leaf_page_max=15
      leak_memory=0
      logging=0
      logging_archive=0
      logging_compression=none
      logging_file_max=294689
      logging_prealloc=0
      long_running_txn=0
      lsm_worker_threads=4
      memory_page_max=10
      merge_max=15
      mmap=1
      modify_pct=9
      ops=0
      prefix_compression=1
      prefix_compression_min=7
      prepare=0
      quiet=1
      random_cursor=1
      read_pct=23
      rebalance=0
      repeat_data_pct=3
      reverse=0
      rows=100000
      runs=1
      salvage=0
      split_pct=76
      statistics=0
      statistics_server=0
      threads=6
      timer=4
      timing_stress_aggressive_sweep=0
      timing_stress_checkpoint=0
      timing_stress_lookaside_sweep=0
      timing_stress_split_1=0
      timing_stress_split_2=0
      timing_stress_split_3=0
      timing_stress_split_4=0
      timing_stress_split_5=0
      timing_stress_split_6=0
      timing_stress_split_7=0
      timing_stress_split_8=0
      transaction_timestamps=1
      transaction-frequency=100
      truncate=1
      value_max=80
      value_min=1
      verify=0
      wiredtiger_config=
      write_pct=19
      ############################################
       
      

       

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            haseeb.bokhari@mongodb.com Haseeb Bokhari (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: