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

Server crash in JOIN::fix_all_splittings_in_plan()

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.10, 10.11, 11.0, 11.1, 10.11.5
    • 10.11, 11.0
    • Server

    Description

      How to trigger

      CREATE TABLE t0 ( c0 INT ( 1 ) NOT NULL , c1 INT NOT NULL PRIMARY KEY ) ;
      SELECT ra4 . c1 ca6 FROM t0 ra3 LEFT OUTER JOIN t0 ra4 ON ra3 . c0 = ra4 . c1 WHERE ra3 . c0 IN ( SELECT CAST( ra6 . c1 IS NULL AS SIGNED ) ca0 FROM t0 ra5 LEFT JOIN ( t0 ra6 LEFT JOIN t0 ra7 ON ra3 . c0 = ra7 . c1 ) ON ra5 . c1 = ra3 . c0 ) ;
      

      Server error log

      Server version: 10.11.5-MariaDB source revision: 7875294b6b74b53dd3aaa723e6cc103d2bb47b2c
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=1
      max_threads=153
      thread_count=21
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 468037 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7faadc0022c8
      Attempting backtrace. You can use the following information to find out
      where mysqld died. If you see no messages after this, something went
      terribly wrong...
      stack_bottom = 0x7fab4404ad98 thread_stack 0x49000
      mysys/stacktrace.c:216(my_print_stacktrace)[0x56430268725e]
      sql/signal_handler.cc:241(handle_fatal_signal)[0x5643021f8765]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7fab4742f980]
      sql/opt_split.cc:1341(JOIN::fix_all_splittings_in_plan())[0x564302174f10]
      sql/sql_select.cc:2576(JOIN::optimize_inner())[0x56430203b8a5]
      sql/sql_select.cc:1897(JOIN::optimize())[0x56430203baf3]
      sql/sql_select.cc:5098(mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x56430203bbd9]
      sql/sql_select.cc:586(handle_select(THD*, LEX*, select_result*, unsigned long long))[0x56430203c3be]
      sql/sql_parse.cc:6289(execute_sqlcom_select(THD*, TABLE_LIST*))[0x564301fc7cee]
      sql/sql_parse.cc:6025(mysql_execute_command(THD*, bool))[0x564301fd13f1]
      sql/sql_parse.cc:8051(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x564301fc33af]
      sql/sql_parse.cc:1865(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool))[0x564301fce104]
      sql/sql_parse.cc:1407(do_command(THD*, bool))[0x564301fcf60b]
      sql/sql_connect.cc:1416(do_handle_one_connection(CONNECT*, bool))[0x5643020d9bbf]
      sql/sql_connect.cc:1318(handle_one_connection)[0x5643020d9efd]
      perfschema/pfs.cc:2204(pfs_spawn_thread)[0x5643023d9e85]
      nptl/pthread_create.c:463(start_thread)[0x7fab474246db]
      x86_64/clone.S:97(clone)[0x7fab4658661f]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7faadc016850): SELECT ra4 . c1 ca6 FROM t0 ra3 LEFT OUTER JOIN t0 ra4 ON ra3 . c0 = ra4 . c1 WHERE ra3 . c0 IN ( SELECT CAST( ra6 . c1 IS NULL AS SIGNED ) ca0 FROM t0 ra5 LEFT JOIN ( t0 ra6 LEFT JOIN t0 ra7 ON ra3 . c0 = ra7 . c1 ) ON ra5 . c1 = ra3 . c0 )
       
      Connection ID (thread ID): 23
      Status: NOT_KILLED
       
      Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off,hash_join_cardinality=off
      

      Attachments

        Activity

          People

            psergei Sergei Petrunia
            wulian jiaqi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.