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

Crash when select where not in select distinct subquery

    XMLWordPrintable

    Details

      Description

      170712 16:02:48 [ERROR] mysqld got signal 11 ;
      This could be because you hit a bug. It is also possible that this binary
      or one of the libraries it was linked against is corrupt, improperly built,
      or misconfigured. This error can also be caused by malfunctioning hardware.
      To report this bug, see https://mariadb.com/kb/en/reporting-bugs
      We will try our best to scrape up some info that will hopefully help
      diagnose the problem, but since we have already crashed, 
      something is definitely wrong and this may fail.
      Server version: 10.2.6-MariaDB
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=19
      max_threads=153
      thread_count=25
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467201 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
      Thread pointer: 0x7f71080009a8
      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 = 0x7f71b0476d70 thread_stack 0x49000
      /usr/sbin/mysqld(my_print_stacktrace+0x2b)[0x7f71ca7f0a6b]
      /usr/sbin/mysqld(handle_fatal_signal+0x4d5)[0x7f71ca2880e5]
      /lib64/libpthread.so.0(+0x3921c0f7e0)[0x7f71c97b47e0]
      /usr/sbin/mysqld(_ZN4JOIN4execEv+0x1a)[0x7f71ca15d81a]
      /usr/sbin/mysqld(_ZN24subselect_hash_sj_engine4execEv+0x4a)[0x7f71ca31efca]
      /usr/sbin/mysqld(_ZN14Item_subselect4execEv+0x5a)[0x7f71ca315faa]
      /usr/sbin/mysqld(_ZN17Item_in_subselect8val_boolEv+0x3c)[0x7f71ca31581c]
      /usr/sbin/mysqld(_ZN17Item_in_optimizer7val_intEv+0x16d)[0x7f71ca2bab8d]
      mysys/stacktrace.c:268(my_print_stacktrace)[0x7f71ca29623a]
      /usr/sbin/mysqld(_ZN18Item_cache_wrapper5cacheEv+0x33)[0x7f71ca2afcf3]
      /usr/sbin/mysqld(_ZN18Item_cache_wrapper8val_boolEv+0x58)[0x7f71ca2a5af8]
      /usr/sbin/mysqld(_ZN13Item_func_not7val_intEv+0x1f)[0x7f71ca2b21af]
      sql/sql_analyze_stmt.h:97(Time_and_counter_tracker::incr_loops())[0x7f71ca13730d]
      sql/item_subselect.cc:5396(subselect_hash_sj_engine::exec())[0x7f71ca13f70e]
      /usr/sbin/mysqld(_ZN4JOIN10exec_innerEv+0x993)[0x7f71ca15d613]
      sql/item_cmpfunc.cc:1622(Item_in_optimizer::val_int())[0x7f71ca15d83c]
      /usr/sbin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x12a)[0x7f71ca15c7ba]
      /usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x1d4)[0x7f71ca15da54]
      sql/item.cc:9460(Item_cache_int::cache_value())[0x7f71ca105066]
      sql/sql_select.cc:373(sult*, unsigned long))[0x7f71ca10f501]
      sql/sql_parse.cc:3448(mysql_execute_command(THD*))[0x7f71ca386a6e]
      sql/sp_head.cc:2997(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x7f71ca38c739]
      sql/sp_head.cc:3151(sp_instr_stmt::execute(THD*, unsigned int*))[0x7f71ca38cc55]
      sql/sp_head.cc:1325(sp_head::execute(THD*, bool))[0x7f71ca389b30]
      sql/sp_head.cc:2112(sp_head::execute_procedure(THD*, List<Item>*))[0x7f71ca38af3e]
      sql/sql_parse.cc:2883(do_execute_sp)[0x7f71ca104b7d]
      sql/sql_parse.cc:5797(mysql_execute_command(THD*))[0x7f71ca10b46e]
      sql/sql_parse.cc:7874(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x7f71ca11258a]
      sql/sql_parse.cc:1812(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x7f71ca11480d]
      sql/sql_parse.cc:1364(do_command(THD*))[0x7f71ca114dd1]
      sql/sql_connect.cc:1354(do_handle_one_connection(CONNECT*))[0x7f71ca1d099f]
      sql/sql_connect.cc:1262(handle_one_connection)[0x7f71ca1d0ac4]
      /lib64/libpthread.so.0(+0x3921c07aa1)[0x7f71c97acaa1]
      /lib64/libc.so.6(clone+0x6d)[0x7f71c7ec5aad]
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f7108021b90): select * from risk_sod 
      where cport_legal_entity_id not in(select distinct(rca.cport_legal_entity_id) from risk_client_accounts rca)
      Connection ID (thread ID): 98
      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=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on
      The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
      information that should help you find out what is causing the crash.
      170712 16:02:48 mysqld_safe Number of processes running now: 0
      170712 16:02:48 mysqld_safe mysqld restarted
      2017-07-12 16:02:49 140496719788000 [Note] /usr/sbin/mysqld (mysqld 10.2.6-MariaDB) starting as process 17534 ...
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sanja Oleksandr Byelkin
              Reporter:
              ben Ben Stillman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: