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

Server crash in Item_sum_hybrid::clear()

    XMLWordPrintable

Details

    Description

      CREATE TABLE t1 (a int, b int, c int);
      INSERT INTO t1 VALUES (2,3,207), (1,21,909), (7,13,312), (8,64,248);
       
      SELECT * FROM t1 ORDER BY max(t1.a) over ();
      

       10.2 a12b8ac8e963
       
      #4  0x000055c4394b5ab5 in Item_sum_hybrid::clear (this=0x7f8408012d88) at /git/10.2/sql/item_sum.cc:2066
      #5  0x000055c43932bc3d in compute_window_func (thd=0x7f8408000b00, window_functions=..., cursor_managers=..., tbl=0x7f8408136658, filesort_result=0x7f8408138820) at /git/10.2/sql/sql_window.cc:2622
      #6  0x000055c43932c068 in Window_func_runner::exec (this=0x7f8408015bf8, thd=0x7f8408000b00, tbl=0x7f8408136658, filesort_result=0x7f8408138820) at /git/10.2/sql/sql_window.cc:2742
      #7  0x000055c43932c186 in Window_funcs_sort::exec (this=0x7f8408015bf0, join=0x7f8408013170, keep_filesort_result=false) at /git/10.2/sql/sql_window.cc:2767
      #8  0x000055c43932c688 in Window_funcs_computation::exec (this=0x7f8408015bd0, join=0x7f8408013170, keep_last_filesort_result=false) at /git/10.2/sql/sql_window.cc:2893
      #9  0x000055c4391e63b0 in AGGR_OP::end_send (this=0x7f8408015868) at /git/10.2/sql/sql_select.cc:26667
      #10 0x000055c4391d14f7 in sub_select_postjoin_aggr (join=0x7f8408013170, join_tab=0x7f8408014ac8, end_of_records=true) at /git/10.2/sql/sql_select.cc:18477
      #11 0x000055c4391d181b in sub_select (join=0x7f8408013170, join_tab=0x7f8408014718, end_of_records=true) at /git/10.2/sql/sql_select.cc:18713
      #12 0x000055c4391d1033 in do_select (join=0x7f8408013170, procedure=0x0) at /git/10.2/sql/sql_select.cc:18308
      #13 0x000055c4391aba59 in JOIN::exec_inner (this=0x7f8408013170) at /git/10.2/sql/sql_select.cc:3621
      #14 0x000055c4391aaf08 in JOIN::exec (this=0x7f8408013170) at /git/10.2/sql/sql_select.cc:3416
      #15 0x000055c4391ac0ca in mysql_select (thd=0x7f8408000b00, tables=0x7f8408012658, wild_num=1, fields=..., conds=0x0, og_num=1, order=0x7f8408013030, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f8408013150, unit=0x7f84080046e0, select_lex=0x7f8408004e18) at /git/10.2/sql/sql_select.cc:3816
      #16 0x000055c4391a0388 in handle_select (thd=0x7f8408000b00, lex=0x7f8408004618, result=0x7f8408013150, setup_tables_done_option=0) at /git/10.2/sql/sql_select.cc:376
      #17 0x000055c43916b9dd in execute_sqlcom_select (thd=0x7f8408000b00, all_tables=0x7f8408012658) at /git/10.2/sql/sql_parse.cc:6478
      #18 0x000055c439161659 in mysql_execute_command (thd=0x7f8408000b00) at /git/10.2/sql/sql_parse.cc:3484
      #19 0x000055c43916f869 in mysql_parse (thd=0x7f8408000b00, rawbuf=0x7f8408012448 "SELECT * FROM t1 ORDER BY max(t1.a) over ()", length=43, parser_state=0x7f84545f2080, is_com_multi=false, is_next_command=false) at /git/10.2/sql/sql_parse.cc:8012
      #20 0x000055c43915ceca in dispatch_command (command=COM_QUERY, thd=0x7f8408000b00, packet=0x7f84080960f1 "", packet_length=43, is_com_multi=false, is_next_command=false) at /git/10.2/sql/sql_parse.cc:1824
      #21 0x000055c43915b826 in do_command (thd=0x7f8408000b00) at /git/10.2/sql/sql_parse.cc:1378
      #22 0x000055c4392ad8d6 in do_handle_one_connection (connect=0x55c43c262e40) at /git/10.2/sql/sql_connect.cc:1335
      #23 0x000055c4392ad656 in handle_one_connection (arg=0x55c43c262e40) at /git/10.2/sql/sql_connect.cc:1241
      #24 0x000055c439adc56a in pfs_spawn_thread (arg=0x55c43c1a95a0) at /git/10.2/storage/perfschema/pfs.cc:1862
      #25 0x00007f8464c656ba in start_thread (arg=0x7f84545f3700) at pthread_create.c:333
      #26 0x00007f84640fa41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
      

      Attachments

        Issue Links

          Activity

            People

              varun Varun Gupta (Inactive)
              alice Alice Sherepa
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.