[MDEV-2626] LP:1001117 - Crash on a simple select that uses a temptable view Created: 2012-05-18 Updated: 2014-06-20 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical |
| Reporter: | Igor Babaev | Assignee: | Timour Katchaounov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following test case causes a crash of the server in MariaDB 5.5: CREATE TABLE t1(a INT PRIMARY KEY) PARTITION BY LINEAR KEY (a); (see also bug #12330344 from mysql code line) |
| Comments |
| Comment by Igor Babaev [ 2012-05-18 ] |
|
Re: Crash on a simple select that uses a temptable view |
| Comment by Sergei Petrunia [ 2012-05-18 ] |
|
Re: Crash on a simple select that uses a temptable view 1. [As mentioned in the original bug] Subquery is evaluated while thd->mem_root is pointing to range optimizer's temporary MEM_ROOT 2. Subquery is evaluated by the optimizer. We've had a goal of this not happening, apparently there are still cases where it does happen. |
| Comment by Sergei Petrunia [ 2012-05-18 ] |
|
Re: Crash on a simple select that uses a temptable view 1. Backport the original fix. |
| Comment by Sergei Petrunia [ 2012-05-18 ] |
|
Re: Crash on a simple select that uses a temptable view |
| Comment by Sergei Petrunia [ 2012-05-23 ] |
|
Re: Crash on a simple select that uses a temptable view |
| Comment by Timour Katchaounov (Inactive) [ 2012-05-23 ] |
|
Re: Crash on a simple select that uses a temptable view Unlike MariaDB, MySQL still has lazy optimization. As a result, when So with respect to this specific bug, there is nothing to fix. |
| Comment by Rasmus Johansson (Inactive) [ 2012-05-24 ] |
|
Launchpad bug id: 1001117 |