[MDEV-4336] left join hangs in optimizing state, consumes all memory and leads to crash Created: 2013-03-27 Updated: 2013-05-21 Resolved: 2013-05-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.30 |
| Fix Version/s: | 10.0.3, 5.5.31, 5.3.13 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Martijn Otto | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | optimizer | ||
| Environment: |
Linux 3.2.0-38-generic |
||
| Issue Links: |
|
||||||||
| Description |
|
Create a table like this
Then run the following query to crash the server:
The query will enter the optimizing state and start consuming memory (and swap, if applicable) until the server runs out of memory and mysqld is killed. Note that it does not matter whether the table is an InnoDB or MyISAM table. MySQL 5.5.29 does not exhibit this behavior. |
| Comments |
| Comment by Elena Stepanova [ 2013-03-27 ] |
|
It's a regression which came to 5.5.30 with the following revision: I couldn't however reproduce it on 5.3 (neither on the current one nor on the version from that time), so I'm keeping it 5.5-only for now. |
| Comment by Elena Stepanova [ 2013-05-01 ] |
|
See also |
| Comment by Elena Stepanova [ 2013-05-07 ] |
|
Fixed by the following revision: ------------------------------------------------------------ |
| Comment by Martijn Otto [ 2013-05-21 ] |
|
Could I get a diff of the fix so I can apply it to the current 5.5.30 series? I have been unable to find the commit in launchpad. |