Bug #34945 | ref_or_null queries that are null_rejecting and have a null value crash mysql | ||
---|---|---|---|
Submitted: | 28 Feb 2008 22:53 | Modified: | 15 Mar 2008 8:59 |
Reporter: | Eric Bergen (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S2 (Serious) |
Version: | 5.0, 5.1, 6.0 BK | OS: | Any (All) |
Assigned to: | Sergey Petrunya | CPU Architecture: | Any |
Tags: | Contribution, crash, join_read_always_key, join_read_always_key_or_null, null_rejecting, ref_or_null, regression |
[28 Feb 2008 22:53]
Eric Bergen
[28 Feb 2008 23:54]
Sveta Smirnova
Thank you for the report. Verified as described.
[3 Mar 2008 17:33]
Sergey Petrunya
More details: the crash is caused by failed assertion. In release builds, attempts do do index lookups before initializing the index cause errors like this: ERROR 126: Incorrect key file for table '%s'; try to repair it . The bug was introduced by fix for BUG#12144.
[3 Mar 2008 17:36]
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/43328 ChangeSet@1.2598, 2008-03-03 20:35:44+03:00, sergefp@mysql.com +3 -0 BUG#34945: "ref_or_null queries that are null_rejecting and have a null value crash mysql" - Apply Eric Bergen's patch: in join_read_always_key(), move ha_index_init() call to before the late NULLs filtering code. - Backport function comments from 6.0.
[3 Mar 2008 17:39]
Sergey Petrunya
The suggested fix is correct. Thanks Eric ! :-)
[13 Mar 2008 19:28]
Bugs System
Pushed into 6.0.5-alpha
[13 Mar 2008 19:35]
Bugs System
Pushed into 5.1.24-rc
[13 Mar 2008 19:42]
Bugs System
Pushed into 5.0.60
[15 Mar 2008 8:59]
Jon Stephens
Documented bugfix in the 5.0.60, 5.1.24, and 6.0.5 changelogs as follows: A query that performed a ref_or_null join where the second table used a key having one or columns that could be NULL and had a column value that was NULL caused the server to crash.