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

Unsafe use of LOCK_thd_kill in my_malloc_size_cb_func()

    XMLWordPrintable

Details

    Description

      SET max_session_mem_used=50000;
      SET SESSION max_statement_time=1;
      --error ER_STATEMENT_TIMEOUT
      SELECT SLEEP (3);
      INSTALL PLUGIN RocksDB SONAME 'ha_rocksdb.so';
      CREATE TABLE t1 (i INT) ENGINE=RocksDB max_rows=100000000000;
      --error ER_BAD_FIELD_ERROR
      DELETE FROM t1 WHERE c1='-838:59:59' AND c2='-838:59:59';
      UNINSTALL PLUGIN RocksDB;
      

      Leads to:

      11.4.0 9b1ea6904965dd345478dedd80e181ad54c767da (Debug)

      safe_mutex: Found wrong usage of mutex 'LOCK_plugin' and 'LOCK_thd_kill'
      Mutex currently locked (in reverse order):
      LOCK_thd_kill                     /test/11.4_dbg/sql/sql_class.h  line 4703
      LOCK_plugin                       /test/11.4_dbg/sql/sql_plugin.cc  line 2477
      

      Present in 10.4+, debug builds

      Attachments

        Issue Links

          Activity

            People

              knielsen Kristian Nielsen
              Roel Roel Van de Paar
              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.