Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL)
-
None
Description
select json_contains('[{"abc":"def", "def":"abc"}]', '["foo","bar"]'); |
10.2 65b4d7457e40ee25302d2df28b0d200ff59d9e6d |
mysqld: /data/src/10.2/sql/item_jsonfunc.cc:799: int check_contains(json_engine_t*, json_engine_t*): Assertion `js->state == JST_VALUE' failed.
|
161214 4:13:27 [ERROR] mysqld got signal 6 ;
|
 |
#7 0x00007ffaadbdd312 in __GI___assert_fail (assertion=0x7ffab07a4aab "js->state == JST_VALUE", file=0x7ffab07a4f58 "/data/src/10.2/sql/item_jsonfunc.cc", line=799, function=0x7ffab07a4f20 <check_contains(st_json_engine_t*, st_json_engine_t*)::__PRETTY_FUNCTION__> "int check_contains(json_engine_t*, json_engine_t*)") at assert.c:101
|
#8 0x00007ffab00f1664 in check_contains (js=js@entry=0x7ffab0d811a0, value=value@entry=0x7ffab0d81290) at /data/src/10.2/sql/item_jsonfunc.cc:799
|
#9 0x00007ffab00f1747 in check_contains (js=js@entry=0x7ffab0d811a0, value=value@entry=0x7ffab0d81290) at /data/src/10.2/sql/item_jsonfunc.cc:827
|
#10 0x00007ffab00f1ae3 in Item_func_json_contains::val_int (this=0x7ffaa4c64568) at /data/src/10.2/sql/item_jsonfunc.cc:935
|
#11 0x00007ffaaff6fe94 in Item::send (this=0x7ffaa4c64568, protocol=0x7ffaa4c16600, buffer=0x7ffab0d81420) at /data/src/10.2/sql/item.cc:6829
|
#12 0x00007ffaafcdc70d in Protocol::send_result_set_row (this=this@entry=0x7ffaa4c16600, row_items=row_items@entry=0x7ffaa4c1a3a0) at /data/src/10.2/sql/protocol.cc:979
|
#13 0x00007ffaafd43fb5 in select_send::send_data (this=0x7ffaa4c64c48, items=...) at /data/src/10.2/sql/sql_class.cc:2737
|
#14 0x00007ffaafde0396 in JOIN::exec_inner (this=this@entry=0x7ffaa4c64c68) at /data/src/10.2/sql/sql_select.cc:3279
|
#15 0x00007ffaafde1011 in JOIN::exec (this=this@entry=0x7ffaa4c64c68) at /data/src/10.2/sql/sql_select.cc:3199
|
#16 0x00007ffaafddf899 in mysql_select (thd=thd@entry=0x7ffaa4c16070, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7ffaa4c64c48, unit=0x7ffaa4c19b48, select_lex=0x7ffaa4c1a278) at /data/src/10.2/sql/sql_select.cc:3584
|
#17 0x00007ffaafddfafd in handle_select (thd=thd@entry=0x7ffaa4c16070, lex=lex@entry=0x7ffaa4c19a80, result=result@entry=0x7ffaa4c64c48, setup_tables_done_option=setup_tables_done_option@entry=0) at /data/src/10.2/sql/sql_select.cc:373
|
#18 0x00007ffaafd704b9 in execute_sqlcom_select (thd=thd@entry=0x7ffaa4c16070, all_tables=0x0) at /data/src/10.2/sql/sql_parse.cc:6347
|
#19 0x00007ffaafd79342 in mysql_execute_command (thd=thd@entry=0x7ffaa4c16070) at /data/src/10.2/sql/sql_parse.cc:3370
|
#20 0x00007ffaafd82f42 in mysql_parse (thd=thd@entry=0x7ffaa4c16070, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7ffab0d838e0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /data/src/10.2/sql/sql_parse.cc:7790
|
#21 0x00007ffaafd851cb in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7ffaa4c16070, packet=packet@entry=0x7ffaa4c58071 "", packet_length=packet_length@entry=69, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /data/src/10.2/sql/sql_parse.cc:1799
|
#22 0x00007ffaafd87cfd in do_command (thd=0x7ffaa4c16070) at /data/src/10.2/sql/sql_parse.cc:1359
|
#23 0x00007ffaafe75bf0 in do_handle_one_connection (connect=connect@entry=0x7ffaad071410) at /data/src/10.2/sql/sql_connect.cc:1354
|
#24 0x00007ffaafe75dd9 in handle_one_connection (arg=arg@entry=0x7ffaad071410) at /data/src/10.2/sql/sql_connect.cc:1260
|
#25 0x00007ffab012335b in pfs_spawn_thread (arg=0x7ffaad015df0) at /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#26 0x00007ffaaf4770a4 in start_thread (arg=0x7ffab0d85300) at pthread_create.c:309
|
#27 0x00007ffaadc9787d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
|
Attachments
Issue Links
- relates to
-
MDEV-9143 JSON_xxx functions
- Closed