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

data race at safe_mutex_lock()

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL)
    • 10.3.17, 10.4.7
    • Server
    • None

    Description

      WARNING: ThreadSanitizer: data race (pid=27180)
        Read of size 8 at 0x000004011f90 by thread T17:
          #0 safe_mutex_lock build/../mysys/thr_mutex.c:240:12 (mysqld+0x2206cc3)
          #1 inline_mysql_mutex_lock build/../include/mysql/psi/mysql_thread.h:710:11 (mysqld+0x21f4b44)
          #2 my_thread_init build/../mysys/my_thr_init.c:307:3 (mysqld+0x21f4628)
          #3 fts_optimize_thread(void*) build/../storage/innobase/fts/fts0opt.cc:2799:2 (mysqld+0x1cb9073)
       
        Previous write of size 8 at 0x000004011f90 by thread T16 (mutexes: write M862, write M861):
          #0 safe_mutex_lock build/../mysys/thr_mutex.c:310:11 (mysqld+0x22071d0)
          #1 inline_mysql_mutex_lock build/../include/mysql/psi/mysql_thread.h:710:11 (mysqld+0x21f4b44)
          #2 my_thread_init build/../mysys/my_thr_init.c:307:3 (mysqld+0x21f4628)
          #3 dict_stats_thread build/../storage/innobase/dict/dict0stats_bg.cc:459:2 (mysqld+0x1c050b4)
      

      mp->file is read without mutex protection. It should be protected by safe_mutex_t::global

      Attachments

        Activity

          People

            kevg Eugene Kosov (Inactive)
            kevg Eugene Kosov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.