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

federated use-after-free with temp tables and savepoints

    XMLWordPrintable

Details

    • Q1/2026 Server Development

    Description

      Copied from MDEV-38449,

      INSTALL SONAME 'ha_federatedx';
      eval CREATE SERVER srv FOREIGN DATA WRAPPER mysql OPTIONS (USER 'root', HOST '127.0.0.1', DATABASE 'test', PORT $MASTER_MYPORT);
      CREATE TABLE t1 (c INT) ENGINE=MyISAM;
      CREATE TABLE t2 (c INT) CONNECTION='srv/t1' ENGINE=Federated;
      XA START 'a';
      CREATE TEMPORARY TABLE  t2 (c INT) CONNECTION='srv/t1' ENGINE=Federated;
      INSERT INTO t2 VALUES (0);
      SAVEPOINT sp;
      RELEASE SAVEPOINT sp;
      xa end 'a';
      xa prepare 'a';
      xa commit 'a';
      drop table t1, t2;
      drop table t2;
      uninstall soname 'ha_federatedx';
      

      use-after-free in ASAN builds

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.