Bug #90988 show engine status or select from INNODB_LOCKS cause crash
Submitted: 23 May 2018 11:37 Modified: 23 May 2018 11:52
Reporter: yx jiang Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:5.6.21 OS:CentOS (6.4)
Assigned to: CPU Architecture:Any
Tags: show engine status

[23 May 2018 11:37] yx jiang
Description:
It is very likely with this bug https://bugs.mysql.com/bug.php?id=38883.

And it is said fixed in  5.1.31 as in this document  https://docs.oracle.com/cd/E17952_01/mysql-5.1-relnotes-en/news-5-1-31.html.

But things happenned agaim in 5.6.21. And I haven't found fixing record in 5.6.x release note.

Does this fix lost in 5.6.x

crash info in error log
==============================
max_used_connections=9
max_threads=5000
thread_count=3
connection_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 10956785 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x6db9d700
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 = 7fdd8c5f0e18 thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x35)[0x8da6d5]
/usr/sbin/mysqld(handle_fatal_signal+0x494)[0x664bb4]
/lib64/libpthread.so.0[0x3495e0f7e0]
/lib64/libc.so.6(memcpy+0xd2)[0x3495689772]
/usr/sbin/mysqld(_ZN6String6appendEPKcj+0x8f)[0x72665f]
/usr/sbin/mysqld(thd_security_context+0x281)[0x6ae5b1]
/usr/sbin/mysqld[0x8fd354]
/usr/sbin/mysqld[0x92d901]
/usr/sbin/mysqld[0x9b1ac2]
/usr/sbin/mysqld[0x909b4e]
/usr/sbin/mysqld(_Z14ha_show_statusP3THDP10handlerton12ha_stat_type+0x41c)[0x5ae94c]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x1a15)[0x6e1825]
/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[0x3495e07aa1]
/lib64/libc.so.6(clone+0x6d)[0x34956e893d]

How to repeat:
No repliable way to reproduce.

Suggested fix:
N/A
[23 May 2018 11:52] 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.