quering global_temporary_tables causes server crash

Bug #745241 reported by Aurimas Mikalauskas on 2011-03-29
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
Alexey Kopytov
Fix Released
Alexey Kopytov
Fix Released
Alexey Kopytov

Bug Description

I've been running this very intensively to monitor temporary tables:

while [ 1 ]; do mysql information_schema -e "select * from global_temporary_tables"; done

However after running that for some time server crashed (and then again, and again). This is a production systems so I can't use it to work further on figuring out why this happenins, but I have a backtrace in logs which will hopefully help to diagnose it:

110329 16:14:03 - 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.

It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 18964067 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x2ab178129c00
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 = 0x528520e8 thread_stack 0x30000

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x1a5b00c0): select * from global_temporary_tables
Connection ID (thread ID): 26285

Version: '5.1.55-rel12.6-log' socket: '/var/lib/mysql/mysql.sock' port: 3306 Percona Server (GPL), 12.6, Revision 200

Related branches

Changed in percona-server:
assignee: nobody → Valentine Gostev (core-longbow)
importance: Undecided → High

Just to explain how severe it is, when I was running this, server crashed 3 times within half an hour. After I stopped the loop server never crashed ever since so this is definitely related.

Alexey Kopytov (akopytov) wrote :

I can easily reproduce it like this:

shell1> while true; do client/mysql -e "create temporary table t1(a int); create temporary table t2(a int); create temporary table t3(a int)" test; done

shell2> while true; do client/mysql -e "select * from global_temporary_tables" information_schema; done

Crashes in a few seconds.

Changed in percona-server:
status: New → Confirmed
Stewart Smith (stewart) on 2011-05-20
Changed in percona-server:
assignee: Valentine Gostev (longbow) → nobody
status: Confirmed → Triaged
Stewart Smith (stewart) wrote :

../client/mysqlslap --query "create temporary table t1 (a int); select * from information_schema.global_temporary_tables; drop table t1;" --create-schema test --number-of-queries=10000000 --concurrency=100 -S /tmp/rlZDDT6T4g/mysqld.1.sock

will reproduce.

Changed in percona-server:
importance: High → Critical

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

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

Other bug subscribers