Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.1.24
-
None
-
CentOS 7.3.
Description
we recently upgraded a host from 5.5.50 to 10.1.24; and now get the following error when a certain stored procedure is executed. It does not happen every time and immediately after restart - the stored procedure call finishes without issue. I dropped and recreated all the stored procedures on the host in case it was some sort of corruption, but after a couple days - the server crashed again reporting the following in the error log:
180628 7:01:35 [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.24-MariaDB
|
key_buffer_size=5368709120
|
read_buffer_size=270336
|
max_used_connections=251
|
max_threads=1252
|
thread_count=236
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 8163227 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
|
Thread pointer: 0x7f270138f008
|
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 = 0x7f23da2410b0 thread_stack 0x48400
|
/usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x7f2c6dacc33e]
|
/usr/sbin/mysqld(handle_fatal_signal+0x305)[0x7f2c6d5f20a5]
|
/lib64/libpthread.so.0(+0xf370)[0x7f2c6cc0a370]
|
/usr/sbin/mysqld(_ZN4JOIN4execEv+0x11)[0x7f2c6d4c86e1]
|
/usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x112)[0x7f2c6d4c4dc2]
|
mysys/stacktrace.c:268(my_print_stacktrace)[0x7f2c6d44a0bb]
|
sql/sql_analyze_stmt.h:97(Time_and_counter_tracker::incr_loops())[0x7f2c6d44b3d4]
|
sql/sql_derived.cc:942(mysql_derived_fill(THD*, LEX*, TABLE_LIST*))[0x7f2c6d4a53df]
|
sql/sql_select.cc:21464(create_sort_index(THD*, JOIN*, st_order*, unsigned long long, unsigned long long, bool))[0x7f2c6d4be698]
|
sql/sql_select.cc:3186(JOIN::exec_inner())[0x7f2c6d4c6637]
|
sql/sql_select.cc:2512(JOIN::exec())[0x7f2c6d4c8724]
|
sql/sql_select.cc:3447(mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x7f2c6d4c4dc2]
|
sql/sql_select.cc:384(handle_select(THD*, LEX*, select_result*, unsigned long))[0x7f2c6d4c58a5]
|
sql/sql_parse.cc:5923(execute_sqlcom_select(THD*, TABLE_LIST*))[0x7f2c6d464971]
|
sql/sql_parse.cc:2979(mysql_execute_command(THD*))[0x7f2c6d470fbb]
|
sql/sp_head.cc:3213(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x7f2c6d700d86]
|
sql/sp_head.cc:2978(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x7f2c6d707853]
|
sql/sp_head.cc:3129(sp_instr_stmt::execute(THD*, unsigned int*))[0x7f2c6d707e05]
|
sql/sp_head.cc:1318(sp_head::execute(THD*, bool))[0x7f2c6d703d46]
|
sql/sp_head.cc:2103(sp_head::execute_procedure(THD*, List<Item>*))[0x7f2c6d705397]
|
sql/sql_parse.cc:2415(mysql_execute_command(THD*))[0x7f2c6d4714c8]
|
sql/sql_parse.cc:7340(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x7f2c6d474592]
|
sql/sql_parse.cc:1490(dispatch_command(enum_server_command, THD*, char*, unsigned int))[0x7f2c6d477a6a]
|
sql/sql_parse.cc:1111(do_command(THD*))[0x7f2c6d4782ca]
|
sql/sql_connect.cc:1349(do_handle_one_connection(THD*))[0x7f2c6d54039a]
|
sql/sql_connect.cc:1263(handle_one_connection)[0x7f2c6d540540]
|
/lib64/libpthread.so.0(+0x7dc5)[0x7f2c6cc02dc5]
|
/lib64/libc.so.6(clone+0x6d)[0x7f2c6b02176d]
|
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x7f2402f8b3c8): is an invalid pointer
|
Connection ID (thread ID): 19291
|
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 *
|
from
|
((select
|
r.trade_date, r.user_id, r.context,
|
cast(@runningNet := @runningNet + r.net_pnl as decimal(12,2)) as running_net, r.net_pnl,
|
cast(@runningGross := @runningGross + r.gross_pnl as decimal(12,2)) as running_gross, r.gross_pnl,
|
cast(@runningCosts := @runningCosts + r.costs as decimal(12,2)) as running_costs, r.costs,
|
cast(r.round_turns as signed) as round_turns,
|
cast((@runningGross - @runningCosts) / (@count := @count + 1) as decimal(12,2)) as avg_net,
|
cast(@runningCosts * 100 / @runningGross as decimal(6,2)) as cost_ratio
|
from
|
((select
|
trade_date, user_id, context,
|
sum(net_pnl) as net_pnl,
|
sum(gross_pnl) as gross_pnl,
|
sum(costs) as costs,
|
((sum(buys) + sum(sells)) / 2) as round_turns
|
from daily where context = NAME_CONST('ctxt',_latin1'Tahoe' COLLATE 'latin1_swedish_ci') group by trade_date order by trade_date asc) as r)) as a) order by trade_date desc
|
|
180628 07:01:36 mysqld_safe Number of processes running now: 0
|
180628 07:01:36 mysqld_safe mysqld restarted
|
Attachments
Issue Links
- relates to
-
MDEV-13936 Server crashes in Time_and_counter_tracker::incr_loops
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
we recently upgraded a host from 5.5.50 to 10.1.24; and now get the following error when he runs a certain stored procedure. It does not happen everytime and immediately after restart - the stored procedure call finishes without issue. I dropped and recreated all the stored procedures on the host in case it was some sort of corruption, but after a couple days - the server crashed again reporting the following in the error log:
180628 7:01:35 [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.24-MariaDB key_buffer_size=5368709120 read_buffer_size=270336 max_used_connections=251 max_threads=1252 thread_count=236 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 8163227 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7f270138f008 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 = 0x7f23da2410b0 thread_stack 0x48400 /usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x7f2c6dacc33e] /usr/sbin/mysqld(handle_fatal_signal+0x305)[0x7f2c6d5f20a5] /lib64/libpthread.so.0(+0xf370)[0x7f2c6cc0a370] /usr/sbin/mysqld(_ZN4JOIN4execEv+0x11)[0x7f2c6d4c86e1] /usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x112)[0x7f2c6d4c4dc2] mysys/stacktrace.c:268(my_print_stacktrace)[0x7f2c6d44a0bb] sql/sql_analyze_stmt.h:97(Time_and_counter_tracker::incr_loops())[0x7f2c6d44b3d4] sql/sql_derived.cc:942(mysql_derived_fill(THD*, LEX*, TABLE_LIST*))[0x7f2c6d4a53df] sql/sql_select.cc:21464(create_sort_index(THD*, JOIN*, st_order*, unsigned long long, unsigned long long, bool))[0x7f2c6d4be698] sql/sql_select.cc:3186(JOIN::exec_inner())[0x7f2c6d4c6637] sql/sql_select.cc:2512(JOIN::exec())[0x7f2c6d4c8724] sql/sql_select.cc:3447(mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x7f2c6d4c4dc2] sql/sql_select.cc:384(handle_select(THD*, LEX*, select_result*, unsigned long))[0x7f2c6d4c58a5] sql/sql_parse.cc:5923(execute_sqlcom_select(THD*, TABLE_LIST*))[0x7f2c6d464971] sql/sql_parse.cc:2979(mysql_execute_command(THD*))[0x7f2c6d470fbb] sql/sp_head.cc:3213(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x7f2c6d700d86] sql/sp_head.cc:2978(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x7f2c6d707853] sql/sp_head.cc:3129(sp_instr_stmt::execute(THD*, unsigned int*))[0x7f2c6d707e05] sql/sp_head.cc:1318(sp_head::execute(THD*, bool))[0x7f2c6d703d46] sql/sp_head.cc:2103(sp_head::execute_procedure(THD*, List<Item>*))[0x7f2c6d705397] sql/sql_parse.cc:2415(mysql_execute_command(THD*))[0x7f2c6d4714c8] sql/sql_parse.cc:7340(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x7f2c6d474592] sql/sql_parse.cc:1490(dispatch_command(enum_server_command, THD*, char*, unsigned int))[0x7f2c6d477a6a] sql/sql_parse.cc:1111(do_command(THD*))[0x7f2c6d4782ca] sql/sql_connect.cc:1349(do_handle_one_connection(THD*))[0x7f2c6d54039a] sql/sql_connect.cc:1263(handle_one_connection)[0x7f2c6d540540] /lib64/libpthread.so.0(+0x7dc5)[0x7f2c6cc02dc5] /lib64/libc.so.6(clone+0x6d)[0x7f2c6b02176d] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7f2402f8b3c8): is an invalid pointer Connection ID (thread ID): 19291 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 * from ((select r.trade_date, r.user_id, r.context, cast(@runningNet := @runningNet + r.net_pnl as decimal(12,2)) as running_net, r.net_pnl, cast(@runningGross := @runningGross + r.gross_pnl as decimal(12,2)) as running_gross, r.gross_pnl, cast(@runningCosts := @runningCosts + r.costs as decimal(12,2)) as running_costs, r.costs, cast(r.round_turns as signed) as round_turns, cast((@runningGross - @runningCosts) / (@count := @count + 1) as decimal(12,2)) as avg_net, cast(@runningCosts * 100 / @runningGross as decimal(6,2)) as cost_ratio from ((select trade_date, user_id, context, sum(net_pnl) as net_pnl, sum(gross_pnl) as gross_pnl, sum(costs) as costs, ((sum(buys) + sum(sells)) / 2) as round_turns from daily where context = NAME_CONST('ctxt',_latin1'Tahoe' COLLATE 'latin1_swedish_ci') group by trade_date order by trade_date asc) as r)) as a) order by trade_date desc 180628 07:01:36 mysqld_safe Number of processes running now: 0 180628 07:01:36 mysqld_safe mysqld restarted |
we recently upgraded a host from 5.5.50 to 10.1.24; and now get the following error when a certain stored procedure is executed. It does not happen every time and immediately after restart - the stored procedure call finishes without issue. I dropped and recreated all the stored procedures on the host in case it was some sort of corruption, but after a couple days - the server crashed again reporting the following in the error log:
180628 7:01:35 [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.24-MariaDB key_buffer_size=5368709120 read_buffer_size=270336 max_used_connections=251 max_threads=1252 thread_count=236 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 8163227 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7f270138f008 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 = 0x7f23da2410b0 thread_stack 0x48400 /usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x7f2c6dacc33e] /usr/sbin/mysqld(handle_fatal_signal+0x305)[0x7f2c6d5f20a5] /lib64/libpthread.so.0(+0xf370)[0x7f2c6cc0a370] /usr/sbin/mysqld(_ZN4JOIN4execEv+0x11)[0x7f2c6d4c86e1] /usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x112)[0x7f2c6d4c4dc2] mysys/stacktrace.c:268(my_print_stacktrace)[0x7f2c6d44a0bb] sql/sql_analyze_stmt.h:97(Time_and_counter_tracker::incr_loops())[0x7f2c6d44b3d4] sql/sql_derived.cc:942(mysql_derived_fill(THD*, LEX*, TABLE_LIST*))[0x7f2c6d4a53df] sql/sql_select.cc:21464(create_sort_index(THD*, JOIN*, st_order*, unsigned long long, unsigned long long, bool))[0x7f2c6d4be698] sql/sql_select.cc:3186(JOIN::exec_inner())[0x7f2c6d4c6637] sql/sql_select.cc:2512(JOIN::exec())[0x7f2c6d4c8724] sql/sql_select.cc:3447(mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x7f2c6d4c4dc2] sql/sql_select.cc:384(handle_select(THD*, LEX*, select_result*, unsigned long))[0x7f2c6d4c58a5] sql/sql_parse.cc:5923(execute_sqlcom_select(THD*, TABLE_LIST*))[0x7f2c6d464971] sql/sql_parse.cc:2979(mysql_execute_command(THD*))[0x7f2c6d470fbb] sql/sp_head.cc:3213(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x7f2c6d700d86] sql/sp_head.cc:2978(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x7f2c6d707853] sql/sp_head.cc:3129(sp_instr_stmt::execute(THD*, unsigned int*))[0x7f2c6d707e05] sql/sp_head.cc:1318(sp_head::execute(THD*, bool))[0x7f2c6d703d46] sql/sp_head.cc:2103(sp_head::execute_procedure(THD*, List<Item>*))[0x7f2c6d705397] sql/sql_parse.cc:2415(mysql_execute_command(THD*))[0x7f2c6d4714c8] sql/sql_parse.cc:7340(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x7f2c6d474592] sql/sql_parse.cc:1490(dispatch_command(enum_server_command, THD*, char*, unsigned int))[0x7f2c6d477a6a] sql/sql_parse.cc:1111(do_command(THD*))[0x7f2c6d4782ca] sql/sql_connect.cc:1349(do_handle_one_connection(THD*))[0x7f2c6d54039a] sql/sql_connect.cc:1263(handle_one_connection)[0x7f2c6d540540] /lib64/libpthread.so.0(+0x7dc5)[0x7f2c6cc02dc5] /lib64/libc.so.6(clone+0x6d)[0x7f2c6b02176d] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7f2402f8b3c8): is an invalid pointer Connection ID (thread ID): 19291 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 * from ((select r.trade_date, r.user_id, r.context, cast(@runningNet := @runningNet + r.net_pnl as decimal(12,2)) as running_net, r.net_pnl, cast(@runningGross := @runningGross + r.gross_pnl as decimal(12,2)) as running_gross, r.gross_pnl, cast(@runningCosts := @runningCosts + r.costs as decimal(12,2)) as running_costs, r.costs, cast(r.round_turns as signed) as round_turns, cast((@runningGross - @runningCosts) / (@count := @count + 1) as decimal(12,2)) as avg_net, cast(@runningCosts * 100 / @runningGross as decimal(6,2)) as cost_ratio from ((select trade_date, user_id, context, sum(net_pnl) as net_pnl, sum(gross_pnl) as gross_pnl, sum(costs) as costs, ((sum(buys) + sum(sells)) / 2) as round_turns from daily where context = NAME_CONST('ctxt',_latin1'Tahoe' COLLATE 'latin1_swedish_ci') group by trade_date order by trade_date asc) as r)) as a) order by trade_date desc 180628 07:01:36 mysqld_safe Number of processes running now: 0 180628 07:01:36 mysqld_safe mysqld restarted |
Labels | need_feedback |
Labels | need_feedback |
Labels | need_feedback |
Description |
we recently upgraded a host from 5.5.50 to 10.1.24; and now get the following error when a certain stored procedure is executed. It does not happen every time and immediately after restart - the stored procedure call finishes without issue. I dropped and recreated all the stored procedures on the host in case it was some sort of corruption, but after a couple days - the server crashed again reporting the following in the error log:
180628 7:01:35 [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.24-MariaDB key_buffer_size=5368709120 read_buffer_size=270336 max_used_connections=251 max_threads=1252 thread_count=236 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 8163227 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7f270138f008 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 = 0x7f23da2410b0 thread_stack 0x48400 /usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x7f2c6dacc33e] /usr/sbin/mysqld(handle_fatal_signal+0x305)[0x7f2c6d5f20a5] /lib64/libpthread.so.0(+0xf370)[0x7f2c6cc0a370] /usr/sbin/mysqld(_ZN4JOIN4execEv+0x11)[0x7f2c6d4c86e1] /usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x112)[0x7f2c6d4c4dc2] mysys/stacktrace.c:268(my_print_stacktrace)[0x7f2c6d44a0bb] sql/sql_analyze_stmt.h:97(Time_and_counter_tracker::incr_loops())[0x7f2c6d44b3d4] sql/sql_derived.cc:942(mysql_derived_fill(THD*, LEX*, TABLE_LIST*))[0x7f2c6d4a53df] sql/sql_select.cc:21464(create_sort_index(THD*, JOIN*, st_order*, unsigned long long, unsigned long long, bool))[0x7f2c6d4be698] sql/sql_select.cc:3186(JOIN::exec_inner())[0x7f2c6d4c6637] sql/sql_select.cc:2512(JOIN::exec())[0x7f2c6d4c8724] sql/sql_select.cc:3447(mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x7f2c6d4c4dc2] sql/sql_select.cc:384(handle_select(THD*, LEX*, select_result*, unsigned long))[0x7f2c6d4c58a5] sql/sql_parse.cc:5923(execute_sqlcom_select(THD*, TABLE_LIST*))[0x7f2c6d464971] sql/sql_parse.cc:2979(mysql_execute_command(THD*))[0x7f2c6d470fbb] sql/sp_head.cc:3213(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x7f2c6d700d86] sql/sp_head.cc:2978(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x7f2c6d707853] sql/sp_head.cc:3129(sp_instr_stmt::execute(THD*, unsigned int*))[0x7f2c6d707e05] sql/sp_head.cc:1318(sp_head::execute(THD*, bool))[0x7f2c6d703d46] sql/sp_head.cc:2103(sp_head::execute_procedure(THD*, List<Item>*))[0x7f2c6d705397] sql/sql_parse.cc:2415(mysql_execute_command(THD*))[0x7f2c6d4714c8] sql/sql_parse.cc:7340(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x7f2c6d474592] sql/sql_parse.cc:1490(dispatch_command(enum_server_command, THD*, char*, unsigned int))[0x7f2c6d477a6a] sql/sql_parse.cc:1111(do_command(THD*))[0x7f2c6d4782ca] sql/sql_connect.cc:1349(do_handle_one_connection(THD*))[0x7f2c6d54039a] sql/sql_connect.cc:1263(handle_one_connection)[0x7f2c6d540540] /lib64/libpthread.so.0(+0x7dc5)[0x7f2c6cc02dc5] /lib64/libc.so.6(clone+0x6d)[0x7f2c6b02176d] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7f2402f8b3c8): is an invalid pointer Connection ID (thread ID): 19291 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 * from ((select r.trade_date, r.user_id, r.context, cast(@runningNet := @runningNet + r.net_pnl as decimal(12,2)) as running_net, r.net_pnl, cast(@runningGross := @runningGross + r.gross_pnl as decimal(12,2)) as running_gross, r.gross_pnl, cast(@runningCosts := @runningCosts + r.costs as decimal(12,2)) as running_costs, r.costs, cast(r.round_turns as signed) as round_turns, cast((@runningGross - @runningCosts) / (@count := @count + 1) as decimal(12,2)) as avg_net, cast(@runningCosts * 100 / @runningGross as decimal(6,2)) as cost_ratio from ((select trade_date, user_id, context, sum(net_pnl) as net_pnl, sum(gross_pnl) as gross_pnl, sum(costs) as costs, ((sum(buys) + sum(sells)) / 2) as round_turns from daily where context = NAME_CONST('ctxt',_latin1'Tahoe' COLLATE 'latin1_swedish_ci') group by trade_date order by trade_date asc) as r)) as a) order by trade_date desc 180628 07:01:36 mysqld_safe Number of processes running now: 0 180628 07:01:36 mysqld_safe mysqld restarted |
we recently upgraded a host from 5.5.50 to 10.1.24; and now get the following error when a certain stored procedure is executed. It does not happen every time and immediately after restart - the stored procedure call finishes without issue. I dropped and recreated all the stored procedures on the host in case it was some sort of corruption, but after a couple days - the server crashed again reporting the following in the error log:
{noformat} 180628 7:01:35 [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.24-MariaDB key_buffer_size=5368709120 read_buffer_size=270336 max_used_connections=251 max_threads=1252 thread_count=236 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 8163227 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7f270138f008 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 = 0x7f23da2410b0 thread_stack 0x48400 /usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x7f2c6dacc33e] /usr/sbin/mysqld(handle_fatal_signal+0x305)[0x7f2c6d5f20a5] /lib64/libpthread.so.0(+0xf370)[0x7f2c6cc0a370] /usr/sbin/mysqld(_ZN4JOIN4execEv+0x11)[0x7f2c6d4c86e1] /usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x112)[0x7f2c6d4c4dc2] mysys/stacktrace.c:268(my_print_stacktrace)[0x7f2c6d44a0bb] sql/sql_analyze_stmt.h:97(Time_and_counter_tracker::incr_loops())[0x7f2c6d44b3d4] sql/sql_derived.cc:942(mysql_derived_fill(THD*, LEX*, TABLE_LIST*))[0x7f2c6d4a53df] sql/sql_select.cc:21464(create_sort_index(THD*, JOIN*, st_order*, unsigned long long, unsigned long long, bool))[0x7f2c6d4be698] sql/sql_select.cc:3186(JOIN::exec_inner())[0x7f2c6d4c6637] sql/sql_select.cc:2512(JOIN::exec())[0x7f2c6d4c8724] sql/sql_select.cc:3447(mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x7f2c6d4c4dc2] sql/sql_select.cc:384(handle_select(THD*, LEX*, select_result*, unsigned long))[0x7f2c6d4c58a5] sql/sql_parse.cc:5923(execute_sqlcom_select(THD*, TABLE_LIST*))[0x7f2c6d464971] sql/sql_parse.cc:2979(mysql_execute_command(THD*))[0x7f2c6d470fbb] sql/sp_head.cc:3213(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x7f2c6d700d86] sql/sp_head.cc:2978(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x7f2c6d707853] sql/sp_head.cc:3129(sp_instr_stmt::execute(THD*, unsigned int*))[0x7f2c6d707e05] sql/sp_head.cc:1318(sp_head::execute(THD*, bool))[0x7f2c6d703d46] sql/sp_head.cc:2103(sp_head::execute_procedure(THD*, List<Item>*))[0x7f2c6d705397] sql/sql_parse.cc:2415(mysql_execute_command(THD*))[0x7f2c6d4714c8] sql/sql_parse.cc:7340(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x7f2c6d474592] sql/sql_parse.cc:1490(dispatch_command(enum_server_command, THD*, char*, unsigned int))[0x7f2c6d477a6a] sql/sql_parse.cc:1111(do_command(THD*))[0x7f2c6d4782ca] sql/sql_connect.cc:1349(do_handle_one_connection(THD*))[0x7f2c6d54039a] sql/sql_connect.cc:1263(handle_one_connection)[0x7f2c6d540540] /lib64/libpthread.so.0(+0x7dc5)[0x7f2c6cc02dc5] /lib64/libc.so.6(clone+0x6d)[0x7f2c6b02176d] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (0x7f2402f8b3c8): is an invalid pointer Connection ID (thread ID): 19291 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 * from ((select r.trade_date, r.user_id, r.context, cast(@runningNet := @runningNet + r.net_pnl as decimal(12,2)) as running_net, r.net_pnl, cast(@runningGross := @runningGross + r.gross_pnl as decimal(12,2)) as running_gross, r.gross_pnl, cast(@runningCosts := @runningCosts + r.costs as decimal(12,2)) as running_costs, r.costs, cast(r.round_turns as signed) as round_turns, cast((@runningGross - @runningCosts) / (@count := @count + 1) as decimal(12,2)) as avg_net, cast(@runningCosts * 100 / @runningGross as decimal(6,2)) as cost_ratio from ((select trade_date, user_id, context, sum(net_pnl) as net_pnl, sum(gross_pnl) as gross_pnl, sum(costs) as costs, ((sum(buys) + sum(sells)) / 2) as round_turns from daily where context = NAME_CONST('ctxt',_latin1'Tahoe' COLLATE 'latin1_swedish_ci') group by trade_date order by trade_date asc) as r)) as a) order by trade_date desc 180628 07:01:36 mysqld_safe Number of processes running now: 0 180628 07:01:36 mysqld_safe mysqld restarted {noformat} |
Labels | need_feedback |
Labels | need_feedback |
Labels | need_feedback |
Labels | need_feedback |
Labels | need_feedback |
Link |
This issue relates to |
Link |
This issue relates to |
Link |
This issue relates to |
Fix Version/s | 10.3.3 [ 22644 ] | |
Fix Version/s | 10.2.11 [ 22634 ] | |
Fix Version/s | 10.1.29 [ 22636 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 88121 ] | MariaDB v4 [ 154588 ] |
my.cnf for the host:
#
# This started with MariaDB example config file for systems with 4GB of memory
# running mostly MariaDB using InnoDB only tables and performing complex
# queries with few connections.
#
#
# The following options will be read by MariaDB client applications.
[client]
port = 3306
socket = /srv/db_trn/run/mysql.sock
[mysqld]
# generic configuration options
port = 3306
socket = /srv/db_trn/run/mysql.sock
pid-file = /srv/db_trn/run/ch4pxdbsilo04.pid
datadir = /srv/dbdata_fast/mysql
back_log = 50
max_connections = 1250
table_open_cache = 1000
table_definition_cache = 1000
skip-external-locking
max_allowed_packet = 16M
optimizer_switch = default
#thread_cache_size = 16
#thread_concurrency = 8
query_cache_type = 0
query_cache_size = 0
query_cache_limit = 16M
default_storage_engine = InnoDB
#general_log = 1
#general_log_file = /srv/db_trn/log/mysql/ch4pxdbsilo04-general.log
userstat = 1
plugin-load = auth_pam.so
wait_timeout = 86400
innodb_strict_mode = 0
sql_mode = ''
# charset variables
init-connect='SET NAMES latin1'
character_set_client = latin1
character_set_server = latin1
skip-character-set-client-handshake
# logging variables
slow_query_log = 1
long_query_time = 10
slow_query_log_file = /srv/db_trn/log/mysql/ch4pxdbsilo04-slow.log
log-warnings = 2
log_error = /srv/db_trn/log/mysql/ch4pxdbsilo04-error.log
sql-error-log-filename = /srv/db_trn/log/mysql/ch4pxdbsilo04_sql_errors.log
# binlog specific settings
binlog_cache_size = 1M
log_bin = 1
log-bin = /srv/db_trn/log/binlog/ch4pxdbsilo04-bin
binlog_format = mixed
expire_logs_days = 7
max_binlog_size = 1000M
# session variables
read_buffer_size = 265k
#sort_buffer_size = 4M
read_rnd_buffer_size = 8M
#join_buffer_size = 4M
# tmp variables
tmp_table_size = 250M
tmpdir = /srv/dbtmp
# Replication related settings
server-id = 4
#master-host = master
#master-user = replication
#master-password = Gelber@Repl!master
#master-port = 3306
read_only
log_slave_updates = 1
slave-load-tmpdir = /srv/dbtmp
#skip-slave-start
log-slow-slave-statements
# MyISAM Specific options
key_buffer_size = 5G
max_heap_table_size = 1G
bulk_insert_buffer_size = 32M
myisam_sort_buffer_size = 64M
myisam_max_sort_file_size = 25G
myisam_repair_threads = 4
myisam_recover_option = backup
# INNODB Specific options
innodb_file_per_table = on
innodb_additional_mem_pool_size = 8M
innodb_buffer_pool_size = 25G
innodb_data_file_path = ibdata1:10M:autoextend
innodb_data_home_dir = /srv/dbdata_fast/mysql
#innodb_thread_concurrency = 8
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size = 8M
innodb_log_file_size = 256M
innodb_log_group_home_dir = /srv/db_trn/log/mysql
innodb_read_io_threads = 64
innodb_write_io_threads = 64
innodb_max_dirty_pages_pct = 80
innodb_flush_method=O_DIRECT
innodb_stats_on_metadata = 0
innodb_print_all_deadlocks = 1
innodb_file_format = barracuda
innodb_print_all_deadlocks = 1
innodb_open_files = 1000
[mysqldump]
quick
max_allowed_packet = 64M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 512M
sort_buffer_size = 512M
read_buffer = 8M
write_buffer = 8M
[mysqlhotcopy]
interactive-timeout
[safe_mysqld]
log_error = /srv/db_trn/log/mysql/ch4pxdbsilo04-error.log
socket = /srv/db_trn/run/mysql.sock
pid-file = /srv/db_trn/run/chi0dbcore01.pid
numa-interleave