[TSAN] data race: __open_session vs sweep server session array walk (test_rollback_to_stable05)

XMLWordPrintableJSON

      generate-tsan-metric on ubuntu2004-tsan

      Host: i-02e6304d5ca5ca216
      Project: wiredtiger
      Commit: be653a9c
      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:

      TSAN log: tsan_logs_test_rollback_to_stable05.py.274945
      WARNING: ThreadSanitizer: data race (pid=274945)
      Write of size 8 at 0x7f4fee098798 by main thread (mutexes: write M0):
      #0 __open_session /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/session/session_api.c:2634 (libwiredtiger.so.12.0.0+0x765920)
      #1 __wt_open_session /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/session/session_api.c:2773 (libwiredtiger.so.12.0.0+0x765128)
      #2 __wt_open_internal_session /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/session/session_api.c:2807 (libwiredtiger.so.12.0.0+0x76690b)
      #3 __rollback_to_stable /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/rollback_to_stable/rts_api.c:305 (libwiredtiger.so.12.0.0+0x7bf228)
      #4 __conn_rollback_to_stable /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/conn/conn_api.c:1532 (libwiredtiger.so.12.0.0+0x3525bf)
      #5 _wrap_Connection_rollback_to_stable lang/python/CMakeFiles/wiredtiger_python.dir/wiredtigerPYTHON_wrap.c:9129 (_wiredtiger.so+0x3292c)
      #6 cfunction_call ../src/Python-3.10.4/Objects/methodobject.c:552 (libpython3.10.so.1.0+0x13d277) (BuildId: fd86de633aedf280ff6d4e2885bf4f1d66bc3fa6)
      Previous atomic read of size 8 at 0x7f4fee098798 by thread T11:
      #0 __sweep_check_session_callback /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/conn/conn_sweep.c:369 (libwiredtiger.so.12.0.0+0x3d115e)
      #1 __wt_session_array_walk /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/session/session_helper.c:62 (libwiredtiger.so.12.0.0+0x7bbd66)
      #2 __sweep_check_session_sweep /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/conn/conn_sweep.c:430 (libwiredtiger.so.12.0.0+0x3d0459)
      #3 __sweep_server /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/conn/conn_sweep.c:512 (libwiredtiger.so.12.0.0+0x3cd57c)
      #4 <null> <null> (libtsan.so.2+0x4eaf9) (BuildId: 3ae31d6fc50537eb62b01e97051e166e2d331c8e)
      Location is heap block of size 404368 at 0x7f4fee08c000 allocated by main thread:
      #0 calloc <null> (libtsan.so.2+0x5439e) (BuildId: 3ae31d6fc50537eb62b01e97051e166e2d331c8e)
      #1 __wt_calloc /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/os_common/os_alloc.c:68 (libwiredtiger.so.12.0.0+0x60b474)
      #2 __wti_connection_open /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/conn/conn_open.c:25 (libwiredtiger.so.12.0.0+0x3b7e58)
      #3 wiredtiger_open /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/conn/conn_api.c:3595 (libwiredtiger.so.12.0.0+0x34491c)
      #4 _wrap_wiredtiger_open lang/python/CMakeFiles/wiredtiger_python.dir/wiredtigerPYTHON_wrap.c:9791 (_wiredtiger.so+0x34a1a)
      #5 cfunction_call ../src/Python-3.10.4/Objects/methodobject.c:552 (libpython3.10.so.1.0+0x13d277) (BuildId: fd86de633aedf280ff6d4e2885bf4f1d66bc3fa6)
      Mutex M0 (0x7294001930c8) created at:
      #0 pthread_mutex_init <null> (libtsan.so.2+0x5811f) (BuildId: 3ae31d6fc50537eb62b01e97051e166e2d331c8e)
      #1 __wt_spin_init /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/include/mutex_inline.h:142 (libwiredtiger.so.12.0.0+0x3877d1)
      #2 __wti_connection_init /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/conn/conn_handle.c:51 (libwiredtiger.so.12.0.0+0x386437)
      #3 wiredtiger_open /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/conn/conn_api.c:3293 (libwiredtiger.so.12.0.0+0x34109c)
      #4 _wrap_wiredtiger_open lang/python/CMakeFiles/wiredtiger_python.dir/wiredtigerPYTHON_wrap.c:9791 (_wiredtiger.so+0x34a1a)
      #5 cfunction_call ../src/Python-3.10.4/Objects/methodobject.c:552 (libpython3.10.so.1.0+0x13d277) (BuildId: fd86de633aedf280ff6d4e2885bf4f1d66bc3fa6)
      Thread T11 'sweep-server' (tid=274966, running) created by main thread at:
      #0 pthread_create <null> (libtsan.so.2+0x596e6) (BuildId: 3ae31d6fc50537eb62b01e97051e166e2d331c8e)
      #1 __wt_thread_create /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/os_posix/os_thread.c:71 (libwiredtiger.so.12.0.0+0x6282f7)
      #2 __wti_sweep_create /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/conn/conn_sweep.c:583 (libwiredtiger.so.12.0.0+0x3ccf1b)
      #3 __wti_connection_workers /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/conn/conn_open.c:314 (libwiredtiger.so.12.0.0+0x3bac59)
      #4 wiredtiger_open /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/conn/conn_api.c:3713 (libwiredtiger.so.12.0.0+0x345a4d)
      #5 _wrap_wiredtiger_open lang/python/CMakeFiles/wiredtiger_python.dir/wiredtigerPYTHON_wrap.c:9791 (_wiredtiger.so+0x34a1a)
      #6 cfunction_call ../src/Python-3.10.4/Objects/methodobject.c:552 (libpython3.10.so.1.0+0x13d277) (BuildId: fd86de633aedf280ff6d4e2885bf4f1d66bc3fa6)
      

      logs

      generate-tsan-metric task_log

      Logs:

      SUMMARY: ThreadSanitizer: data race /data/mci/e7bf469c68c9351dfdaac5077e38b3a4/wiredtiger/src/session/session_api.c:2634 in __open_session
      

      logs

            Assignee:
            Krishen Chovhan
            Reporter:
            xgen-buildbaron-user
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: