[MDEV-11463] Server crashes in mark_array upon JSON_VALID Created: 2016-12-02  Updated: 2016-12-03  Resolved: 2016-12-03

Status: Closed
Project: MariaDB Server
Component/s: JSON
Affects Version/s: 10.2
Fix Version/s: 10.2.3

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: json-10.2

Issue Links:
Relates
relates to MDEV-9143 JSON_xxx functions Closed

 Description   

SELECT JSON_VALID(REPEAT('[', 100000))

10.2 6a10681266

#3  <signal handler called>
#4  0x00007fe468099f51 in mark_array (j=0x7fe46874d5b0) at /data/src/10.2/strings/json_lib.c:149
#5  0x00007fe46809b411 in json_scan_next (j=0x7fe46874d5b0) at /data/src/10.2/strings/json_lib.c:914
#6  0x00007fe467a89cab in Item_func_json_valid::val_int (this=0x7fe41fc603a8) at /data/src/10.2/sql/item_jsonfunc.cc:127
#7  0x00007fe4678da68d in Item::send (this=0x7fe41fc603a8, protocol=0x7fe41fc16600, buffer=0x7fe46874d7a0) at /data/src/10.2/sql/item.cc:6775
#8  0x00007fe467589178 in Protocol::send_result_set_row (this=0x7fe41fc16600, row_items=0x7fe41fc1a3a8) at /data/src/10.2/sql/protocol.cc:979
#9  0x00007fe467607e50 in select_send::send_data (this=0x7fe41fc60548, items=...) at /data/src/10.2/sql/sql_class.cc:2915
#10 0x00007fe467694e4f in JOIN::exec_inner (this=0x7fe41fc60568) at /data/src/10.2/sql/sql_select.cc:3278
#11 0x00007fe4676948ea in JOIN::exec (this=0x7fe41fc60568) at /data/src/10.2/sql/sql_select.cc:3198
#12 0x00007fe467695a41 in mysql_select (thd=0x7fe41fc16070, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fe41fc60548, unit=0x7fe41fc19b48, select_lex=0x7fe41fc1a280) at /data/src/10.2/sql/sql_select.cc:3583
#13 0x00007fe46768ab25 in handle_select (thd=0x7fe41fc16070, lex=0x7fe41fc19a80, result=0x7fe41fc60548, setup_tables_done_option=0) at /data/src/10.2/sql/sql_select.cc:373
#14 0x00007fe46765746f in execute_sqlcom_select (thd=0x7fe41fc16070, all_tables=0x0) at /data/src/10.2/sql/sql_parse.cc:6356
#15 0x00007fe46764cf2a in mysql_execute_command (thd=0x7fe41fc16070) at /data/src/10.2/sql/sql_parse.cc:3379
#16 0x00007fe46765ae2e in mysql_parse (thd=0x7fe41fc16070, rawbuf=0x7fe41fc60088 "SELECT JSON_VALID(REPEAT('[', 100000))", length=38, parser_state=0x7fe46874ee20, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7799
#17 0x00007fe467648b7e in dispatch_command (command=COM_QUERY, thd=0x7fe41fc16070, packet=0x7fe41fc54071 "", packet_length=38, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1808
#18 0x00007fe467647558 in do_command (thd=0x7fe41fc16070) at /data/src/10.2/sql/sql_parse.cc:1368
#19 0x00007fe46778ea26 in do_handle_one_connection (connect=0x7fe46405ff70) at /data/src/10.2/sql/sql_connect.cc:1354
#20 0x00007fe46778e7b3 in handle_one_connection (arg=0x7fe46405ff70) at /data/src/10.2/sql/sql_connect.cc:1260
#21 0x00007fe466c860a4 in start_thread (arg=0x7fe468750300) at pthread_create.c:309
#22 0x00007fe464c3387d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111



 Comments   
Comment by Alexey Botchkov [ 2016-12-03 ]

http://lists.askmonty.org/pipermail/commits/2016-December/010173.html

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