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

Sanitizer failures in block_close from sweep, accessing block already freed by drop

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None
    • 13
    • 2023-05-16 Chook-n-Nuts Farm, 2023-05-30 - 7.0 Readiness, 2023-06-27 Lord of the Sprints

      Original failure seen in BF-28710:

        #0 0x5561c6801047 in __wt_block_close /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/block/block_open.c:131:9
        #1 0x5561c67f788f in __wt_bm_close_block /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/block_cache/block_mgr.c:40:13
        #2 0x5561c67fa893 in __bm_close /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/block_cache/block_mgr.c:267:15
        #3 0x5561c67f6311 in __wt_btree_close /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/btree/bt_handle.c:242:9
        #4 0x5561c67e0078 in __wt_conn_dhandle_close /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/conn/conn_dhandle.c:401:9
        #5 0x5561c695ce0e in __sweep_close_dhandle_locked /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/conn/conn_sweep.c:78:13
        #6 0x5561c695ce0e in __sweep_expire_one /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/conn/conn_sweep.c:102:5
        #7 0x5561c695a680 in __sweep_expire /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/conn/conn_sweep.c:140:13
        #8 0x5561c695a680 in __sweep_server /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/conn/conn_sweep.c:398:13
        #9 0x7f4564ea82dd in start_thread (/lib64/libpthread.so.0+0x82dd)
        #10 0x7f45649c0a62 in clone (/lib64/libc.so.6+0xfca62)
      
      0x61c00040d890 is located 16 bytes inside of 1848-byte region [0x61c00040d880,0x61c00040dfb8)
      freed by thread T45 (Timesta.Monitor) here:
      
        #0 0x5561c1ede642 in free /data/mci/4c5523d6b930f0c1f82f5452d6add3b6/toolchain-builder/tmp/build-llvm-v4.sh-FAX/llvm-project-llvmorg/compiler-rt/lib/asan/asan_malloc_linux.cpp:127:3
        #1 0x5561c6800ebe in __wt_block_close /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/block/block_open.c:141:5
        #2 0x5561c67f788f in __wt_bm_close_block /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/block_cache/block_mgr.c:40:13
        #3 0x5561c67fa893 in __bm_close /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/block_cache/block_mgr.c:267:15
        #4 0x5561c67f6311 in __wt_btree_close /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/btree/bt_handle.c:242:9
        #5 0x5561c67e0078 in __wt_conn_dhandle_close /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/conn/conn_dhandle.c:401:9
        #6 0x5561c67e7020 in __conn_dhandle_close_one /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/conn/conn_dhandle.c:769:15
        #7 0x5561c67e6b7d in __wt_conn_dhandle_close_all /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/conn/conn_dhandle.c:808:5
        #8 0x5561c6c7f53b in __drop_file /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/schema/schema_drop.c:31:5
        #9 0x5561c6c7f53b in __schema_drop /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/schema/schema_drop.c:333:15
        #10 0x5561c6c7fdc8 in __wt_schema_drop /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/schema/schema_drop.c:374:11
        #11 0x5561c6c7fdc8 in __drop_table /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/schema/schema_drop.c:136:9
        #12 0x5561c6c7fdc8 in __schema_drop /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/schema/schema_drop.c:339:15
        #13 0x5561c6c7ed7b in __wt_schema_drop /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/schema/schema_drop.c:374:11
        #14 0x5561c6ce293b in __session_drop /data/mci/2fbeb093ecf269692f76a4e2fe7145da/src/src/third_party/wiredtiger/src/session/session_api.c:1219:13
        #15 0x5561c664de06 in mongo::WiredTigerKVEngine::dropIdent(mongo::RecoveryUnit*, mongo::StringData, std::function<void ()> const&) /data/mci/b87c2c99e090efce7bae5ae2f8b89aa1/src/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp:1878:9
        #16 0x5561c8685e77 in mongo::KVDropPendingIdentReaper::dropIdentsOlderThan(mongo::OperationContext*, mongo::Timestamp const&)::$_3::operator()() const /data/mci/2ba1fb8abd883b20585f698a124556b2/src/src/mongo/db/storage/kv/kv_drop_pending_ident_reaper.cpp:175:36
        #17 0x5561c8684379 in auto mongo::writeConflictRetry<mongo::KVDropPendingIdentReaper::dropIdentsOlderThan(mongo::OperationContext*, mongo::Timestamp const&)::$_3>(mongo::OperationContext*, mongo::StringData, mongo::StringData, mongo::KVDropPendingIdentReaper::dropIdentsOlderThan(mongo::OperationContext*, mongo::Timestamp const&)::$_3&&) /data/mci/2ba1fb8abd883b20585f698a124556b2/src/src/mongo/db/concurrency/exception_util.h:142:20
        #18 0x5561c8684379 in mongo::KVDropPendingIdentReaper::dropIdentsOlderThan(mongo::OperationContext*, mongo::Timestamp const&) /data/mci/2ba1fb8abd883b20585f698a124556b2/src/src/mongo/db/storage/kv/kv_drop_pending_ident_reaper.cpp:164:9
        #19 0x5561c806e7fb in mongo::StorageEngineImpl::_onMinOfCheckpointAndOldestTimestampChanged(mongo::Timestamp const&) /data/mci/2ba1fb8abd883b20585f698a124556b2/src/src/mongo/db/storage/storage_engine_impl.cpp:1245:37
      

       

            Assignee:
            jeremy.thorp@mongodb.com Jeremy Thorp
            Reporter:
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: