data race in block_ext.c

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Block Manager

      generate-tsan-metric on ubuntu2004-tsan

      Host: i-0b6399cbdc805fe4f
      Project: wiredtiger
      Commit: 55b681ba
      Please refer to BF(G) Playbook for instructions on handling BF and BFG tickets as well as Auto-Resolution Rules

      Task Logs:

      generate-tsan-metric task_log

      Logs:

      WARNING: ThreadSanitizer: data race (pid=37169)
      Write of size 8 at 0x7270000159b8 by thread T12 (mutexes: write M0, write M1, write M2):
      #0 __wti_block_extlist_merge /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/block/block_ext.c:978 (libwiredtiger.so.12.0.0+0x6baca)
      #1 __wt_block_checkpoint_resolve /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/block/block_ckpt.c:1066 (libwiredtiger.so.12.0.0+0x51ab7)
      #2 __bm_checkpoint_resolve /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/block_cache/block_mgr.c:269 (libwiredtiger.so.12.0.0+0xaae81)
      #3 __meta_track_apply /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/meta/meta_track.c:146 (libwiredtiger.so.12.0.0+0x5a913d)
      #4 __wt_meta_track_off /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/meta/meta_track.c:319 (libwiredtiger.so.12.0.0+0x5a7da3)
      #5 __checkpoint_db_internal /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/checkpoint/checkpoint_txn.c:1616 (libwiredtiger.so.12.0.0+0x2faf1a)
      #6 __checkpoint_db_wrapper /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/checkpoint/checkpoint_txn.c:1730 (libwiredtiger.so.12.0.0+0x2f20d6)
      #7 __wt_checkpoint_db /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/checkpoint/checkpoint_txn.c:1809 (libwiredtiger.so.12.0.0+0x2f176f)
      #8 __compact_checkpoint /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/session/session_compact.c:278 (libwiredtiger.so.12.0.0+0x748322)
      #9 __compact_worker /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/session/session_compact.c:362 (libwiredtiger.so.12.0.0+0x746670)
      #10 __wti_session_compact /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/session/session_compact.c:518 (libwiredtiger.so.12.0.0+0x7435a6)
      #11 __background_compact_server /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/conn/conn_compact.c:659 (libwiredtiger.so.12.0.0+0x35a189)
      #12 <null> <null> (libtsan.so.2+0x4eaf9) (BuildId: 0e59ee62729803eb7d2dd8c4ccba16ef40d8a633)
      Previous atomic read of size 8 at 0x7270000159b8 by main thread (mutexes: write M3):
      #0 __wt_atomic_load_uint64_relaxed /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/include/gcc.h:382 (libwiredtiger.so.12.0.0+0x7576b)
      #1 __wt_block_stat /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/block/block_open.c:470 (libwiredtiger.so.12.0.0+0x7564b)
      #2 __bm_stat /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/block_cache/block_mgr.c:658 (libwiredtiger.so.12.0.0+0xabcf8)
      #3 __wt_btree_stat_init /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/btree/bt_stat.c:33 (libwiredtiger.so.12.0.0+0x23179d)
      #4 __curstat_file_init /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/cursor/cur_stat.c:515 (libwiredtiger.so.12.0.0+0x47a1fe)
      #5 __wt_curstat_init /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/cursor/cur_stat.c:602 (libwiredtiger.so.12.0.0+0x479846)
      #6 __wt_curstat_colgroup_init /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/schema/schema_stat.c:27 (libwiredtiger.so.12.0.0+0x6f0a18)
      #7 __wt_curstat_init /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/cursor/cur_stat.c:600 (libwiredtiger.so.12.0.0+0x4797c9)
      #8 __wt_curstat_table_init /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/schema/schema_stat.c:160 (libwiredtiger.so.12.0.0+0x6f11bf)
      #9 __wt_curstat_init /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/cursor/cur_stat.c:608 (libwiredtiger.so.12.0.0+0x4799b9)
      #10 __wt_curstat_open /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/cursor/cur_stat.c:760 (libwiredtiger.so.12.0.0+0x47bb32)
      #11 __session_open_cursor_int /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/session/session_api.c:723 (libwiredtiger.so.12.0.0+0x6fddd7)
      #12 __session_open_cursor /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/session/session_api.c:904 (libwiredtiger.so.12.0.0+0x701883)
      #13 _wrap_Session_open_cursor lang/python/CMakeFiles/wiredtiger_python.dir/wiredtigerPYTHON_wrap.c:6113 (_wiredtiger.so+0x26a17)
      #14 cfunction_call ../src/Python-3.10.4/Objects/methodobject.c:552 (libpython3.10.so.1.0+0x13ca57) (BuildId: 41f1903bec218f8017b90255aaeb46526c3ef6ff)
      Location is heap block of size 1912 at 0x727000015800 allocated by main thread:
      #0 calloc <null> (libtsan.so.2+0x5439e) (BuildId: 0e59ee62729803eb7d2dd8c4ccba16ef40d8a633)
      #1 __wt_calloc /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/os_common/os_alloc.c:68 (libwiredtiger.so.12.0.0+0x5bb534)
      #2 __wt_block_open /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/block/block_open.c:201 (libwiredtiger.so.12.0.0+0x72fec)
      #3 __wt_blkcache_open /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/block_cache/block_cache.c:817 (libwiredtiger.so.12.0.0+0x8d36e)
      #4 __wt_btree_open /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/btree/bt_handle.c:129 (libwiredtiger.so.12.0.0+0x16d465)
      #5 __wt_conn_dhandle_open /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/conn/conn_dhandle.c:624 (libwiredtiger.so.12.0.0+0x362f17)
      #6 __wt_session_get_dhandle /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/session/session_dhandle.c:969 (libwiredtiger.so.12.0.0+0x74f959)
      #7 __create_file /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/schema/schema_create.c:310 (libwiredtiger.so.12.0.0+0x6c988a)
      #8 __schema_create /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/schema/schema_create.c:1552 (libwiredtiger.so.12.0.0+0x6c6607)
      #9 __wt_schema_create /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/schema/schema_create.c:1612 (libwiredtiger.so.12.0.0+0x6c5e1e)
      #10 __create_colgroup /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/schema/schema_create.c:629 (libwiredtiger.so.12.0.0+0x6c8353)
      #11 __create_table /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/schema/schema_create.c:998 (libwiredtiger.so.12.0.0+0x6cd2b7)
      #12 __schema_create /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/schema/schema_create.c:1560 (libwiredtiger.so.12.0.0+0x6c66ff)
      #13 __wt_schema_create /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/schema/schema_create.c:1612 (libwiredtiger.so.12.0.0+0x6c5e1e)
      #14 __wt_session_create /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/session/session_api.c:1105 (libwiredtiger.so.12.0.0+0x6fe96c)
      #15 __session_create /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/session/session_api.c:1147 (libwiredtiger.so.12.0.0+0x70a5ea)
      #16 _wrap_Session_create lang/python/CMakeFiles/wiredtiger_python.dir/wiredtigerPYTHON_wrap.c:6405 (_wiredtiger.so+0x2782c)
      #17 cfunction_call ../src/Python-3.10.4/Objects/methodobject.c:552 (libpython3.10.so.1.0+0x13ca57) (BuildId: 41f1903bec218f8017b90255aaeb46526c3ef6ff)
      Mutex M0 (0x7f8671b02fa8) created at:
      #0 pthread_mutex_init <null> (libtsan.so.2+0x5811f) (BuildId: 0e59ee62729803eb7d2dd8c4ccba16ef40d8a633)
      #1 __wt_spin_init /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/include/mutex_inline.h:142 (libwiredtiger.so.12.0.0+0x73a491)
      #2 __open_session /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/session/session_api.c:2598 (libwiredtiger.so.12.0.0+0x703584)
      #3 __wt_open_session /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/session/session_api.c:2721 (libwiredtiger.so.12.0.0+0x702d38)
      #4 __wt_open_internal_session /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/session/session_api.c:2755 (libwiredtiger.so.12.0.0+0x704443)
      #5 __wti_background_compact_server_create /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/conn/conn_compact.c:749 (libwiredtiger.so.12.0.0+0x359104)
      #6 __wti_connection_workers /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/conn/conn_open.c:305 (libwiredtiger.so.12.0.0+0x38c12d)
      #7 wiredtiger_open /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/conn/conn_api.c:3507 (libwiredtiger.so.12.0.0+0x32c14e)
      #8 _wrap_wiredtiger_open lang/python/CMakeFiles/wiredtiger_python.dir/wiredtigerPYTHON_wrap.c:9562 (_wiredtiger.so+0x314fa)
      #9 cfunction_call ../src/Python-3.10.4/Objects/methodobject.c:552 (libpython3.10.so.1.0+0x13ca57) (BuildId: 41f1903bec218f8017b90255aaeb46526c3ef6ff)
      Mutex M1 (0x72940015e8d0) created at:
      #0 pthread_mutex_init <null> (libtsan.so.2+0x5811f) (BuildId: 0e59ee62729803eb7d2dd8c4ccba16ef40d8a633)
      #1 __wt_spin_init /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/include/mutex_inline.h:142 (libwiredtiger.so.12.0.0+0x36ca81)
      #2 __wti_connection_init /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/conn/conn_handle.c:50 (libwiredtiger.so.12.0.0+0x36b516)
      #3 wiredtiger_open /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/conn/conn_api.c:3096 (libwiredtiger.so.12.0.0+0x3279e3)
      #4 _wrap_wiredtiger_open lang/python/CMakeFiles/wiredtiger_python.dir/wiredtigerPYTHON_wrap.c:9562 (_wiredtiger.so+0x314fa)
      #5 cfunction_call ../src/Python-3.10.4/Objects/methodobject.c:552 (libpython3.10.so.1.0+0x13ca57) (BuildId: 41f1903bec218f8017b90255aaeb46526c3ef6ff)
      Mutex M2 (0x727000015880) created at:
      #0 pthread_mutex_init <null> (libtsan.so.2+0x5811f) (BuildId: 0e59ee62729803eb7d2dd8c4ccba16ef40d8a633)
      #1 __wt_spin_init /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/include/mutex_inline.h:142 (libwiredtiger.so.12.0.0+0x74191)
      #2 __wt_block_open /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/block/block_open.c:268 (libwiredtiger.so.12.0.0+0x737d8)
      #3 __wt_blkcache_open /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/block_cache/block_cache.c:817 (libwiredtiger.so.12.0.0+0x8d36e)
      #4 __wt_btree_open /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/btree/bt_handle.c:129 (libwiredtiger.so.12.0.0+0x16d465)
      #5 __wt_conn_dhandle_open /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/conn/conn_dhandle.c:624 (libwiredtiger.so.12.0.0+0x362f17)
      #6 __wt_session_get_dhandle /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/session/session_dhandle.c:969 (libwiredtiger.so.12.0.0+0x74f959)
      #7 __create_file /data/mci/985f2b0e686710b1943
      

      logs

      generate-tsan-metric task_log

      Logs:

      SUMMARY: ThreadSanitizer: data race /data/mci/985f2b0e686710b1943431e8b993aca4/wiredtiger/src/block/block_ext.c:978 in __wti_block_extlist_merge
      

      logs

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            xgen-buildbaron-user
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: