[MDEV-15499] Server Crash in "insert ... select ..." with function calls. Created: 2018-03-07  Updated: 2020-08-25  Resolved: 2018-04-06

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Affects Version/s: 10.3
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Richard Stracke Assignee: Unassigned
Resolution: Incomplete Votes: 1
Labels: need_feedback


 Description   

Build 18409

Crash happens on insert ... select with function calls.

180307  5:08:09 [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.13-MariaDB-log
key_buffer_size=67108864
read_buffer_size=131072
max_used_connections=385
max_threads=1002
thread_count=387
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 2267636 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
 
Thread pointer: 0x7f6f4c0008c8
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 = 0x7f72bc2d7d70 thread_stack 0x40000

(my_addr_resolve failure: fork)
/usr/sbin/mysqld(my_print_stacktrace+0x2e) [0x5616225e03fe]
/usr/sbin/mysqld(handle_fatal_signal+0x355) [0x561622075fb5]
/lib64/libpthread.so.0(+0xf5e0) [0x7f72d62095e0]
/usr/sbin/mysqld(Explain_query::add_node(Explain_node*)+0xa8) [0x561621fa5078]
/usr/sbin/mysqld(JOIN::save_explain_data_intern(Explain_query*, bool, bool, bool, char const*)+0xbbf) [0x561621f066ff]
/usr/sbin/mysqld(JOIN::build_explain()+0x70) [0x561621f06a40]
/usr/sbin/mysqld(JOIN::optimize()+0x58) [0x561621f0d338]
/usr/sbin/mysqld(mysql_derived_optimize(THD*, LEX*, TABLE_LIST*)+0xd7) [0x561621e8d5e7]
/usr/sbin/mysqld(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int)+0xe4) [0x561621e8cf44]
/usr/sbin/mysqld(st_select_lex::handle_derived(LEX*, unsigned int)+0x47) [0x561621ea2ee7]
/usr/sbin/mysqld(JOIN::optimize_inner()+0x575) [0x561621f0cdf5]
/usr/sbin/mysqld(JOIN::optimize()+0x36) [0x561621f0d316]
/usr/sbin/mysqld(mysql_select(THD*, 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*)+0x94) [0x561621f0e8c4]
/usr/sbin/mysqld(handle_select(THD*, LEX*, select_result*, unsigned long)+0x15e) [0x561621f0f3be]
/usr/sbin/mysqld(mysql_execute_command(THD*)+0x78a5) [0x561621ebefb5]
/usr/sbin/mysqld(sp_instr_stmt::exec_core(THD*, unsigned int*)+0x36) [0x561621e30a06]
/usr/sbin/mysqld(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*)+0x99) [0x561621e385c9]
/usr/sbin/mysqld(sp_instr_stmt::execute(THD*, unsigned int*)+0x205) [0x561621e38bc5]
/usr/sbin/mysqld(sp_head::execute(THD*, bool)+0x83e) [0x561621e3462e]
/usr/sbin/mysqld(sp_head::execute_procedure(THD*, List<Item>*)+0x73d) [0x561621e3575d]
/usr/sbin/mysqld(+0x55bbd9) [0x561621eb0bd9]
/usr/sbin/mysqld(+0x55d906) [0x561621eb2906]
/usr/sbin/mysqld(Sql_cmd_call::execute(THD*)+0x90) [0x561621eb3100]
/usr/sbin/mysqld(mysql_execute_command(THD*)+0x14fb) [0x561621eb8c0b]
/usr/sbin/mysqld(sp_instr_stmt::exec_core(THD*, unsigned int*)+0x36) [0x561621e30a06]
/usr/sbin/mysqld(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*)+0x99) [0x561621e385c9]
/usr/sbin/mysqld(sp_instr_stmt::execute(THD*, unsigned int*)+0x205) [0x561621e38bc5]
/usr/sbin/mysqld(sp_head::execute(THD*, bool)+0x83e) [0x561621e3462e]
/usr/sbin/mysqld(sp_head::execute_procedure(THD*, List<Item>*)+0x73d) [0x561621e3575d]
/usr/sbin/mysqld(+0x55bbd9) [0x561621eb0bd9]
/usr/sbin/mysqld(+0x55d906) [0x561621eb2906]
/usr/sbin/mysqld(Sql_cmd_call::execute(THD*)+0x90) [0x561621eb3100]
/usr/sbin/mysqld(mysql_execute_command(THD*)+0x14fb) [0x561621eb8c0b]
/usr/sbin/mysqld(Prepared_statement::execute(String*, bool)+0x4de) [0x561621ed31ee]
/usr/sbin/mysqld(+0x57e39f) [0x561621ed339f]
/usr/sbin/mysqld(+0x57f1ff) [0x561621ed41ff]
/usr/sbin/mysqld(mysqld_stmt_execute(THD*, char*, unsigned int)+0x27) [0x561621ed4287]
/usr/sbin/mysqld(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool)+0x14e8) [0x561621ec2f48]
/usr/sbin/mysqld(do_command(THD*)+0x149) [0x561621ec47a9]
/usr/sbin/mysqld(do_handle_one_connection(CONNECT*)+0x1aa) [0x561621f88eba]
/usr/sbin/mysqld(handle_one_connection+0x3d) [0x561621f88fdd]
/lib64/libpthread.so.0(+0x7e25) [0x7f72d6201e25]
/lib64/libc.so.6(clone+0x6d) [0x7f72d485434d]

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=on,mrr_cost_based=on,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_grouping_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.



 Comments   
Comment by Richard Stracke [ 2018-03-07 ]

Probably a duplicate from

MDEV-14857

Comment by Elena Stepanova [ 2018-03-07 ]

Yes, it's very likely to be a duplicate of MDEV-14857. Let's see if it goes away after upgrading to the fixed version.

Generated at Thu Feb 08 08:21:47 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.