Crash when selecting from performance_schema.threads

Bug #1595426 reported by paranoiq
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Expired
Undecided
Unassigned

Bug Description

error log:

2016-06-14T13:30:22.850626Z 3 [Note] Event Scheduler: scheduler thread started with id 3
13:29:09 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.
Please help us make Percona Server better by reporting any
bugs at http://bugs.percona.com/

key_buffer_size=8388608
read_buffer_size=2097152
max_used_connections=241
max_threads=100001
thread_count=186
connection_count=183
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 409643284 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x11ae57b0
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 = 7f0ff85aec80 thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x3b)[0xef3b5b]
/usr/sbin/mysqld(handle_fatal_signal+0x471)[0x79bf71]
/lib64/libpthread.so.0(+0xf100)[0x7f1f187c6100]
/usr/sbin/mysqld(_ZN16cursor_by_thread8rnd_nextEv+0x64)[0xf86324]
/usr/sbin/mysqld(_ZN13ha_perfschema8rnd_nextEPh+0x66)[0xf22d66]
/usr/sbin/mysqld(_ZN7handler11ha_rnd_nextEPh+0x164)[0x7fee64]
/usr/sbin/mysqld(_Z13rr_sequentialP11READ_RECORD+0x20)[0xc30390]
/usr/sbin/mysqld(_Z10sub_selectP4JOINP7QEP_TABb+0x147)[0xca1057]
/usr/sbin/mysqld(_ZN4JOIN4execEv+0x267)[0xc99b97]
/usr/sbin/mysqld(_Z12handle_queryP3THDP3LEXP12Query_resultyy+0x17d)[0xd0b36d]
/usr/sbin/mysqld[0x75bfbf]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THDb+0x4697)[0xccd5b7]
/usr/sbin/mysqld(_Z11mysql_parseP3THDP12Parser_state+0x5dd)[0xcd06fd]
/usr/sbin/mysqld(_Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command+0x92f)[0xcd10bf]
/usr/sbin/mysqld(_Z10do_commandP3THD+0x1df)[0xcd2a9f]
/usr/sbin/mysqld(_Z26threadpool_process_requestP3THD+0xdb)[0xd784bb]
/usr/sbin/mysqld[0xd87a3e]
/usr/sbin/mysqld(pfs_spawn_thread+0x1b4)[0xf24194]
/lib64/libpthread.so.0(+0x7dc5)[0x7f1f187bedc5]
/lib64/libc.so.6(clone+0x6d)[0x7f1f16a1028d]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (11bddf90): select THREAD_ID, NAME, PROCESSLIST_ID, PROCESSLIST_USER, PROCESSLIST_HOST, INSTRUMENTED from threads
Connection ID (thread ID): 743707

Status: NOT_KILLED

Revision history for this message
paranoiq (cz-paranoiq) wrote :
Changed in percona-server:
assignee: nobody → Muhammad Irfan (muhammad-irfan)
Revision history for this message
Muhammad Irfan (muhammad-irfan) wrote :

I tried to reproduce this problem with exact version information you mentioned. However, I'm not able to reproduce this issue. I keep tried by querying various performance_schema tables and I had no issues. Also, I tried to use same configuration you shared.
May be you can share my.cnf to double check If I missed something ? Also, is that crash everytime when you query performance_schema.threads table or occasionally ? Is there any particular condition when crash happens ? It seems to related to thread pool too.

mysql> SHOW GLOBAL VARIABLES LIKE '%version%';
+-------------------------+---------------------------------------------------+
| Variable_name | Value |
+-------------------------+---------------------------------------------------+
| innodb_version | 5.7.12-5 |
| protocol_version | 10 |
| slave_type_conversions | |
| tls_version | TLSv1,TLSv1.1,TLSv1.2 |
| version | 5.7.12-5-log |
| version_comment | Percona Server (GPL), Release 5, Revision a2f663a |
| version_compile_machine | x86_64 |
| version_compile_os | Linux |
+-------------------------+---------------------------------------------------+

Changed in percona-server:
assignee: Muhammad Irfan (muhammad-irfan) → nobody
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Percona Server because there has been no activity for 60 days.]

Changed in percona-server:
status: Incomplete → Expired
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-3475

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.