Bug #31148 | bool close_thread_table(THD*, TABLE**): Assertion `table->key_read == 0' failed. | ||
---|---|---|---|
Submitted: | 22 Sep 2007 14:43 | Modified: | 9 Nov 2007 21:17 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.1.23-debug, 6.0.3-debug | OS: | Any |
Assigned to: | Alexander Nozdrin | CPU Architecture: | Any |
Tags: | assertion, crash |
[22 Sep 2007 14:43]
Shane Bester
[22 Sep 2007 14:48]
MySQL Verification Team
debug outputs from windows build of 5.1.21-debug
Attachment: bug31148-5.1.21-debug-windows-stack-trace.txt (text/plain), 6.62 KiB.
[20 Oct 2007 17:46]
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/35987 ChangeSet@1.2595, 2007-10-20 21:48:15+04:00, anozdrin@station. +3 -0 Fix for BUG#31148: bool close_thread_table(THD*, TABLE**): Assertion `table->key_read == 0' failed. The problem was that key_read on a table in a sub-select was not properly reset. That happens because the code responsible for that is copy&pasted all around the server. In some place, it was obviously forgotten to be pasted. The fix is to reset key_read properly.
[20 Oct 2007 17:50]
Alexander Nozdrin
Pushed into 5.1-runtime.
[7 Nov 2007 21:59]
Bugs System
Pushed into 6.0.4-alpha
[7 Nov 2007 22:01]
Bugs System
Pushed into 5.1.23-rc
[9 Nov 2007 21:17]
Paul DuBois
Noted in 5.1.23, 6.0.4 changelogs. A key read in a subquery could be impproperly reset, resulting in an assertion failure.
[12 Nov 2007 19:23]
Paul DuBois
Correction: No changelog entry is needed, per Joro.