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

jsonget_string function from ha_connect.so crashes the server

    XMLWordPrintable

Details

    Description

      MariaDB [test]> select @@version;
      +---------------------+
      | @@version           |
      +---------------------+
      | 10.0.23-MariaDB-log |
      +---------------------+
      1 row in set (0.00 sec)
       
      MariaDB [test]> create function jsonget_string returns string soname 'ha_connect.so';
      ERROR 1125 (HY000): Function 'jsonget_string' already exists
       
      MariaDB [test]> select  jsonget_string('{"a":1,"b":1457518730,"c":false,"d":"completed"} ', 'b');
      ERROR 2013 (HY000): Lost connection to MySQL server during query
      MariaDB [test]> 160309 16:35:06 mysqld_safe Number of processes running now: 0
      160309 16:35:06 mysqld_safe mysqld restarted
      

       

      Stack trace:

      Thread pointer: 0x0x7f22d6ae4008
      Attempting backtrace. You can use the following information to find out
      where mysqld died. If you see no messages after this, something went
      terribly wrong...
      stack_bottom = 0x7f21283b5e30 thread_stack 0x48000
      (my_addr_resolve failure: fork)
      /usr/sbin/mysqld(my_print_stacktrace+0x2e) [0x7f58eb7c1a6e]
      /usr/sbin/mysqld(handle_fatal_signal+0x457) [0x7f58eb2fcff7]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f58ea300340]
      /usr/lib/mysql/plugin/ha_connect.so(+0xade07) [0x7f2041148e07]
      /usr/lib/mysql/plugin/ha_connect.so(jsonget_string+0x239) [0x7f20411509e9]
      /usr/sbin/mysqld(Item_func_udf_str::val_str(String*)+0xad) [0x7f58eb36137d]
      ...

      Attachments

        Activity

          People

            Unassigned Unassigned
            claudio.nanni Claudio Nanni
            Votes:
            2 Vote for this issue
            Watchers:
            4 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.