Crash in Expression_cache_tmptable::init with subquery_cache=on,in_to_exists=on
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
High
|
Oleksandr "Sanja" Byelkin |
Bug Description
backtrace:
#4 0x00000000008f8131 in Expression_
#5 0x00000000008f8673 in Expression_
#6 0x000000000059556d in Item_cache_
#7 0x0000000000595938 in Item_cache_
#8 0x00000000005e60fc in Item_cond_
#9 0x0000000000729dd5 in evaluate_
#10 0x00000000007332c6 in sub_select (join=0x1e81eb0, join_tab=0x1e38638, end_of_
#11 0x00000000007345fa in do_select (join=0x1e81eb0, fields=0x1db7910, table=0x0, procedure=0x0) at sql_select.cc:14539
#12 0x0000000000753d52 in JOIN::exec (this=0x1e81eb0) at sql_select.cc:2664
#13 0x000000000074dcaa in mysql_select (thd=0x1db4ed8, rref_pointer_
order=0x0, group=0x0, having=0x0, proc_param=0x0, select_
at sql_select.cc:2885
#14 0x0000000000754084 in handle_select (thd=0x1db4ed8, lex=0x1db7280, result=0x1e36da8, setup_tables_
#15 0x00000000006a1554 in execute_
#16 0x00000000006a3207 in mysql_execute_
#17 0x00000000006abf9f in mysql_parse (thd=0x1db4ed8,
rawbuf=
found_
#18 0x00000000006ace37 in dispatch_command (command=COM_QUERY, thd=0x1db4ed8, packet=0x1df2619 "", packet_length=90) at sql_parse.cc:1206
#19 0x00000000006ae449 in do_command (thd=0x1db4ed8) at sql_parse.cc:904
#20 0x0000000000698efb in handle_
#21 0x00000033b600673d in start_thread () from /lib64/
#22 0x00000033b58d40cd in clone () from /lib64/libc.so.6
explain:
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t2 system NULL NULL NULL NULL 1
1 PRIMARY t3 ALL NULL NULL NULL NULL 2 Using where
2 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 2 Using where
minimal optimizer_switch required to reproduce: subquery_
full optimizer switch in effect: index_merge=
test case:
CREATE TABLE t1 ( f3 int) ;
INSERT INTO t1 VALUES (0),(0);
CREATE TABLE t3 ( f3 int) ;
INSERT INTO t3 VALUES (0),(0);
CREATE TABLE t2 ( f1 int, f2 int, f3 int) ;
INSERT INTO t2 VALUES (7,0,0);
SELECT *
FROM t2, t3
WHERE t2.f2 OR t3.f3 IN
(
SELECT t2.f2
FROM t1
WHERE t2.f1 OR t2.f3 );
bzr version-info:
revision-id: <email address hidden>
date: 2011-06-21 18:17:28 -0700
build-date: 2011-06-22 16:39:53 +0300
revno: 3054
branch-nick: maria-5.3
Changed in maria: | |
assignee: | nobody → Oleksandr "Sanja" Byelkin (sanja-byelkin) |
milestone: | none → 5.3 |
Changed in maria: | |
status: | New → In Progress |
Changed in maria: | |
importance: | Undecided → High |
Changed in maria: | |
status: | In Progress → Fix Committed |
Changed in maria: | |
status: | Fix Committed → Fix Released |