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

Creating and running a mroonga function causes various crashes, UBSAN member call on null pointer, UBSAN access within null pointer

    XMLWordPrintable

Details

    Description

      If mroonga is not installed, creating at least the mroonga_escape function and running it results in unexpected problems:

      In 10.1.37

      CREATE FUNCTION mroonga_escape RETURNS STRING SONAME 'ha_mroonga.so';
      Query OK, 0 rows affected (0.04 sec)
       
      select mroonga_escape('10');
      ERROR 2013 (HY000): Lost connection to MySQL server during query
       
      select mroonga_escape('10');
      ERROR 2006 (HY000): MySQL server has gone away
      No connection. Trying to reconnect...
      

      In 10.2.27:

      CREATE FUNCTION mroonga_escape RETURNS STRING SONAME 'ha_mroonga.so';
      Query OK, 0 rows affected (0.01 sec)
       
      SELECT mroonga_escape("+-<>~*()\"\:");
      ERROR 2013 (HY000): Lost connection to MySQL server during query
      

      In 10.3.20 and 10.4.10

      CREATE FUNCTION mroonga_escape RETURNS STRING   SONAME 'ha_mroonga.so';
      ERROR 1041 (HY000): Out of memory.
      

      Attachments

        Issue Links

          Activity

            People

              TheLinuxJedi Andrew Hutchings (Inactive)
              greenman Ian Gilfillan
              Votes:
              0 Vote for this issue
              Watchers:
              8 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.