Bug #15536 | Crash when DELETE with subquery using BDB tables | ||
---|---|---|---|
Submitted: | 6 Dec 2005 18:35 | Modified: | 21 Dec 2005 8:53 |
Reporter: | Axel Schwenke | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: BDB | Severity: | S1 (Critical) |
Version: | 4.1 | OS: | Linux (SLES-9/x86_64) |
Assigned to: | Jim Winstead | CPU Architecture: | Any |
[6 Dec 2005 18:35]
Axel Schwenke
[7 Dec 2005 2:50]
Jim Winstead
i wasn't able to reproduce this on an x86_64 box. you might want to double-check with the latest 5.1, where the latest BDB was pushed. (but this also worked fine for me with an earlier 5.1 tree.)
[7 Dec 2005 17:51]
Axel Schwenke
OK, here we go with a new testcase. Download and gunzip the files I uploaded. Then repeat: # mysql test root@test>\. 15536.dump ... root@test>\. 15536.boom ERROR 2013 (HY000): Lost connection to MySQL server during query
[8 Dec 2005 2:45]
Jim Winstead
this appears to be a bug caused by the subquery, where it is doing an index read but ha_index_end() isn't ever getting called on the index. this leaves a cursor open on one of the tables, which then causes bdb to fail on commit.
[8 Dec 2005 19:23]
Jim Winstead
Updated synopsis to reflect what the bug report became. (There may be cursor issues, but this specific bug is a different problem.) Problem exists back in 4.1, too.
[8 Dec 2005 20:33]
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/47
[9 Dec 2005 21:46]
Konstantin Osipov
OK to push. Notice, that in 5.0 and up you seem to not need an additional variable in sql_insert.cc, the code flow can be reorganized without it.
[13 Dec 2005 2:25]
Jim Winstead
Fixed in 4.1.17, 5.0.18, and 5.1.4. The bug also impacted INSERT and UPDATE statements with subqueries.
[21 Dec 2005 8:53]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html Additional info: Documented bugfix in 4.1.17, 5.0.18, and 5.1.4 changelogs. Bug closed.