|
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.4.14-MariaDB
key_buffer_size=134217728
read_buffer_size=131072
max_used_connections=1
max_threads=153
thread_count=10
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467753 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7f8d780009a8
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 = 0x7f8de8266cf0 thread_stack 0x49000
/usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x55c57e4c729e]
/usr/sbin/mysqld(handle_fatal_signal+0x30f)[0x55c57df5cabf]
sigaction.c:0(__restore_rt)[0x7f8df0159630]
/usr/sbin/mysqld(_Z8filesortP3THDP5TABLEP8FilesortP16Filesort_trackerP4JOINy+0x2e4)[0x55c57df5b044]
/usr/sbin/mysqld(_Z17create_sort_indexP3THDP4JOINP13st_join_tableP8Filesort+0xd7)[0x55c57dd9b3a7]
/usr/sbin/mysqld(_ZN17Window_funcs_sort4execEP4JOINb+0x4a)[0x55c57deab6ba]
/usr/sbin/mysqld(_ZN24Window_funcs_computation4execEP4JOINb+0x2a)[0x55c57deab76a]
/usr/sbin/mysqld(_ZN7AGGR_OP8end_sendEv+0xec)[0x55c57dda882c]
/usr/sbin/mysqld(_Z24sub_select_postjoin_aggrP4JOINP13st_join_tableb+0x39)[0x55c57dda8ae9]
/usr/sbin/mysqld(_ZN4JOIN10exec_innerEv+0xb8e)[0x55c57ddb092e]
/usr/sbin/mysqld(_ZN4JOIN4execEv+0x33)[0x55c57ddb0c93]
/usr/sbin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x186)[0x55c57ddaee86]
/usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x1d7)[0x55c57ddaf9f7]
/usr/sbin/mysqld(+0x5aaebf)[0x55c57dc40ebf]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x3acc)[0x55c57dd504ac]
/usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x36d)[0x55c57dd55e1d]
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x21c1)[0x55c57dd587b1]
/usr/sbin/mysqld(_Z10do_commandP3THD+0x109)[0x55c57dd59cb9]
/usr/sbin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x1fa)[0x55c57de3ca0a]
/usr/sbin/mysqld(handle_one_connection+0x3d)[0x55c57de3caed]
pthread_create.c:0(start_thread)[0x7f8df0151ea5]
/lib64/libc.so.6(clone+0x6d)[0x7f8dee4f196d]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f8d78010780): select a.stat_date,a. ,b.collector_id id,a.aging ,count(distinct a.case_id) ,sum(a.debt_total) ,count(distinct case when datediff(b.repay_time,a.stat_date) between 0 and 30 then b.case_id else null end) ,sum(b.repay_sum) , row_number() over(partition by a.aging order by sum(b.repay_sum) desc) from ( select stat_date, b.name ,case_id, case when overdue_day <= 30 and overdue_day>=0 THEN 'M1' when overdue_day BETWEEN 31 AND 60 then 'M2' when overdue_day >=61 and overdue_day <=90 then 'M3' when overdue_day>=91 and overdue_day<=120 then 'M4' when overdue_day>=121 and overdue_day<=150 then 'M5' when overdue_day>=151 and overdue_day<=180 then 'M6' when overdue_day>=181 and overdue_day<=210 then 'M7' when overdue_day>=211 and overdue_day<=240 then 'M8' when overdue_day>=241 and overdue_day<=270 then 'M9' when overdue_day>=271 and overdue_day<=300 then 'M10' when overdue_day>=301 and overdue_day<=330 then 'M11' when overdue_day>=331 then 'M12+' end aging,debt_total from mid_client_case a inner join company_info b on a.client_company_id = b.id where client_company_id = 7487 and stat_date >='2020-10-08' and stat_date <='2020-10-12' group by 1,2,3,4,5 ) a left join ( ## select repay_time,collector_id,case_id,repay_sum from ods_case_repay_sum where client_company_id = 7487 and repay_time >= '2020-10-08' ## 30 and repay_time <= '2020-11-11' group by 1,2,3 ) b on a.case_id = b.case_id group by 1,2,3
Connection ID (thread ID): 13
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
The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains
information that should help you find out what is causing the crash.
Writing a core file...
Working directory at /var/lib/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 31193 31193 processes
Max open files 16384 16384 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 31193 31193 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
|