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

Server crash on SELECT with chained USING joins and a column qualified by a non-existent database

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 10.11, 11.4, 10.11.19, 11.4.13
    • 10.11, 11.4
    • Server
    • None
    • aarch64 for 10.11.19 x86_64 for 11.4.13
    • Can result in hang or crash

    Description

      CREATE DATABASE mdevtest;
      USE mdevtest;
      CREATE TABLE a (user_id INT, pf_id INT, source VARCHAR(32));
      CREATE TABLE b (user_id INT, expires DATETIME);
      CREATE TABLE c (pf_id INT, last_load DATETIME);

      SELECT pf_id, source FROM a JOIN b USING(user_id) JOIN c USING(pf_id)
      WHERE a.a.source LIKE '%X%';

      a.a.source is a three-part database.table.column reference to a database that does not exist. Expected behaviour is ER_BAD_FIELD_ERROR; instead the server crashes with signal 11.

      Version Platform Result
      10.11.19 aarch64 crash (signal 11)
      11.4.13 x86_64 crash (signal 11)
      11.8.9 x86_64 ERROR 1054 — correct behaviour

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              jcgiomi Jean Charles Giomi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0d
                  0d
                  Remaining:
                  Remaining Estimate - 1d
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                  Git Integration

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