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

Server crashes in json_string_set_cs

    XMLWordPrintable

    Details

      Description

      SELECT JSON_CONTAINS_PATH('{ "a": true }', 'all', NULL );
      

      10.2 6a10681266

      #3  <signal handler called>
      #4  0x00007f1b3abc2de7 in json_string_set_cs (s=0x7f1b3b2764b0, i_cs=0xa5a5a5a5a5a5a5a5) at /data/src/10.2/strings/json_lib.c:29
      #5  0x00007f1b3abc4a39 in json_find_path (je=0x7f1b3b2765b0, p=0x7f1af2460be8, p_cur_step=0x7f1af2461030, array_counters=0x7f1b3b276530) at /data/src/10.2/strings/json_lib.c:1199
      #6  0x00007f1b3a5b5274 in Item_func_json_contains_path::val_int (this=0x7f1af24603b8) at /data/src/10.2/sql/item_jsonfunc.cc:781
      #7  0x00007f1b3a40368d in Item::send (this=0x7f1af24603b8, protocol=0x7f1af2416600, buffer=0x7f1b3b2767a0) at /data/src/10.2/sql/item.cc:6775
      #8  0x00007f1b3a0b2178 in Protocol::send_result_set_row (this=0x7f1af2416600, row_items=0x7f1af241a3a8) at /data/src/10.2/sql/protocol.cc:979
      #9  0x00007f1b3a130e50 in select_send::send_data (this=0x7f1af24605b8, items=...) at /data/src/10.2/sql/sql_class.cc:2915
      #10 0x00007f1b3a1bde4f in JOIN::exec_inner (this=0x7f1af24605d8) at /data/src/10.2/sql/sql_select.cc:3278
      #11 0x00007f1b3a1bd8ea in JOIN::exec (this=0x7f1af24605d8) at /data/src/10.2/sql/sql_select.cc:3198
      #12 0x00007f1b3a1bea41 in mysql_select (thd=0x7f1af2416070, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f1af24605b8, unit=0x7f1af2419b48, select_lex=0x7f1af241a280) at /data/src/10.2/sql/sql_select.cc:3583
      #13 0x00007f1b3a1b3b25 in handle_select (thd=0x7f1af2416070, lex=0x7f1af2419a80, result=0x7f1af24605b8, setup_tables_done_option=0) at /data/src/10.2/sql/sql_select.cc:373
      #14 0x00007f1b3a18046f in execute_sqlcom_select (thd=0x7f1af2416070, all_tables=0x0) at /data/src/10.2/sql/sql_parse.cc:6356
      #15 0x00007f1b3a175f2a in mysql_execute_command (thd=0x7f1af2416070) at /data/src/10.2/sql/sql_parse.cc:3379
      #16 0x00007f1b3a183e2e in mysql_parse (thd=0x7f1af2416070, rawbuf=0x7f1af2460088 "SELECT JSON_CONTAINS_PATH('{ \"a\": true }', 'all', NULL )", length=56, parser_state=0x7f1b3b277e20, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7799
      #17 0x00007f1b3a171b7e in dispatch_command (command=COM_QUERY, thd=0x7f1af2416070, packet=0x7f1af2454071 "", packet_length=56, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1808
      #18 0x00007f1b3a170558 in do_command (thd=0x7f1af2416070) at /data/src/10.2/sql/sql_parse.cc:1368
      #19 0x00007f1b3a2b7a26 in do_handle_one_connection (connect=0x7f1b36c5ff70) at /data/src/10.2/sql/sql_connect.cc:1354
      #20 0x00007f1b3a2b77b3 in handle_one_connection (arg=0x7f1b36c5ff70) at /data/src/10.2/sql/sql_connect.cc:1260
      #21 0x00007f1b397af0a4 in start_thread (arg=0x7f1b3b279300) at pthread_create.c:309
      #22 0x00007f1b3775c87d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              holyfoot Alexey Botchkov
              Reporter:
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: