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

Server crashes in Item_func_or_sum::agg_item_collations

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.2(EOL)
    • 10.2.3
    • JSON

    Description

      SELECT JSON_ARRAY();
      

      10.2 6a10681266

      #3  <signal handler called>
      #4  0x00007fe6735532fa in Item_func_or_sum::agg_item_collations (this=0x7fe62b860138, c=..., fname=0x7fe673e57566 "json_array", av=0x0, count=0, flags=11, item_sep=1) at /data/src/10.2/sql/item.cc:2162
      #5  0x00007fe673589ec0 in Item_func_or_sum::agg_arg_charsets (this=0x7fe62b860138, c=..., items=0x0, nitems=0, flags=11, item_sep=1) at /data/src/10.2/sql/item.h:3977
      #6  0x00007fe6735c51a4 in Item_func_or_sum::agg_arg_charsets_for_string_result (this=0x7fe62b860138, c=..., items=0x0, nitems=0, item_sep=1) at /data/src/10.2/sql/item.h:3995
      #7  0x00007fe673712601 in Item_func_json_array::fix_length_and_dec (this=0x7fe62b860138) at /data/src/10.2/sql/item_jsonfunc.cc:874
      #8  0x00007fe6735ae283 in Item_func::fix_fields (this=0x7fe62b860138, thd=0x7fe62b816070, ref=0x7fe62b860220) at /data/src/10.2/sql/item_func.cc:236
      #9  0x00007fe6735de99d in Item_str_func::fix_fields (this=0x7fe62b860138, thd=0x7fe62b816070, ref=0x7fe62b860220) at /data/src/10.2/sql/item_strfunc.cc:105
      #10 0x00007fe67326e128 in setup_fields (thd=0x7fe62b816070, ref_pointer_array=..., fields=..., mark_used_columns=MARK_COLUMNS_READ, sum_func_list=0x7fe62b8605f8, allow_sum_func=true) at /data/src/10.2/sql/sql_base.cc:6969
      #11 0x00007fe673311db4 in JOIN::prepare (this=0x7fe62b8602e8, tables_init=0x0, wild_num=0, conds_init=0x0, og_num=0, order_init=0x0, skip_order_by=false, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x7fe62b81a280, unit_arg=0x7fe62b819b48) at /data/src/10.2/sql/sql_select.cc:801
      #12 0x00007fe67331b98b in mysql_select (thd=0x7fe62b816070, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fe62b8602c8, unit=0x7fe62b819b48, select_lex=0x7fe62b81a280) at /data/src/10.2/sql/sql_select.cc:3561
      #13 0x00007fe673310b25 in handle_select (thd=0x7fe62b816070, lex=0x7fe62b819a80, result=0x7fe62b8602c8, setup_tables_done_option=0) at /data/src/10.2/sql/sql_select.cc:373
      #14 0x00007fe6732dd46f in execute_sqlcom_select (thd=0x7fe62b816070, all_tables=0x0) at /data/src/10.2/sql/sql_parse.cc:6356
      #15 0x00007fe6732d2f2a in mysql_execute_command (thd=0x7fe62b816070) at /data/src/10.2/sql/sql_parse.cc:3379
      #16 0x00007fe6732e0e2e in mysql_parse (thd=0x7fe62b816070, rawbuf=0x7fe62b860088 "SELECT JSON_ARRAY()", length=19, parser_state=0x7fe6743d4e20, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7799
      #17 0x00007fe6732ceb7e in dispatch_command (command=COM_QUERY, thd=0x7fe62b816070, packet=0x7fe62b854071 "SELECT JSON_ARRAY()", packet_length=19, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1808
      #18 0x00007fe6732cd558 in do_command (thd=0x7fe62b816070) at /data/src/10.2/sql/sql_parse.cc:1368
      #19 0x00007fe673414a26 in do_handle_one_connection (connect=0x7fe66fc5ff70) at /data/src/10.2/sql/sql_connect.cc:1354
      #20 0x00007fe6734147b3 in handle_one_connection (arg=0x7fe66fc5ff70) at /data/src/10.2/sql/sql_connect.cc:1260
      #21 0x00007fe67290c0a4 in start_thread (arg=0x7fe6743d6300) at pthread_create.c:309
      #22 0x00007fe6708b987d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
      

      Attachments

        Issue Links

          Activity

            People

              holyfoot Alexey Botchkov
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.