Bug #89491 MySQL crash in pfs truncate operation
Submitted: 1 Feb 2018 1:46 Modified: 18 Feb 2018 19:36
Reporter: yx jiang Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: DML Severity:S2 (Serious)
Version:5.6.21 OS:CentOS (6.4)
Assigned to: CPU Architecture:Any
Tags: crash

[1 Feb 2018 1:46] yx jiang
Description:
MySQL crashed with infomation below

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

Thread pointer: 0x75b4c510
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 = 7fa0baf3ce18 thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x35)[0x8da6d5]
/usr/sbin/mysqld(handle_fatal_signal+0x494)[0x664bb4]
/lib64/libpthread.so.0[0x3df9c0f7e0]
/usr/sbin/mysqld[0xb20113]
/usr/sbin/mysqld(_lf_dynarray_iterate+0x76)[0xb20f06]
/usr/sbin/mysqld[0xb2053f]
/usr/sbin/mysqld(lf_hash_delete+0x1cc)[0xb21c6c]
/usr/sbin/mysqld(_Z12purge_digestP10PFS_threadP14PFS_digest_key+0x7b)[0xad5a6b]
/usr/sbin/mysqld(_Z20reset_esms_by_digestv+0x59)[0xad5b29]
/usr/sbin/mysqld(_ZN20table_esms_by_digest15delete_all_rowsEv+0x9)[0xae8a89]
/usr/sbin/mysqld(_ZN22Sql_cmd_truncate_table16handler_truncateEP3THDP10TABLE_LISTb+0xe0)[0x85f590]
/usr/sbin/mysqld(_ZN22Sql_cmd_truncate_table14truncate_tableEP3THDP10TABLE_LIST+0x2a8)[0x85fcf8]
/usr/sbin/mysqld(_ZN22Sql_cmd_truncate_table7executeEP3THD+0x5e)[0x85fdee]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x2079)[0x6e1e89]
/usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x32f)[0x6e4d8f]
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x143b)[0x6e62cb]
/usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0xcf)[0x6b304f]
/usr/sbin/mysqld(handle_one_connection+0x47)[0x6b3177]
/usr/sbin/mysqld(pfs_spawn_thread+0x12a)[0xafe5ca]
/lib64/libpthread.so.0[0x3df9c07aa1]
/lib64/libc.so.6(clone+0x6d)[0x3df94e893d]

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

How to repeat:
Occationnaly happend.Have no steps to reproduce.

Suggested fix:
N/A
[18 Feb 2018 19:36] MySQL Verification Team
Thank you for taking the time to report a problem.  Unfortunately you
are not using a current version of the product you reported a problem
with -- the problem might already be fixed. Please download
a new version from http://www.mysql.com/downloads/.

Also, there is no test case provided in the bug report and hence there
is nothing we can verify here.  If you are able to reproduce the bug
with one of the latest versions, please attach the exact reproducible
test case and change the version on this bug report to the version you
tested and change the status back to "Open".  Again, thank you for your
continued support of MySQL.