Function over userstat tables cause mysql to crash
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
Fix Released
|
High
|
Yura Sorokin | |||
5.6 |
Fix Released
|
High
|
Yura Sorokin | |||
5.7 |
Invalid
|
High
|
Yura Sorokin |
Bug Description
Description:
Userstat tables combined with functions are causing crashes.
How to repeat:
userstat=ON
mysql> select @@version ;
+-------------+
| @@version |
+-------------+
| 5.6.34-79.1 |
+-------------+
1 row in set (0.00 sec)
mysql> use test ;
Database changed
mysql> DELIMITER $$
mysql> CREATE DEFINER=
-> DETERMINISTIC
-> SQL SECURITY INVOKER
-> BEGIN
-> declare var_value varchar(1024);
-> if @@global.version like '5.6.%' then
-> select v.variable_value from information_
-> else
-> select v.variable_value from performance_
-> end if;
-> return var_value;
-> END;
-> $$
Query OK, 0 rows affected (0.00 sec)
mysql> delimiter ;
mysql> select *
-> from `information_
-> where utility_
ERROR 2013 (HY000): Lost connection to MySQL server during query
Log error messages:
18:46:22 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.
Please help us make Percona Server better by reporting any
bugs at http://
key_buffer_
read_buffer_
max_used_
max_threads=153
thread_count=1
connection_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7f901a3b3000
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 = 7f902c881e00 thread_stack 0x40000
/opt/percona_
/opt/percona_
/lib/x86_
/opt/percona_
/opt/percona_
/opt/percona_
/opt/percona_
/opt/percona_
/opt/percona_
/opt/percona_
/opt/percona_
/opt/percona_
/opt/percona_
/opt/percona_
/opt/percona_
/opt/percona_
/opt/percona_
/lib/x86_
/lib/x86_
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f900c822010): select * from `information_
Connection ID (thread ID): 1
Status: NOT_KILLED
tags: | added: userstat |
Can reproduce the crash based on description.