Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-15111

fix simple InnoDB data race

    XMLWordPrintable

Details

    • 10.3.6-1

    Description

      ==================
      WARNING: ThreadSanitizer: data race (pid=12041)
        Write of size 8 at 0x000003949278 by thread T26 (mutexes: write M226445748578513120):
          #0 thd_destructor_proxy storage/innobase/handler/ha_innodb.cc:314:14 (mysqld+0x19b5505)
       
        Previous read of size 8 at 0x000003949278 by main thread:
          #0 innobase_init(void*) storage/innobase/handler/ha_innodb.cc:4180:11 (mysqld+0x1a03404)
          #1 ha_initialize_handlerton(st_plugin_int*) sql/handler.cc:522:31 (mysqld+0xc5ec73)
          #2 plugin_initialize(st_mem_root*, st_plugin_int*, int*, char**, bool) sql/sql_plugin.cc:1447:9 (mysqld+0x134908d)
          #3 plugin_init(int*, char**, int) sql/sql_plugin.cc:1729:15 (mysqld+0x13484f0)
          #4 init_server_components() sql/mysqld.cc:5345:7 (mysqld+0xbf720f)
          #5 mysqld_main(int, char**) sql/mysqld.cc:5940:7 (mysqld+0xbf107d)
          #6 main sql/main.cc:25:10 (mysqld+0xbe971b)
       
        Location is global 'srv_running' of size 8 at 0x000003949278 (mysqld+0x000003949278)
       
        Mutex M226445748578513120 is already destroyed.
       
        Thread T26 (tid=12070, running) created by main thread at:
          #0 pthread_create /home/kevg/fun/cpp_projects/llvm_toolchain/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:992 (mysqld+0xb7a016)
          #1 spawn_thread_noop mysys/psi_noop.c:187:10 (mysqld+0x26fe403)
          #2 inline_mysql_thread_create(unsigned int, unsigned long*, pthread_attr_t const*, void* (*)(void*), void*) include/mysql/psi/mysql_thread.h:1239:11 (mysqld+0x1a1136d)
          #3 innobase_init(void*) storage/innobase/handler/ha_innodb.cc:4177:3 (mysqld+0x1a033e5)
          #4 ha_initialize_handlerton(st_plugin_int*) sql/handler.cc:522:31 (mysqld+0xc5ec73)
          #5 plugin_initialize(st_mem_root*, st_plugin_int*, int*, char**, bool) sql/sql_plugin.cc:1447:9 (mysqld+0x134908d)
          #6 plugin_init(int*, char**, int) sql/sql_plugin.cc:1729:15 (mysqld+0x13484f0)
          #7 init_server_components() sql/mysqld.cc:5345:7 (mysqld+0xbf720f)
          #8 mysqld_main(int, char**) sql/mysqld.cc:5940:7 (mysqld+0xbf107d)
          #9 main sql/main.cc:25:10 (mysqld+0xbe971b)
       
      SUMMARY: ThreadSanitizer: data race storage/innobase/handler/ha_innodb.cc:314:14 in thd_destructor_proxy
      ==================
      

      Attachments

        Activity

          People

            svoj Sergey Vojtovich
            svoj Sergey Vojtovich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.