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

Assertion `status_var.local_memory_used == 0 || !debug_assert_on_not_freed_memory' with SESSION_TRACK_SYSTEM_VARIABLES and binlog

    XMLWordPrintable

    Details

      Description

      Setting to trivial and leaving unassigned, because it's a 10.2-only issue and involves SESSION_TRACK_SYSTEM_VARIABLES and some concurrency

      --source include/have_innodb.inc
      --source include/have_log_bin.inc
       
      CREATE TABLE t1 (a INT);
      INSERT INTO t1 VALUES (1),(2);
       
      CREATE TABLE t2 (b INT) ENGINE=InnoDB;
       
      --connect (con1,localhost,root,,test)
      SET AUTOCOMMIT=OFF;
      INSERT INTO t2 VALUES (1);
       
      --connection default
      SET GLOBAL BINLOG_COMMIT_WAIT_COUNT= 100;
      SET SESSION SESSION_TRACK_SYSTEM_VARIABLES= '*';
       
      --connection con1
      --send
        COMMIT;
       
      --connection default
      DELETE FROM t1;
       
      # Cleanup
      DROP TABLE t1, t2;
      SET GLOBAL BINLOG_COMMIT_WAIT_COUNT= DEFAULT;
      

      10.2 42ae7659

      Warning:   24 bytes freed by T@9, allocated by T@11 at sql/session_tracker.cc:337, sql/session_tracker.cc:141, sql/session_tracker.cc:859, sql/sql_class.cc:7164, sql/log.cc:5935, sql/log.cc:8107, sql/log.cc:7842, sql/log.cc:7643
      2021-10-30  2:09:26 139907151918848 [Note] /mnt-hd8t/bld/10.2-debug-nightly/bin/mysqld (initiated by: root[root] @ localhost [127.0.0.1]): Normal shutdown
      mysqld: /data/src/10.2/sql/mysqld.cc:4099: void my_malloc_size_cb_func(long long int, my_bool): Assertion `(longlong) thd->status_var.local_memory_used >= 0 || !debug_assert_on_not_freed_memory' failed.
      211030  2:09:26 [ERROR] mysqld got signal 6 ;
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration

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