[MDEV-9702] jsonget_string function from ha_connect.so crashes the server Created: 2016-03-09  Updated: 2016-03-10  Resolved: 2016-03-10

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - Connect
Affects Version/s: 10.0.23
Fix Version/s: 10.0.24, 10.1.12

Type: Bug Priority: Minor
Reporter: Claudio Nanni Assignee: Unassigned
Resolution: Fixed Votes: 2
Labels: connect, json
Environment:

Linux



 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]
...



 Comments   
Comment by Elena Stepanova [ 2016-03-10 ]

It was fixed in 10.0.24 in scope of MDEV-9446.

Generated at Thu Feb 08 07:36:40 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.