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

Server Crash (Segfault) on CREATE ROLE when mysql.procs_priv has an invalid structure

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      Hello, I found that the server crashes when CREATE ROLE is executed after the mysql.procs_priv table has been modified.
      Even though changing a system table isn't a standard operation, it would be much safer if the server returned an error about the table's invalid state instead of crashing. This would make the server more resilient to unexpected configurations.

      How to repeat

      ALTER TABLE mysql.servers DROP COLUMN Owner;
      INSERT INTO mysql.servers VALUES (0,0,0,0,0,0,0,0);
      FLUSH PRIVILEGES ;
      ALTER TABLE mysql.plugin DROP COLUMN dl;
      INSTALL SONAME "ha_example" ;
      CREATE OR REPLACE TABLE mysql.procs_priv (id INT );
      INSERT INTO mysql.procs_priv VALUES (0);
      CREATE ROLE r;
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              imchifan 刘启帆
              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.