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

Uninitialized bytes in __interceptor_pwrite during bulk loading in MSAN build

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • 5
    • StorEng - Defined Pipeline

      This issue was encountered while running the reproducer for WT-11242 in a patch build.

      Config:

      ############################################
      #  RUN PARAMETERS: V3
      ############################################
      assert.read_timestamp=0
      backup=0
      backup.incremental=off
      backup.incr_granularity=11043
      block_cache=0
      block_cache.cache_on_checkpoint=0
      block_cache.cache_on_writes=1
      block_cache.size=87
      btree.huffman_value=0
      buffer_alignment=0
      cache=690
      cache.evict_max=4
      cache.eviction_dirty_target=0
      cache.eviction_dirty_trigger=0
      cache.minimum=20
      checkpoint=on
      checkpoint.log_size=178
      checkpoint.wait=57
      debug.checkpoint_retention=4
      debug.cursor_reposition=0
      debug.eviction=1
      debug.log_retention=4
      debug.realloc_exact=0
      debug.realloc_malloc=0
      debug.slow_checkpoint=1
      debug.table_logging=0
      debug.update_restore_evict=0
      disk.data_extend=0
      disk.direct_io=0
      disk.encryption=none
      disk.mmap=1
      disk.mmap_all=0
      file_manager.close_handle_minimum=10
      file_manager.close_idle_time=41
      file_manager.close_scan_interval=0
      format.abort=0
      format.independent_thread_rng=1
      format.major_timeout=0
      import=0
      logging=0
      logging.compression=none
      logging.file_max=280189
      logging.prealloc=0
      logging.remove=1
      ops.alter=0
      ops.compaction=0
      ops.hs_cursor=1
      ops.bound_cursor=0
      ops.prepare=1
      ops.random_cursor=0
      ops.salvage=0
      ops.verify=1
      quiet=1
      random.data_seed=9596518
      random.extra_seed=6001262
      runs.in_memory=0
      runs.ops=0
      runs.predictable_replay=0
      runs.rows=1000000
      runs.tables=3
      runs.threads=22
      runs.timer=16
      runs.verify_failure_dump=0
      statistics.mode=fast
      statistics_log.sources=off
      stress.aggressive_stash_free=0
      stress.aggressive_sweep=0
      stress.checkpoint=1
      stress.checkpoint_evict_page=1
      stress.checkpoint_prepare=1
      stress.evict_reposition=0
      stress.failpoint_eviction_fail_after_reconciliation=1
      stress.failpoint_hs_delete_key_from_ts=0
      stress.hs_checkpoint_delay=1
      stress.hs_search=0
      stress.hs_sweep=0
      stress.prepare_resolution_1=0
      stress.sleep_before_read_overflow_onpage=0
      stress.split_1=0
      stress.split_2=0
      stress.split_3=0
      stress.split_4=0
      stress.split_5=0
      stress.split_6=0
      stress.split_7=0
      stress.split_8=0
      tiered_storage.flush_frequency=0
      tiered_storage.storage_source=off
      transaction.implicit=0
      transaction.timestamps=1
      wiredtiger.config=off
      wiredtiger.rwlock=1
      wiredtiger.leak_memory=0
      ############################################
      #  TABLE PARAMETERS: table 1
      ############################################
      table1.btree.compression=zstd
      table1.btree.dictionary=0
      table1.btree.internal_key_truncation=1
      table1.btree.internal_page_max=13
      table1.btree.leaf_page_max=15
      table1.btree.memory_page_max=1
      table1.btree.repeat_data_pct=49
      table1.btree.split_pct=64
      table1.btree.value_max=2002
      table1.btree.value_min=17
      table1.disk.checksum=off
      table1.disk.firstfit=1
      table1.ops.pareto=0
      table1.ops.pareto.skew=69
      table1.ops.pct.delete=45
      table1.ops.pct.insert=14
      table1.ops.pct.modify=20
      table1.ops.pct.read=20
      table1.ops.pct.write=1
      table1.ops.truncate=0
      table1.runs.mirror=0
      table1.runs.source=table
      table1.runs.type=variable-length column-store
      ############################################
      #  TABLE PARAMETERS: table 2
      ############################################
      table2.btree.compression=zstd
      table2.btree.dictionary=0
      table2.btree.internal_key_truncation=1
      table2.btree.internal_page_max=16
      table2.btree.key_max=102
      table2.btree.key_min=31
      table2.btree.leaf_page_max=11
      table2.btree.memory_page_max=10
      table2.btree.prefix_len=0
      table2.btree.prefix_compression=1
      table2.btree.prefix_compression_min=6
      table2.btree.reverse=0
      table2.btree.split_pct=66
      table2.btree.value_max=1586
      table2.btree.value_min=10
      table2.disk.checksum=on
      table2.disk.firstfit=0
      table2.ops.pareto=1
      table2.ops.pareto.skew=49
      table2.ops.pct.delete=0
      table2.ops.pct.insert=100
      table2.ops.pct.modify=0
      table2.ops.pct.read=0
      table2.ops.pct.write=0
      table2.ops.truncate=0
      table2.runs.mirror=0
      table2.runs.source=table
      table2.runs.type=row-store
      ############################################
      #  TABLE PARAMETERS: table 3
      ############################################
      table3.btree.compression=snappy
      table3.btree.dictionary=0
      table3.btree.internal_key_truncation=1
      table3.btree.internal_page_max=11
      table3.btree.key_max=48
      table3.btree.key_min=14
      table3.btree.leaf_page_max=12
      table3.btree.memory_page_max=4
      table3.btree.prefix_len=0
      table3.btree.prefix_compression=1
      table3.btree.prefix_compression_min=8
      table3.btree.reverse=0
      table3.btree.split_pct=63
      table3.btree.value_max=2642
      table3.btree.value_min=18
      table3.disk.checksum=unencrypted
      table3.disk.firstfit=0
      table3.ops.pareto=1
      table3.ops.pareto.skew=62
      table3.ops.pct.delete=19
      table3.ops.pct.insert=48
      table3.ops.pct.modify=0
      table3.ops.pct.read=29
      table3.ops.pct.write=4
      table3.ops.truncate=0
      table3.runs.mirror=0
      table3.runs.source=table
      table3.runs.type=row-store
      ############################################
      

      Stack trace:

      [2023/06/30 03:36:03.924]     Uninitialized bytes in __interceptor_pwrite at offset 1084 inside [0x732000000000, 7168)
      [2023/06/30 03:36:03.925]     ==13718==WARNING: MemorySanitizer: use-of-uninitialized-value
      [2023/06/30 03:36:03.925]         #0 0x7fd015b640bd in __posix_file_write /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/src/os_posix/os_fs.c:624:19
      [2023/06/30 03:36:03.925]         #1 0x7fd01573aaaa in __wt_write /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/src/include/os_fhandle_inline.h:202:11
      [2023/06/30 03:36:03.925]         #2 0x7fd015738e04 in __block_write_off /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/src/block/block_write.c:330:16
      [2023/06/30 03:36:03.925]         #3 0x7fd0157386f9 in __wt_block_write_off /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/src/block/block_write.c:393:11
      [2023/06/30 03:36:03.925]         #4 0x7fd0157385b2 in __wt_block_write /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/src/block/block_write.c:198:5
      [2023/06/30 03:36:03.925]         #5 0x7fd015752e3b in __bm_write /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/src/block_cache/block_mgr.c:708:7
      [2023/06/30 03:36:03.925]         #6 0x7fd01574c764 in __wt_blkcache_write /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/src/block_cache/block_io.c:371:5
      [2023/06/30 03:36:03.925]         #7 0x7fd015bddb72 in __rec_write /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/src/reconcile/rec_write.c:907:13
      [2023/06/30 03:36:03.925]         #8 0x7fd015bd5763 in __rec_split_write /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/src/reconcile/rec_write.c:2134:5
      [2023/06/30 03:36:03.925]         #9 0x7fd015bd3ea2 in __wt_rec_split /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/src/reconcile/rec_write.c:1496:9
      [2023/06/30 03:36:03.925]         #10 0x7fd015bd6bdf in __wt_rec_split_crossing_bnd /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/src/reconcile/rec_write.c:1604:13
      [2023/06/30 03:36:03.925]         #11 0x7fd015b858a7 in __wt_bulk_insert_var /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/src/reconcile/rec_col.c:150:9
      [2023/06/30 03:36:03.925]         #12 0x7fd015958504 in __curbulk_insert_var /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/src/cursor/cur_bulk.c:161:9
      [2023/06/30 03:36:03.925]         #13 0x4a0afd in table_load /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/test/format/bulk.c:163:20
      [2023/06/30 03:36:03.925]         #14 0x49fe7d in wts_load /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/test/format/bulk.c:277:17
      [2023/06/30 03:36:03.925]         #15 0x4db7a3 in main /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/test/format/t.c:366:9
      [2023/06/30 03:36:03.925]         #16 0x7fd0154ae082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
      [2023/06/30 03:36:03.925]         #17 0x41d5fd in _start (/data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/cmake_build/test/format/t+0x41d5fd)
      [2023/06/30 03:36:03.925]     SUMMARY: MemorySanitizer: use-of-uninitialized-value /data/mci/73833e7836d992ae5e36b4f133e37482/wiredtiger/src/os_posix/os_fs.c:624:19 in __posix_file_write
      

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Marc Butler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: