Bug #55472 | Assertion failed in heap_rfirst function of hp_rfirst.c on DELETE statement | ||
---|---|---|---|
Submitted: | 22 Jul 2010 8:04 | Modified: | 12 Aug 2010 19:29 |
Reporter: | John Embretsen | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: General | Severity: | S1 (Critical) |
Version: | 5.5.6-m3-Celosia | OS: | Any |
Assigned to: | Gleb Shchepa | CPU Architecture: | Any |
[22 Jul 2010 8:04]
John Embretsen
[22 Jul 2010 8:58]
Sveta Smirnova
Thank you for the report. Verified as described with mysql-trunk-bugfixing
[22 Jul 2010 12:25]
John Embretsen
For the record: Unable to repeat issue (different crash) with non-debug builds (as mentioned above) at this time.
[28 Jul 2010 17:47]
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/114554 3156 Gleb Shchepa 2010-07-28 Bug #55472: Assertion failed in heap_rfirst function of hp_rfirst.c on DELETE statement Single-table delete ordered by a field that has a hash-type index may cause an assertion failure or a crash. An optimization added by the fix for the bug 36569 forced the optimizer to use ORDER BY-compatible indices when applicable. However, the existence of unsorted indices (HASH index algorithm for some engines such as HEAP, MEMORY, NDB) was ignored. The test_if_order_by_key function has been modified to skip unsorted indices. @ mysql-test/r/heap_hash.result Test case for bug #55472. @ mysql-test/t/heap_hash.test Test case for bug #55472. @ sql/sql_select.cc Bug #55472: Assertion failed in heap_rfirst function of hp_rfirst.c on DELETE statement The test_if_order_by_key function has been modified to skip unsorted indices.
[29 Jul 2010 7:17]
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/114588 3158 Gleb Shchepa 2010-07-29 Bug #55472: Assertion failed in heap_rfirst function of hp_rfirst.c on DELETE statement Single-table delete ordered by a field that has a hash-type index may cause an assertion failure or a crash. An optimization added by the fix for the bug 36569 forced the optimizer to use ORDER BY-compatible indices when applicable. However, the existence of unsorted indices (HASH index algorithm for some engines such as MEMORY/HEAP, NDB) was ignored. The test_if_order_by_key function has been modified to skip unsorted indices. @ mysql-test/r/heap_hash.result Test case for bug #55472. @ mysql-test/t/heap_hash.test Test case for bug #55472. @ sql/sql_select.cc Bug #55472: Assertion failed in heap_rfirst function of hp_rfirst.c on DELETE statement The test_if_order_by_key function has been modified to skip unsorted indices.
[4 Aug 2010 7:50]
Bugs System
Pushed into mysql-trunk 5.5.6-m3 (revid:alik@sun.com-20100731131027-1n61gseejyxsqk5d) (version source revid:marko.makela@oracle.com-20100621094008-o9fa153s3f09merw) (merge vers: 5.1.49) (pib:18)
[4 Aug 2010 8:09]
Bugs System
Pushed into mysql-trunk 5.6.1-m4 (revid:alik@ibmvm-20100804080001-bny5271e65xo34ig) (version source revid:marko.makela@oracle.com-20100621094008-o9fa153s3f09merw) (merge vers: 5.1.49) (pib:18)
[4 Aug 2010 8:25]
Bugs System
Pushed into mysql-trunk 5.6.1-m4 (revid:alik@ibmvm-20100804081533-c1d3rbipo9e8rt1s) (version source revid:marko.makela@oracle.com-20100621094008-o9fa153s3f09merw) (merge vers: 5.1.49) (pib:18)
[4 Aug 2010 9:04]
Bugs System
Pushed into mysql-next-mr (revid:alik@ibmvm-20100804081630-ntapn8bf9pko9vj3) (version source revid:marko.makela@oracle.com-20100621094008-o9fa153s3f09merw) (pib:20)
[12 Aug 2010 19:29]
Paul DuBois
Noted in 5.5.6 changelog. A single-table DELETE ordered by a column that had a hash-type index could raise an assertion or cause a server crash.