Assertion `!s->keys' failed with derived_with_keys=on , semijoin=off in maria-5.3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Critical
|
Igor Babaev |
Bug Description
assertion:
mysqld: table.cc:5235: bool st_table:
#6 0x00000033b58296e6 in __assert_fail () from /lib64/libc.so.6
#7 0x000000000070c263 in st_table:
#8 0x0000000000725493 in generate_
#9 0x00000000007256ce in generate_
#10 0x00000000007257f9 in sort_and_
#11 0x000000000073cd05 in JOIN::reoptimize (this=0x614f420, added_where=
#12 0x00000000008003ea in JOIN::choose_
#13 0x00000000007480c4 in make_join_
#14 0x000000000074a4a4 in JOIN::optimize (this=0x614f420) at sql_select.cc:1101
#15 0x000000000057a37a in st_select_
#16 0x0000000000800e00 in JOIN::optimize_
#17 0x000000000074bde5 in JOIN::optimize (this=0x61491f0) at sql_select.cc:1489
#18 0x000000000074dfc3 in mysql_select (thd=0x603d098, rref_pointer_
order=0x0, group=0x0, having=0x0, proc_param=0x0, select_
at sql_select.cc:2872
#19 0x0000000000754442 in handle_select (thd=0x603d098, lex=0x603f470, result=0x6104230, setup_tables_
#20 0x00000000006a1744 in execute_
#21 0x00000000006a33f7 in mysql_execute_
#22 0x00000000006ac18f in mysql_parse (thd=0x603d098,
rawbuf=
at sql_parse.cc:6083
#23 0x00000000006ad027 in dispatch_command (command=COM_QUERY, thd=0x603d098,
packet=
#24 0x00000000006ae635 in do_command (thd=0x603d098) at sql_parse.cc:904
#25 0x00000000006990eb in handle_
#26 0x00000033b600673d in start_thread () from /lib64/
#27 0x00000033b58d40cd in clone () from /lib64/libc.so.6
EXPLIN: crashes
minimal optimizer_switch required: semijoin=
full optimizer switch in effect:
index_merge=
test case:
SET SESSION optimizer_
SELECT @@optimizer_switch;
CREATE TABLE t1 (f1 int, f3 int) ;
INSERT INTO t1 VALUES (2,2),(3,3);
CREATE TABLE t2 (f1 int) ;
INSERT INTO t2 VALUES (1),(1);
CREATE TABLE t3 (f1 int) ;
INSERT INTO t3 VALUES (1),(1);
CREATE VIEW v1 AS SELECT f1 , MAX(f3) AS f3 FROM t1 GROUP BY f1;
SELECT * FROM t3
WHERE (f1) IN (
SELECT v1.f1
FROM v1 , t2
WHERE t2.f1 = v1.f3
);
Changed in maria: | |
milestone: | none → 5.3 |
assignee: | nobody → Igor Babaev (igorb-seattle) |
Changed in maria: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
Changed in maria: | |
status: | Confirmed → In Progress |
Changed in maria: | |
status: | In Progress → Fix Committed |
Changed in maria: | |
status: | Fix Committed → Fix Released |