[MDEV-3141] LP:611622 - Crash in JOIN::optimize called from subselect_hash_sj_engine::exec with semijoin=off Created: 2010-07-30 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Timour Katchaounov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
With semijoin=off, the following query: PREPARE st1 FROM "SELECT table1 .`col_varchar_key` crashes as follows (note the presence of subselect_hash_sj_engine in the backtrace): #3 0x0827e9e0 in handle_segfault (sig=11) at mysqld.cc:2703 EXPLAIN: id select_type table type possible_keys key key_len ref rows Extra |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2010-07-30 ] |
|
Re: Crash in JOIN::optimize called from subselect_hash_sj_engine::exec with semijoin=off SET @@optimizer_switch = 'semijoin=off'; CREATE TABLE `C` ( INSERT INTO `BB` VALUES (10,8,NULL); PREPARE st1 FROM "SELECT table1 .`col_varchar_key` EXECUTE st1; |
| Comment by Timour Katchaounov (Inactive) [ 2010-10-24 ] |
|
Re: Crash in JOIN::optimize called from subselect_hash_sj_engine::exec with semijoin=off Therefore I will mark the bug as fixed. The test case for the bug will be added |
| Comment by Timour Katchaounov (Inactive) [ 2010-11-23 ] |
|
Re: Crash in JOIN::optimize called from subselect_hash_sj_engine::exec with semijoin=off In 5.3 main: In 5.3-MWL#89 However, execution in MWL#89 is wrong as well, because the |
| Comment by Timour Katchaounov (Inactive) [ 2010-11-25 ] |
|
Re: Crash in JOIN::optimize called from subselect_hash_sj_engine::exec with semijoin=off CREATE TABLE t1 (c1 int); CREATE TABLE t2 (c2 int); set @@optimizer_switch='semijoin=off'; PREPARE st1 FROM " EXECUTE st1; DROP TABLE t1, t2; |
| Comment by Rasmus Johansson (Inactive) [ 2010-11-29 ] |
|
Launchpad bug id: 611622 |