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

Crash on Filesort

    XMLWordPrintable

Details

    Description

      Occasional crash on filesort. Memory seems OK, however, this is happening on occasion - not all the time. Any help is appreciated to point to the cause.

      Version: '10.2.24-MariaDB-log' socket: '/mnt/volume-01-part1/mysql/mysql.sock' port: 3306 MariaDB Server
      2019-06-27 12:52:23 139999433680640 [ERROR] InnoDB: Table `mysql`.`innodb_table_stats` not found.
      190627 12:53:18 [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.24-MariaDB-log
      key_buffer_size=10485760
      read_buffer_size=2097152
      max_used_connections=9
      max_threads=102
      thread_count=16
      It is possible that mysqld could use up to
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 430185 K bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.

      Thread pointer: 0x7f53b80009a8
      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 = 0x7f54287d1d30 thread_stack 0x30000
      /usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x56288037858e]
      /usr/sbin/mysqld(handle_fatal_signal+0x30d)[0x56287fe0421d]
      sigaction.c:0(__restore_rt)[0x7f576a7ca5d0]
      /usr/sbin/mysqld(_Z8filesortP3THDP5TABLEP8FilesortP16Filesort_trackerP4JOINy+0x2b4)[0x56287fe02684]
      /usr/sbin/mysqld(_Z17create_sort_indexP3THDP4JOINP13st_join_tableP8Filesort+0xd7)[0x56287fcb1b57]
      /usr/sbin/mysqld(_ZN17Window_funcs_sort4execEP4JOINb+0x4a)[0x56287fd8ee2a]
      /usr/sbin/mysqld(_ZN24Window_funcs_computation4execEP4JOINb+0x2a)[0x56287fd8f53a]
      /usr/sbin/mysqld(_ZN7AGGR_OP8end_sendEv+0xe7)[0x56287fcc20d7]
      /usr/sbin/mysqld(_Z24sub_select_postjoin_aggrP4JOINP13st_join_tableb+0x31)[0x56287fcc22a1]
      /usr/sbin/mysqld(_ZN4JOIN10exec_innerEv+0x903)[0x56287fcc2bf3]
      /usr/sbin/mysqld(_ZN4JOIN4execEv+0x33)[0x56287fcc2f43]
      /usr/sbin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x11a)[0x56287fcc309a]
      /usr/sbin/mysqld(_Z18mysql_derived_fillP3THDP3LEXP10TABLE_LIST+0x152)[0x56287fc4ae62]
      /usr/sbin/mysqld(_Z27mysql_handle_single_derivedP3LEXP10TABLE_LISTj+0xe4)[0x56287fc4abd4]
      /usr/sbin/mysqld(_ZN13st_join_table12preread_initEv+0xdf)[0x56287fca2fbf]
      /usr/sbin/mysqld(_Z10sub_selectP4JOINP13st_join_tableb+0x2f8)[0x56287fca32c8]
      /usr/sbin/mysqld(_ZN4JOIN10exec_innerEv+0xa3f)[0x56287fcc2d2f]
      /usr/sbin/mysqld(_ZN4JOIN4execEv+0x33)[0x56287fcc2f43]
      /usr/sbin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x11a)[0x56287fcc309a]
      /usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x254)[0x56287fcc3bf4]
      /usr/sbin/mysqld(+0x41c4ef)[0x56287fba74ef]
      /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x334d)[0x56287fc6e99d]
      /usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x2de)[0x56287fc748ee]
      /usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x21f5)[0x56287fc77ac5]
      /usr/sbin/mysqld(_Z10do_commandP3THD+0x165)[0x56287fc786e5]
      /usr/sbin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x1aa)[0x56287fd41e3a]
      /usr/sbin/mysqld(handle_one_connection+0x3d)[0x56287fd41f5d]
      pthread_create.c:0(start_thread)[0x7f576a7c2dd5]
      /lib64/libc.so.6(clone+0x6d)[0x7f5768b64ead]

      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7f53b800f130): SELECT FORMAT(tmp.rank, 0) AS rank, tmp.arco_number, FORMAT(MAX(tmp2.rank), 0) AS total, COUNT(tmp2.rank) AS num, locations FROM ( SELECT DENSE_RANK() OVER (ORDER BY SUM(sd.regular_store_sale) DESC) AS rank, sd.arco_number, COUNT(DISTINCT(sd.location_number)) AS locations FROM ccr_arco_storagedata sd WHERE sd.storage_code IN(9925010) AND sd.start_date >= '2018-08-05' AND sd.end_date <= '2018-09-01' AND sd.regular_store_sale > 0 AND sd.location_number IN (SELECT location_number FROM ccr_arco_stores WHERE district_id < 60) GROUP BY sd.arco_number ) AS tmp, ( SELECT DENSE_RANK() OVER (ORDER BY SUM(sd.regular_store_sale) DESC) AS rank, sd.arco_number FROM ccr_arco_storagedata sd WHERE sd.storage_code IN(9925010) AND sd.start_date >= '2018-08-05' AND sd.end_date <= '2018-09-01' AND sd.regular_store_sale > 0 GROUP BY sd.arco_number ) AS tmp2 WHERE tmp.arco_number = '9885674' LIMIT 1
      Connection ID (thread ID): 31
      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.
      Writing a core file...
      Working directory at /mnt/volume-01-part1/mysql
      Resource Limits:
      Limit Soft Limit Hard Limit Units
      Max cpu time unlimited unlimited seconds
      Max file size unlimited unlimited bytes
      Max data size unlimited unlimited bytes
      Max stack size 8388608 unlimited bytes
      Max core file size 0 unlimited bytes
      Max resident set unlimited unlimited bytes
      Max processes 63458 63458 processes
      Max open files 16364 16364 files
      Max locked memory 65536 65536 bytes
      Max address space unlimited unlimited bytes
      Max file locks unlimited unlimited locks
      Max pending signals 63458 63458 signals
      Max msgqueue size 819200 819200 bytes
      Max nice priority 0 0
      Max realtime priority 0 0
      Max realtime timeout unlimited unlimited us
      Core pattern: core

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Helmans Will
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.