Bug #45092 | crash with Using index condition(BKA) | ||
---|---|---|---|
Submitted: | 26 May 2009 8:10 | Modified: | 20 Nov 2010 23:22 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
Version: | 6.0.12,6.0.9,6.0-bzr,5.4 | OS: | Any (32-bit fc8, winXP) |
Assigned to: | Guilhem Bichot | CPU Architecture: | Any |
Tags: | BKA, crash, join_cache_level, valgrind |
[26 May 2009 8:10]
Shane Bester
[26 May 2009 8:33]
Sveta Smirnova
Thank you for the report. Verified as described.
[2 Jun 2009 21:54]
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/75488 2740 Igor Babaev 2009-06-02 Fixed bug #45092. When the descriptors of the data fields stored in a join buffer are created first the descriptors of the the fields used in building access keys are constructed. The construction is done with a call of the function add_table_data_fields_to_join_cache. One of the parameters of this function, namely field_set, specifies for what fields the descriptors are to be constructed. This function is called once again for the remaining fields. As the function adds new elements to the array of the field descriptors it has to save the number of the descriptors that has been already built in order to be able continue adding them later. The same is true for the array of pointers to the field descriptors that is created for blob fields. However the length of this array was not been saved. As a result, when the remaining blob fields were processed the pointers to their field descriptors overwrote the pointers to the descriptors of the blob fields used to build the access keys. modified: mysql-test/r/join_cache.result mysql-test/t/join_cache.test sql/sql_join_cache.cc sql/sql_select.h
[1 Oct 2009 14:17]
Guilhem Bichot
this is in mysql-6.0-opt but never reached main trees (not in 6.0-codebase-bugfixing); this is the only such unmerged revision. I'll merge it.
[1 Oct 2009 18:13]
Guilhem Bichot
queued to 6.0-codebase-bugfixing
[2 Oct 2009 14:42]
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/85553 3635 Guilhem Bichot 2009-10-01 [merge] merge of Igor's fix for BUG#45092, fix which had been forgotten in mysql-6.0-opt and never merged to main trees.
[9 Oct 2009 8:48]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@ibmvm-20091009083208-0o0f0i9w1sq3c1kn) (version source revid:guilhem@mysql.com-20091001161223-jilbw8rvgm5fsbnc) (merge vers: 6.0.14-alpha) (pib:12)
[19 Oct 2009 13:40]
Paul DuBois
Hi Guilhem. Right, 6.0.x is now something of a special case, but I'm adding changelog entries in case we need them later. So, could I have a bug description, please. :-)
[19 Oct 2009 14:10]
Guilhem Bichot
Not easy as I didn't write the fix, but here is a try: "Joins involving BLOB columns caused crashes when using the Batched Key Access method."
[19 Oct 2009 14:35]
Paul DuBois
Noted in 6.0.14 changelog. Joins involving BLOB columns caused crashes when using the Batched Key Access method.
[16 Aug 2010 6:41]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100816062819-bluwgdq8q4xysmlg) (version source revid:alik@sun.com-20100816062612-enatdwnv809iw3s9) (pib:20)
[13 Nov 2010 16:15]
Bugs System
Pushed into mysql-trunk 5.6.99-m5 (revid:alexander.nozdrin@oracle.com-20101113155825-czmva9kg4n31anmu) (version source revid:vasil.dimov@oracle.com-20100629074804-359l9m9gniauxr94) (merge vers: 5.6.99-m4) (pib:21)
[20 Nov 2010 23:22]
Paul DuBois
Noted in 5.6.1 changelog.
[23 Nov 2010 2:12]
Paul DuBois
Correction: No 5.6.1 changelog entry. Bug does not appear in any released 5.6.x version.