Server crashes in embedding_sjm on a simple 1-table select with AND and OR
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Critical
|
Sergey Petrunia |
Bug Description
The following query started crashing between revisions 3472 and 3474 (probably with revision 3474):
SELECT * FROM t1
WHERE a = d AND ( b = 50 AND b = d OR a = c );
#3 <signal handler called>
#4 0x000000000078e031 in embedding_sjm (item=0x0) at sql_select.cc:11439
#5 0x000000000078e2e3 in eliminate_
upper_
#6 0x000000000078eade in substitute_
cond=0x1cdffe8, cond_equal=
at sql_select.cc:11773
#7 0x000000000078e862 in substitute_
cond=0x1cb45e8, cond_equal=
at sql_select.cc:11737
#8 0x000000000078e862 in substitute_
cond=0x1cb46f0, cond_equal=
at sql_select.cc:11737
#9 0x00000000007731f0 in JOIN::optimize (this=0x1cb48d8) at sql_select.cc:1231
#10 0x00000000007794db in mysql_select (thd=0x1c2e988,
rref_
conds=
select_
select_
#11 0x0000000000770139 in handle_select (thd=0x1c2e988, lex=0x1c30dd0,
result=
#12 0x00000000006fe94c in execute_
all_
#13 0x00000000006f5a09 in mysql_execute_
at sql_parse.cc:2284
#14 0x0000000000701327 in mysql_parse (thd=0x1c2e988,
rawbuf=
#15 0x00000000006f31b8 in dispatch_command (command=COM_QUERY, thd=0x1c2e988,
packet=
#16 0x00000000006f24ec in do_command (thd=0x1c2e988) at sql_parse.cc:923
#17 0x00000000006ef3ca in handle_
at sql_connect.cc:1193
#18 0x00007fdec5720a4f in start_thread () from /lib64/
bzr version-info
revision-id: <email address hidden>
date: 2012-03-26 21:38:24 +0400
build-date: 2012-03-27 04:45:31 +0300
revno: 3478
As said before, also reproducible on revno 3474, but not on 3472.
Not reproducible on MariaDB 5.5 revno 3353.
EXPLAIN also crashes.
Minimal optimizer_switch: none required (crashes with all OFFs).
Full optimizer_switch (default): index_merge=
Test case:
CREATE TABLE t1 ( a INT, b INT, c INT, d INT );
INSERT INTO t1 VALUES (4,2,8,
SELECT * FROM t1
WHERE a = d AND ( b = 50 AND b = d OR a = c );
# End of test case
Changed in maria: | |
status: | New → In Progress |
Changed in maria: | |
status: | In Progress → Fix Committed |
tags: | added: crash |
tags: | added: optimizer |
Changed in maria: | |
status: | Fix Committed → Fix Released |