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

Server crashes in SEL_ARG::store_max on select from an I_S table with optimizer_use_condition_selectivity > 2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.6
    • Fix Version/s: 10.0.7
    • Component/s: None
    • Labels:
      None

      Description

      SET optimizer_use_condition_selectivity=3;
      SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE SQL_MODE != '';

      #3  <signal handler called>
      #4  __memcpy_ssse3 () at ../sysdeps/x86_64/multiarch/memcpy-ssse3.S:588
      #5  0x0000000000970619 in SEL_ARG::store_max (this=0x7f42288fe0a8, length=24578, max_key=0x7f4226ff96f8, max_key_flag=0) at 10.0/sql/opt_range.cc:497
      #6  0x000000000094faa8 in step_down_to (arg=0x7f4226ff96b0, key_tree=0x7f42288fe0a8) at 10.0/sql/opt_range_mrr.cc:104
      #7  0x000000000094fede in sel_arg_range_seq_next (rseq=0x7f4226ff96b0, range=0x7f4226ff9660) at 10.0/sql/opt_range_mrr.cc:236
      #8  0x00000000009551ce in records_in_column_ranges (param=0x7f4226ff9ca0, idx=0, tree=0x7f42288fe0a8) at 10.0/sql/opt_range.cc:3360
      #9  0x00000000009554fc in calculate_cond_selectivity_for_table (thd=0x7f422f708070, table=0x7f4228829088, cond=0x7f4228824a70) at 10.0/sql/opt_range.cc:3478
      #10 0x00000000006a1ac5 in make_join_statistics (join=0x7f42288a8ae0, tables_list=..., conds=0x7f4228824a70, keyuse_array=0x7f42288a8de8) at 10.0/sql/sql_select.cc:3916
      #11 0x0000000000698e8c in JOIN::optimize_inner (this=0x7f42288a8ae0) at 10.0/sql/sql_select.cc:1326
      #12 0x0000000000697dcc in JOIN::optimize (this=0x7f42288a8ae0) at 10.0/sql/sql_select.cc:1012
      #13 0x000000000069f9a5 in mysql_select (thd=0x7f422f708070, rref_pointer_array=0x7f422f70c688, tables=0x7f42288242e8, wild_num=1, fields=..., conds=0x7f4228824a70, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2684619520, result=0x7f4228825ce0, unit=0x7f422f70bd38, select_lex=0x7f422f70c418) at 10.0/sql/sql_select.cc:3278
      #14 0x0000000000696123 in handle_select (thd=0x7f422f708070, lex=0x7f422f70bc78, result=0x7f4228825ce0, setup_tables_done_option=0) at 10.0/sql/sql_select.cc:371
      #15 0x000000000066b5f8 in execute_sqlcom_select (thd=0x7f422f708070, all_tables=0x7f42288242e8) at 10.0/sql/sql_parse.cc:5221
      #16 0x0000000000663ab8 in mysql_execute_command (thd=0x7f422f708070) at 10.0/sql/sql_parse.cc:2552
      #17 0x000000000066dd78 in mysql_parse (thd=0x7f422f708070, rawbuf=0x7f4228824088 "SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE SQL_MODE != ''", length=62, parser_state=0x7f4226ffd630) at 10.0/sql/sql_parse.cc:6365
      #18 0x0000000000660cba in dispatch_command (command=COM_QUERY, thd=0x7f422f708070, packet=0x7f422f212071 "SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE SQL_MODE != ''", packet_length=62) at 10.0/sql/sql_parse.cc:1296
      #19 0x000000000066005c in do_command (thd=0x7f422f708070) at 10.0/sql/sql_parse.cc:993
      #20 0x0000000000777fb9 in do_handle_one_connection (thd_arg=0x7f422f708070) at 10.0/sql/sql_connect.cc:1379
      #21 0x0000000000777d0c in handle_one_connection (arg=0x7f422f708070) at 10.0/sql/sql_connect.cc:1293
      #22 0x0000000000a987cd in pfs_spawn_thread (arg=0x7f422f7e6350) at 10.0/storage/perfschema/pfs.cc:1853
      #23 0x00007f4254fffb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
      #24 0x00007f4253b4ea7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      revision-id: bar@mnogosearch.org-20131206150255-und2j89f85by7imn
      revno: 3915
      branch-nick: 10.0

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              igor Igor Babaev
              Reporter:
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: