[MDEV-4465] Reproducible crash (mysqld got signal 11) in multi_delete::initialize_tables with semijoin+materialization Created: 2013-05-01 Updated: 2013-05-02 Resolved: 2013-05-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.2, 5.5.30, 5.5.29-galera, 5.3.12 |
| Fix Version/s: | 10.0.3, 5.5.31, 5.3.13 |
| Type: | Bug | Priority: | Major |
| Reporter: | Israel Tsadok | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | crash | ||
| Environment: |
ubuntu 12.04 percise |
||
| Attachments: |
|
| Description |
|
The attached sql file causes MariaDB to crash, leaving the following in syslog:
|
| Comments |
| Comment by Elena Stepanova [ 2013-05-01 ] |
|
Hi, Thanks for the report, hope you don't mind that I modified the summary just a little bit, to make it more easily searchable in future. |
| Comment by Elena Stepanova [ 2013-05-01 ] |
|
A slightly modified test case is below. The attached one is also fine, and it's more realistic, in the one below I just removed indexes and fields not needed to reproduce the crash. You can use whichever you prefer. Reproducible both with InnoDB (as in the original test case) and with MyISAM. Test case: SET optimizer_switch = 'materialization=on,semijoin=on'; CREATE TABLE `a` ( CREATE TABLE `b` (
|
| Comment by Sergei Petrunia [ 2013-05-02 ] |
|
In the above testcase, the query can be simplified: delete b from b where a_id in (select a.id from a); It is essential that SJ-Materialization is enabled, and the query is a multi-table DELETE. |
| Comment by Sergei Petrunia [ 2013-05-02 ] |
|
Fixed in 5.5. Thanks for bug report. |