Bug #89497 mysqld got signal 11 ( and restart )
Submitted: 1 Feb 2018 12:26 Modified: 6 Mar 2018 17:55
Reporter: Szabo Laszlo Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.7.18 OS:Red Hat (Red Hat Enterprise Linux Server release 6.9 64bit)
Assigned to: CPU Architecture:Any

[1 Feb 2018 12:26] Szabo Laszlo
Description:
11:29:08 UTC - 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.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=22
max_threads=200
thread_count=23
connection_count=22
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 87660 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7f0bec0121a0
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 = 7f0cd12b8e28 thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x35)[0xf468e5]
/usr/sbin/mysqld(handle_fatal_signal+0x4a4)[0x7cf254]
/lib64/libpthread.so.0[0x35e400f7e0]
/usr/sbin/mysqld(_ZN14Item_func_case7cleanupEv+0x5a)[0x84862a]
/usr/sbin/mysqld(_Z13cleanup_itemsP4Item+0x21)[0xd08161]
/usr/sbin/mysqld(_ZN5TABLE16cleanup_gc_itemsEv+0x34)[0xdba954]
/usr/sbin/mysqld(_Z19close_thread_tablesP3THD+0x5f)[0xcbaadf]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THDb+0x4e4)[0xd0cdf4]
/usr/sbin/mysqld(_ZN13sp_instr_stmt9exec_coreEP3THDPj+0xa1)[0xc918a1]
/usr/sbin/mysqld(_ZN12sp_lex_instr23reset_lex_and_exec_coreEP3THDPjb+0x3ec)[0xc91dbc]
/usr/sbin/mysqld(_ZN12sp_lex_instr29validate_lex_and_execute_coreEP3THDPjb+0xb4)[0xc941b4]
/usr/sbin/mysqld(_ZN13sp_instr_stmt7executeEP3THDPj+0x128)[0xc94538]
/usr/sbin/mysqld(_ZN7sp_head7executeEP3THDb+0x886)[0xc8ca96]
/usr/sbin/mysqld(_ZN7sp_head15execute_triggerEP3THDRK25st_mysql_const_lex_stringS4_P10GRANT_INFO+0x1cb)[0xc8e2ab]
/usr/sbin/mysqld(_ZN7Trigger7executeEP3THD+0x122)[0xdcbe62]
/usr/sbin/mysqld(_ZN13Trigger_chain16execute_triggersEP3THD+0x24)[0xdcee34]
/usr/sbin/mysqld(_ZN24Table_trigger_dispatcher16process_triggersEP3THD23enum_trigger_event_type29enum_trigger_action_time_typeb+0x52)[0xdc7bf2]
/usr/sbin/mysqld(_Z36fill_record_n_invoke_before_triggersP3THDR4ListI4ItemES4_P5TABLE23enum_trigger_event_typei+0x25a)[0xcaffba]
/usr/sbin/mysqld(_Z12mysql_updateP3THDR4ListI4ItemES4_y15enum_duplicatesPyS6_+0x17c3)[0xd983f3]
/usr/sbin/mysqld(_ZN14Sql_cmd_update23try_single_table_updateEP3THDPb+0x1b0)[0xd98cf0]
/usr/sbin/mysqld(_ZN14Sql_cmd_update7executeEP3THD+0x2c)[0xd98dec]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THDb+0xfd8)[0xd0d8e8]
/usr/sbin/mysqld(_Z11mysql_parseP3THDP12Parser_state+0x3ed)[0xd11e6d]
/usr/sbin/mysqld(_Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command+0x182c)[0xd136fc]
/usr/sbin/mysqld(_Z10do_commandP3THD+0x194)[0xd140c4]
/usr/sbin/mysqld(handle_connection+0x29c)[0xde74cc]
/usr/sbin/mysqld(pfs_spawn_thread+0x174)[0xf648c4]
/lib64/libpthread.so.0[0x35e4007aa1]
/lib64/libc.so.6(clone+0x6d)[0x35e3ce8bcd]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f0bedfdc4c0): is an invalid pointer
Connection ID (thread ID): 46
Status: NOT_KILLED

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.

**** resolve_stack_dump:

0xf468e5 my_print_stacktrace + 53
0x7cf254 handle_fatal_signal + 1188
0x35e400f7e0 _end + -502220768
0x84862a Item_func_case::cleanup() + 90
0xd08161 cleanup_items(Item*) + 33
0xdba954 TABLE::cleanup_gc_items() + 52
0xcbaadf close_thread_tables(THD*) + 95
0xd0cdf4 mysql_execute_command(THD*, bool) + 1252
0xc918a1 sp_instr_stmt::exec_core(THD*, unsigned int*) + 161
0xc91dbc sp_lex_instr::reset_lex_and_exec_core(THD*, unsigned int*, bool) + 1004
0xc941b4 sp_lex_instr::validate_lex_and_execute_core(THD*, unsigned int*, bool) + 180
0xc94538 sp_instr_stmt::execute(THD*, unsigned int*) + 296
0xc8ca96 sp_head::execute(THD*, bool) + 2182
0xc8e2ab sp_head::execute_trigger(THD*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, GRANT_INFO*) + 459
0xdcbe62 Trigger::execute(THD*) + 290
0xdcee34 Trigger_chain::execute_triggers(THD*) + 36
0xdc7bf2 Table_trigger_dispatcher::process_triggers(THD*, enum_trigger_event_type, enum_trigger_action_time_type, bool) + 82
0xcaffba fill_record_n_invoke_before_triggers(THD*, List<Item>&, List<Item>&, TABLE*, enum_trigger_event_type, int) + 602
0xd983f3 mysql_update(THD*, List<Item>&, List<Item>&, unsigned long long, enum_duplicates, unsigned long long*, unsigned long long*) + 6083
0xd98cf0 Sql_cmd_update::try_single_table_update(THD*, bool*) + 432
0xd98dec Sql_cmd_update::execute(THD*) + 44
0xd0d8e8 mysql_execute_command(THD*, bool) + 4056
0xd11e6d mysql_parse(THD*, Parser_state*) + 1005
0xd136fc dispatch_command(THD*, COM_DATA const*, enum_server_command) + 6188
0xd140c4 do_command(THD*) + 404
0xde74cc handle_connection + 668
0xf648c4 pfs_spawn_thread + 372
0x35e4007aa1 _end + -502252831
0x35e3ce8bcd _end + -505525235

How to repeat:
Unknown
[6 Feb 2018 17:55] MySQL Verification Team
Hello,

Thank you for your bug report.

Truthfully, we have never seen a backtrace like this one. Hence , we need a fully repeatable test case in order to be able to verify the bug. Hence, dump of all tables involved in this crash, plus the statement that produced the error.

You should also know that this kind of error can occur due to hardware errors or due to the temporary glitches in the RAM modules. If you use ECC DDR4 RAM modules, two bits checking one bit correcting, with some high quality RAID or SSD, then that is not your problem.
[6 Feb 2018 17:56] MySQL Verification Team
In order to repeat the crash, do note that it is happening in a trigger before the UPDATE.
[7 Mar 2018 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[17 May 2018 10:01] w yj
I have a similar problem.

00:43:02 UTC - 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.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.
key_buffer_size=209715200
read_buffer_size=1048576
max_used_connections=10
max_threads=3000
thread_count=15
connection_count=4
 
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 27892831 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x2abc4c0be8b0
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 = 2abc4803fe28 thread_stack 0x40000
/apps/svr/mysql57/bin/mysqld(my_print_stacktrace+0x35)[0xf45e05]
/apps/svr/mysql57/bin/mysqld(handle_fatal_signal+0x4a4)[0x7cd464]
/lib64/libpthread.so.0[0x382b00f7e0]
/lib64/libc.so.6(memcpy+0x3a1)[0x382ac89a51]
/apps/svr/mysql57/bin/mysqld(strmake_root+0x39)[0xf3e7f9]
/apps/svr/mysql57/bin/mysqld(_ZN17List_process_listclEP3THD+0x345)[0xd71db5]
/apps/svr/mysql57/bin/mysqld(_ZN18Global_THD_manager19do_for_all_thd_copyEP11Do_THD_Impl+0x25d)[0x7cbf0d]
/apps/svr/mysql57/bin/mysqld(_Z21mysqld_list_processesP3THDPKcb+0xfc8)[0xd69ef8]
/apps/svr/mysql57/bin/mysqld(_Z21mysql_execute_commandP3THDb+0xb29)[0xd13949]
/apps/svr/mysql57/bin/mysqld(_Z11mysql_parseP3THDP12Parser_state+0x3a5)[0xd18245]
/apps/svr/mysql57/bin/mysqld(_Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command+0x11af)[0xd1945f]
/apps/svr/mysql57/bin/mysqld(_Z10do_commandP3THD+0x194)[0xd1a324]
/apps/svr/mysql57/bin/mysqld(handle_connection+0x29c)[0xdea0fc]
/apps/svr/mysql57/bin/mysqld(pfs_spawn_thread+0x174)[0xfbdbf4]
/lib64/libpthread.so.0[0x382b007aa1]
/lib64/libc.so.6(clone+0x6d)[0x382ace8bcd]
 
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (2abc4c12e8a0): is an invalid pointer
Connection ID (thread ID): 12408003
Status: NOT_KILLED
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.
[17 May 2018 10:04] w yj
Centos 6 (2.6.32-642.6.2.el6.x86_64)