Bug #84090 mysql 5.6.24 got signal 11 and restarted
Submitted: 7 Dec 2016 10:08 Modified: 30 Dec 2016 8:44
Reporter: victor zheng Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Federated storage engine Severity:S3 (Non-critical)
Version:mysql 5.6.24 OS:Debian
Assigned to: CPU Architecture:Any

[7 Dec 2016 10:08] victor zheng
Description:
one day,mysql 5.6.24 restarted.And I find the error log in mysql error log as belows.

machine information:

free -g
total       used       free     shared    buffers     cached
Mem:            94         94          0          0          0         34
-/+ buffers/cache:         58         35
Swap:            3          0          3

mysql error log:

10:35:05 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.
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.

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

Thread pointer: 0x2ad200b4e3a0
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 = 2ad195e2d0b8 thread_stack 0x40000
/usr/local/mysql-5.6.24/bin/mysqld(my_print_stacktrace+0x35)[0x911b45]
/usr/local/mysql-5.6.24/bin/mysqld(handle_fatal_signal+0x37b)[0x64f9ab]
/lib64/libpthread.so.0[0x338060eca0]
/usr/local/mysql-5.6.24/bin/mysqld(_ZN12ha_federated5closeEv+0x49)[0x96c039]
/usr/local/mysql-5.6.24/bin/mysqld(_Z8closefrmP5TABLEb+0x12b)[0x7734bb]
/usr/local/mysql-5.6.24/bin/mysqld(_Z18intern_close_tableP5TABLE+0x59)[0x684289]
/usr/local/mysql-5.6.24/bin/mysqld(_ZN19Table_cache_manager22free_all_unused_tablesEv+0xb5)[0x77c6f5]
/usr/local/mysql-5.6.24/bin/mysqld(_Z19close_cached_tablesP3THDP10TABLE_LISTbm+0x745)[0x68e755]
/usr/local/mysql-5.6.24/bin/mysqld(_Z20reload_acl_and_cacheP3THDmP10TABLE_LISTPi+0x339)[0x6f68b9]
/usr/local/mysql-5.6.24/bin/mysqld(_Z21mysql_execute_commandP3THD+0x5784)[0x6dee64]
/usr/local/mysql-5.6.24/bin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x318)[0x6e1a88]
/usr/local/mysql-5.6.24/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x1a86)[0x6e3656]
/usr/local/mysql-5.6.24/bin/mysqld(_Z10do_commandP3THD+0xd7)[0x6e47b7]
/usr/local/mysql-5.6.24/bin/mysqld(_Z24do_handle_one_connectionP3THD+0x125)[0x6a6a35]
/usr/local/mysql-5.6.24/bin/mysqld(handle_one_connection+0x42)[0x6a6b52]
/usr/local/mysql-5.6.24/bin/mysqld(pfs_spawn_thread+0x123)[0x9aaf03]
/lib64/libpthread.so.0[0x338060683d]
/lib64/libc.so.6(clone+0x6d)[0x337fad4fdd]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (2ad264cd0580): flush tables
Connection ID (thread ID): 107052
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.
161202 18:35:09 mysqld_safe Number of processes running now: 0
161202 18:35:09 mysqld_safe mysqld restarted

How to repeat:
I cann't repeat the bug now.
[7 Dec 2016 10:45] MySQL Verification Team
We need a repeatable test case to check a bug and with the latest released version, please test 5.6.34 version and re-open this bug report if the issue persists. Thanks.
[30 Dec 2016 8:44] MySQL Verification Team
Hi,  

This is a known bug with FEDERATED tables in the table cache.
For reference it is fixed:

---
Noted in 5.5.49, 5.6.30, 5.7.12, 5.8.0 changelogs.

Concurrent selecting and flushing of a FEDERATED table while killing
connections accessing it could result in a server exit. 
---