Bug #58553 | Queries with pushed conditions causes 'explain extended' to crash mysqld | ||
---|---|---|---|
Submitted: | 29 Nov 2010 10:22 | Modified: | 12 Jan 2011 18:07 |
Reporter: | Jan Wedvik | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
Version: | next-mr, 5.5, 5.1.x | OS: | Any |
Assigned to: | Jan Wedvik | CPU Architecture: | Any |
[29 Nov 2010 10:22]
Jan Wedvik
[29 Nov 2010 12: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/125336 3477 Jan Wedvik 2010-11-29 Fix for bug#58553, "Queries with pushed conditions causes 'explain extended' to crash mysqld". handler::pushed_cond was not always properly reset when table objects where recycled via the table cache. handler::pushed_cond is now set to NULL in handler::ha_reset(). This should prevent pushed conditions from (incorrectly) re-apperaring in later queries.
[29 Nov 2010 15:40]
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/125365 3354 Jan Wedvik 2010-11-29 This is a temporary fix for bug #58553, until a permanent fix can be merged from server trunk (e.g. mysql-5.1 branch). This fix only modifies cluster-specific code.
[29 Nov 2010 15:41]
Bugs System
Pushed into mysql-5.1-telco-6.3 5.1.51-ndb-6.3.40 (revid:jan.wedvik@sun.com-20101129153949-qg0m6z9bx1hph93s) (version source revid:jan.wedvik@sun.com-20101129153949-qg0m6z9bx1hph93s) (merge vers: 5.1.51-ndb-6.3.40) (pib:23)
[29 Nov 2010 15:45]
Bugs System
Pushed into mysql-5.1-telco-7.0 5.1.51-ndb-7.0.21 (revid:jonas@mysql.com-20101129154351-ebqx7i9fba29hq5o) (version source revid:jonas@mysql.com-20101129154351-ebqx7i9fba29hq5o) (merge vers: 5.1.51-ndb-7.0.21) (pib:23)
[29 Nov 2010 22:40]
Sveta Smirnova
Thank you for the report. I can not repeat described behavior nor in mysql-trunk, neither in 5.5-telco. Which configuration options do you use?
[30 Nov 2010 10:50]
Jonas Oreland
A "temporary fix" has been pushed to 6.3.40, 7.0.21 and 7.1.10 Setting status to documenting... When it has been documented, it should be reset to old state (or a new bug should be opened instead maybe)
[30 Nov 2010 10:53]
Jonas Oreland
note: also changing category to cluster, please reset once documenting.
[30 Nov 2010 13:11]
Jan Wedvik
Shell script for reproducing the error
Attachment: rep58553.sh (application/x-shellscript, text), 2.23 KiB.
[30 Nov 2010 13:15]
Jan Wedvik
I have added a script that repeats the steps that I did in order to get the error. I have tried this on two different machines with config as follows: 1: Linux atum17 2.6.35-22-generic #34-Ubuntu SMP Sun Oct 10 09:26:05 UTC 2010 x86_64 GNU/Linux gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) 2: Linux fimafeng09 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)
[30 Nov 2010 13:55]
Jon Stephens
Documented bugfix in the NDB-6.3.40, 7.0.21, 7.1.10 changelogs as follows: Issuing EXPLAIN EXTENDED with a query that would use condition pushdown could cause mysqld to crash. Closed.
[30 Nov 2010 13:57]
Jon Stephens
Setting category/status back to Optimizer/Need Feedback (after closing for Cluster fix) per discussion today with Jonas (so this can hopefully be fixed later in mainline trees).
[1 Dec 2010 11:51]
Susanne Ebrecht
Set back to verified.
[11 Jan 2011 11:10]
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/128409 3540 Jan Wedvik 2011-01-11 Fix for bug#58553, "Queries with pushed conditions causes 'explain extended' to crash mysqld". handler::pushed_cond was not always properly reset when table objects where recycled via the table cache. handler::pushed_cond is now set to NULL in handler::ha_reset(). This should prevent pushed conditions from (incorrectly) re-apperaring in later queries.
[11 Jan 2011 11:34]
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/128411 3234 Jan Wedvik 2011-01-11 [merge] Merge of fix for bug#58553, "Queries with pushed conditions causes 'explain extended' to crash mysqld" (see http://lists.mysql.com/commits/128409).
[11 Jan 2011 11:45]
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/128413 3484 Jan Wedvik 2011-01-11 [merge] Merge of fix for bug#58553, "Queries with pushed conditions causes 'explain extended' to crash mysqld" (see http://lists.mysql.com/commits/128409).
[11 Jan 2011 11:47]
Bugs System
Pushed into mysql-trunk 5.6.2 (revid:jan.wedvik@sun.com-20110111114502-dxuh0qvribnaty25) (version source revid:jan.wedvik@sun.com-20110111114502-dxuh0qvribnaty25) (merge vers: 5.6.2) (pib:24)
[11 Jan 2011 11:48]
Bugs System
Pushed into mysql-5.5 5.5.9 (revid:jan.wedvik@sun.com-20110111113328-fd4q0pn7fca1ztmt) (version source revid:jan.wedvik@sun.com-20110111113328-fd4q0pn7fca1ztmt) (merge vers: 5.5.9) (pib:24)
[11 Jan 2011 11:49]
Bugs System
Pushed into mysql-5.1 5.1.55 (revid:jan.wedvik@sun.com-20110111110954-fwj6rsugt2ulywa9) (version source revid:jan.wedvik@sun.com-20110111110954-fwj6rsugt2ulywa9) (merge vers: 5.1.55) (pib:24)
[12 Jan 2011 13:07]
Ole John Aske
Fix pushed to mysql-5.1, mysql-5.5 and mysql-trunk
[12 Jan 2011 18:07]
Paul DuBois
Noted in 5.5.9, 5.6.2 changelogs.
[31 Jan 2011 16:17]
Jon Stephens
Also noted in the 5.1.55 changelog.