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

select on federated table crashes server

    XMLWordPrintable

Details

    Description

      The following error occurred:

      This has happened since the upgrade from 10.1.22 to 10.1.23,
      It has happened now 6 times
      Each time on a query that selects from a federated table and a non federated table.

      We have been running this query for more than a year, without any problems. It started happening straight after the upgrade.

      It does not happen all the time. I would say about once in each ten runs of such a query.

      170508  7:08:47 [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.1.23-MariaDB
      key_buffer_size=268435456
      read_buffer_size=1048576
      max_used_connections=7
      max_threads=2002
      thread_count=5
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 4403338 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7f6f3a61f008
      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 = 0x7f6ef3a71140 thread_stack 0x48400
      /usr/sbin/mysqld(my_print_stacktrace+0x2b)[0x7fb113b96c8b]
      /usr/sbin/mysqld(handle_fatal_signal+0x4d5)[0x7fb1136f1bf5]
      /lib64/libpthread.so.0(+0xf7e0)[0x7fb112cf17e0]
      /usr/sbin/mysqld(_ZN17Query_cache_block11headers_lenEv+0x0)[0x7fb113544ff0]
      /usr/sbin/mysqld(_ZN17Query_cache_block4dataEv+0x11)[0x7fb113545011]
      /usr/sbin/mysqld(_ZN11Query_cache6insertEP3THDP15Query_cache_tlsPKcmj+0x63)[0x7fb1135488b3]
      /usr/sbin/mysqld(net_real_write+0x41)[0x7fb1134f5801]
      /usr/sbin/mysqld(net_flush+0x23)[0x7fb1134f5dc3]
      /usr/sbin/mysqld(net_write_command+0x18a)[0x7fb1134f5f7a]
      /usr/sbin/mysqld(cli_advanced_command+0xf7)[0x7fb1136d20c7]
      /usr/sbin/mysqld(mysql_send_query+0x31)[0x7fb1136cf7a1]
      /usr/sbin/mysqld(mysql_real_query+0x11)[0x7fb1136cf7c1]
      /usr/lib64/mysql/plugin/ha_federatedx.so(_ZN19federatedx_io_mysql12actual_queryEPKcj+0x3a)[0x7fb0f70f501a]
      /usr/lib64/mysql/plugin/ha_federatedx.so(_ZN19federatedx_io_mysql5queryEPKcj+0x88)[0x7fb0f70f5168]
      mysys/stacktrace.c:268(my_print_stacktrace)[0x7fb0f70f497f]
      sql/signal_handler.cc:168(handle_fatal_signal)[0x7fb0f70f08f4]
      sql/net_serv.cc:609(net_real_write)[0x7fb1135cc436]
      /usr/sbin/mysqld(_ZN4JOIN14optimize_innerEv+0x74e)[0x7fb1135ce7fe]
      /usr/sbin/mysqld(_ZN4JOIN8optimizeEv+0x37)[0x7fb1135d1047]
      /usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x9d)[0x7fb1135d119d]
      sql/sql_select.cc:3580(make_join_statistics)[0x7fb1135d4b4d]
      sql/sql_select.cc:1366(JOIN::optimize_inner())[0x7fb113574de2]
      /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x5b3a)[0x7fb1135810da]
      sql/sql_parse.cc:5921(execute_sqlcom_select)[0x7fb1135843c4]
      sql/sql_parse.cc:1490(dispatch_command(enum_server_command, THD*, char*, unsigned int))[0x7fb113586e43]
      sql/sql_parse.cc:1111(do_command(THD*))[0x7fb1135873c1]
      sql/sql_connect.cc:1349(do_handle_one_connection(THD*))[0x7fb1136462cf]
      sql/sql_connect.cc:1263(handle_one_connection)[0x7fb113646407]
      /lib64/libpthread.so.0(+0x7aa1)[0x7fb112ce9aa1]
      /lib64/libc.so.6(clone+0x6d)[0x7fb1111cdbcd]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f6f44c20020): is an invalid pointer
      Connection ID (thread ID): 145
      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=off
       
      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.
       
      We think the query pointer is invalid, but we will try to print it anyway. 
      Query: select count(*) from director.task t where FALSE  or (t.PROCID=(select if(CALCPROCID is null,PROCID,CALCPROCID) from director.proc where PROCID=55) 
                                                                              and t.SUBJECTID='533ecae8ea68c' and t.SUBJECTTPID=13) or (t.PROCID=(select if(CALCPROCID is null,PROCID,CALCPROCID) from director.proc where PROCID=247) 
                                                                              and t.SUBJECTID='533ecae8ea68c' and t.SUBJECTTPID=13) or (t.PROCID=(select if(CALCPROCID is null,PROCID,CALCPROCID) from director.proc where PROCID=57) 
                                                                              and t.SUBJECTID='533ecae8ea68c' and t.SUBJECTTPID=13)
       
      170508 07:08:47 mysqld_safe Number of processes running now: 0
      170508 07:08:47 mysqld_safe mysqld restarted
      

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              Hrehora Rob
              Votes:
              3 Vote for this issue
              Watchers:
              7 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.