Bug #32436 | KILL QUERY completely deadlocks mysqld | ||
---|---|---|---|
Submitted: | 16 Nov 2007 14:10 | Modified: | 12 Dec 2007 19:58 |
Reporter: | Ralf Neubauer | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.0.32, 5.0.44, 5.1.16, 5.1.22 | OS: | Any (Linux and Windows) |
Assigned to: | Kristofer Pettersson | CPU Architecture: | Any |
[16 Nov 2007 14:10]
Ralf Neubauer
[16 Nov 2007 23:49]
MySQL Verification Team
Thank you for the bug report. Verified on Windows Vista 64-bit.
[26 Nov 2007 14:20]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/38516 ChangeSet@1.2537, 2007-11-26 15:23:46+01:00, thek@adventure.(none) +1 -0 Bug #32436 KILL QUERY completely deadlocks mysqld The lock order in Item_func_sleep was wrong and this could lead to a dead lock when several threads set KILL QUERY repeatadly during on a SELECT SLEEP(). This patch solves the issue by resolving the lock order properly.
[26 Nov 2007 14:41]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/38521 ChangeSet@1.2537, 2007-11-26 15:44:05+01:00, thek@adventure.(none) +1 -0 Bug #32436 KILL QUERY completely deadlocks mysqld Sending several "KILL QUERY" statements to target a connection running "SELECT SLEEP" could freeze the server. The locking order in Item_func_sleep was wrong and this could lead to a dead lock. This patch solves the issue by resolving the locking order properly.
[6 Dec 2007 9:55]
Bugs System
Pushed into 5.0.54
[6 Dec 2007 9:59]
Bugs System
Pushed into 5.1.23-rc
[6 Dec 2007 10:01]
Bugs System
Pushed into 6.0.5-alpha
[12 Dec 2007 19:58]
Paul DuBois
Noted in 5.0.54, 5.1.23, 6.0.5 changelogs.