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

use-of-uninitialized-value detected for test_fops on closing of cursor

    • 5
    • c(3x10^8)-StorEng - 2023-11-14
    • v7.0

      While looking at WT-10374, this failure occurred and reproduces when running on the build from BFG-2070621 (running 24 instances) for test_fops:

      ==95581==WARNING: MemorySanitizer: use-of-uninitialized-value
      ==95581==Launching Symbolizer process: /opt/mongodbtoolchain/v4/bin/llvm-symbolizer --inlines --default-arch=x86_64
          #0 0x7fe0f5307e7c in __wt_txn_commit /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/txn/txn.c:1713:21
          #1 0x7fe0f3f366e3 in __curfile_insert /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/cursor/cur_file.c:412:5
          #2 0x7fe0f485c8b1 in __wt_metadata_update /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/meta/meta_table.c:236:5
          #3 0x7fe0f476b222 in __wt_lsm_meta_write /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/lsm/lsm_meta.c:465:11
          #4 0x7fe0f470c305 in __clsm_close_bulk /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/lsm/lsm_cursor_bulk.c:46:5
          #5 0x49bf57 in obj_bulk_unique /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/test/fops/fops_file.c:105:9
          #6 0x4a6128 in fop /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/test/fops/fops.c:136:13
          #7 0x7fe0f2fae608 in start_thread /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477:8
          #8 0x7fe0f2ea6132 in clone /build/glibc-SzIz7B/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95  raw origin id: 813694998
        Uninitialized value was created by a heap deallocation
          #0 0x444c39 in free /data/mci/cf02dab68c6203199a2c4dcdba60629c/toolchain-builder/tmp/build-llvm-v4.sh-Hnp/llvm-project-llvmorg/compiler-rt/lib/msan/msan_interceptors.cpp:222:3
          #1 0x7fe0f48e900d in __wt_free_int /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/os_common/os_alloc.c:334:5
          #2 0x7fe0f352be81 in __wt_free_update_list /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/btree/bt_discard.c:505:9
          #3 0x7fe0f352f685 in __free_skip_list /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/btree/bt_discard.c:465:13
          #4 0x7fe0f3530133 in __free_skip_array /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/btree/bt_discard.c:445:13
          #5 0x7fe0f35247ba in __free_page_modify /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/btree/bt_discard.c:224:13
          #6 0x7fe0f351dfe4 in __wt_page_out /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/btree/bt_discard.c:118:9
          #7 0x7fe0f351a575 in __wt_ref_out /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/btree/bt_discard.c:50:5
          #8 0x7fe0f3792bb2 in __wt_split_rewrite /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/btree/bt_split.c:2287:5
          #9 0x7fe0f4480143 in __evict_page_dirty_update /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/evict/evict_page.c:490:13
          #10 0x7fe0f4470305 in __wt_evict /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/evict/evict_page.c:311:9
          #11 0x7fe0f4468aec in __wt_page_release_evict /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/evict/evict_page.c:91:11
          #12 0x7fe0f366ce42 in __wt_page_in_func /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/btree/bt_read.c:402:23
          #13 0x7fe0f3aef308 in __wt_page_swap_func /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/include/btree_inline.h:2201:11
          #14 0x7fe0f3adbf96 in __wt_row_search /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/btree/row_srch.c:572:20
          #15 0x7fe0f33a0fe6 in __cursor_row_search /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/btree/bt_cursor.c:567:5
          #16 0x7fe0f3393d4d in __wt_btcur_search /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/btree/bt_cursor.c:831:13
          #17 0x7fe0f3f1d5f0 in __curfile_search /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/cursor/cur_file.c:321:5
          #18 0x7fe0f4857e1a in __wt_metadata_search /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/meta/meta_table.c:322:5
          #19 0x7fe0f474fe3d in __wt_lsm_meta_read /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/lsm/lsm_meta.c:382:5
      
      SUMMARY: MemorySanitizer: use-of-uninitialized-value /data/mci/2df064319dc48f99c8be0b5d42caa944/wiredtiger/src/txn/txn.c:1713:21 in __wt_txn_commit 

      This looks exactly like WT-11495.

            Assignee:
            mick.graham@mongodb.com Mick Graham
            Reporter:
            mick.graham@mongodb.com Mick Graham
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: