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

Creating and running a mroonga function causes the server to go away

    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

          Activity

            People

            Assignee:
            Kentoku Kentoku Shiba
            Reporter:
            greenman Ian Gilfillan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: