[MDEV-15757] MariaDB frequent crash on Signal 11 Created: 2018-04-03  Updated: 2018-05-16  Resolved: 2018-05-16

Status: Closed
Project: MariaDB Server
Component/s: Optimizer, Optimizer - Window functions, Server
Affects Version/s: 10.2.10
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Sukan Assignee: Alice Sherepa
Resolution: Incomplete Votes: 0
Labels: crash, mariadb-restart, need_feedback
Environment:

CentOS Linux release 7.4.1708 (Core)


Attachments: Text File gbd.txt    
Issue Links:
Relates
relates to MDEV-15178 Filesort::make_sortorder: Assertion `... Closed
relates to MDEV-15208 server crashed, when using ORDER BY w... Closed

 Description   

MariaDB is often crashing with signal 11, the following are the error messages

Attached log from core dump,

180328 17:30:55 [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.10-MariaDB-log
key_buffer_size=536870912
read_buffer_size=4194304
max_used_connections=46
max_threads=1002
thread_count=57
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 8753880 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
 
Thread pointer: 0x7ee6680009a8
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 = 0x7ee82e03fe98 thread_stack 0x80000
/usr/local/marianormal/bin/mysqld(my_print_stacktrace+0x2e)[0xde479e]
/usr/local/marianormal/bin/mysqld(handle_fatal_signal+0x444)[0x7dd3d4]
/lib64/libpthread.so.0(+0xf5e0)[0x7f0338b9a5e0]
/usr/local/marianormal/bin/mysqld(_Z8filesortP3THDP5TABLEP8FilesortP16Filesort_trackerP4JOINy+0x29b)[0x7db79b]
/usr/local/marianormal/bin/mysqld(_Z17create_sort_indexP3THDP4JOINP13st_join_tableP8Filesort+0x17f)[0x62014f]
/usr/local/marianormal/bin/mysqld(_ZN24Window_funcs_computation4execEP4JOIN+0x63)[0x749fa3]
/usr/local/marianormal/bin/mysqld(_ZN7AGGR_OP8end_sendEv+0x34e)[0x63669e]
/usr/local/marianormal/bin/mysqld(_Z24sub_select_postjoin_aggrP4JOINP13st_join_tableb+0x7f)[0x63678f]
/usr/local/marianormal/bin/mysqld(_ZN4JOIN10exec_innerEv+0xc72)[0x64eb12]
/usr/local/marianormal/bin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x1fc)[0x64d3ac]
/usr/local/marianormal/bin/mysqld(_Z18mysql_derived_fillP3THDP3LEXP10TABLE_LIST+0x138)[0x5c29f8]
/usr/local/marianormal/bin/mysqld(_Z27mysql_handle_single_derivedP3LEXP10TABLE_LISTj+0x9d)[0x5c355d]
/usr/local/marianormal/bin/mysqld(_ZN13st_join_table12preread_initEv+0x78)[0x618b28]
/usr/local/marianormal/bin/mysqld(_Z10sub_selectP4JOINP13st_join_tableb+0x279)[0x631439]
/usr/local/marianormal/bin/mysqld(_ZN4JOIN10exec_innerEv+0xd0f)[0x64ebaf]
/usr/local/marianormal/bin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x1fc)[0x64d3ac]
/usr/local/marianormal/bin/mysqld(_Z18mysql_multi_updateP3THDP10TABLE_LISTP4ListI4ItemES6_PS4_y15enum_duplicatesbP18st_select_lex_unitP13st_select_lexPP12multi_update+0x18e)[0x698e1e]
/usr/local/marianormal/bin/mysqld(_Z21mysql_execute_commandP3THD+0x7878)[0x5f08b8]
/usr/local/marianormal/bin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x3a2)[0x5f3eb2]
/usr/local/marianormal/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x26ef)[0x5f6dcf]
/usr/local/marianormal/bin/mysqld(_Z10do_commandP3THD+0x15d)[0x5f771d]
/usr/local/marianormal/bin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x235)[0x6dc185]
/usr/local/marianormal/bin/mysqld(handle_one_connection+0x3f)[0x6dc34f]
/usr/local/marianormal/bin/mysqld[0xa03bf9]
/lib64/libpthread.so.0(+0x7e25)[0x7f0338b92e25]
/lib64/libc.so.6(clone+0x6d)[0x7f0337a7134d]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7ee66800f780): <hidden>
Connection ID (thread ID): 21017
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



 Comments   
Comment by Alice Sherepa [ 2018-04-03 ]

Hi Sukan, please add information about what query is crashing and structures of tables, that are involved. (it is also possible to upload them to ftp://ftp.askmonty.org/private/)

Comment by Sergei Golubchik [ 2018-05-16 ]

No feedback, so closing

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