Crash in do_copy_not_null with semijoin=on in maria-5.3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Medium
|
Sergey Petrunia |
Bug Description
Repeatable on maria-5.3, maria-5.
backtrace:
#3 <signal handler called>
#4 0x0000000000850244 in do_copy_not_null (copy=0xa55e708) at field_conv.cc:240
#5 0x00000000007568ae in store_key_
#6 0x0000000000638330 in store_key::copy (this=0xa55e6e0) at sql_select.h:1263
#7 0x000000000071d09d in cp_buffer_from_ref (thd=0xa4a23c8, table=0xa564158, ref=0xa5baca8) at sql_select.cc:18363
#8 0x0000000000728d83 in cmp_buffer_with_ref (thd=0xa4a23c8, table=0xa564158, tab_ref=0xa5baca8) at sql_select.cc:18345
#9 0x00000000007290fd in join_read_key2 (thd=0xa4a23c8, tab=0xa5baa90, table=0xa564158, table_ref=
#10 0x00000000007292db in join_read_key (tab=0xa5baa90) at sql_select.cc:15442
#11 0x0000000000733510 in sub_select (join=0xa5ad0a0, join_tab=0xa5baa90, end_of_
#12 0x000000000072a2c6 in evaluate_
#13 0x0000000000733560 in sub_select (join=0xa5ad0a0, join_tab=0xa5ba778, end_of_
#14 0x000000000072a2c6 in evaluate_
#15 0x0000000000733560 in sub_select (join=0xa5ad0a0, join_tab=0xa5ba460, end_of_
#16 0x000000000072a2c6 in evaluate_
#17 0x0000000000733560 in sub_select (join=0xa5ad0a0, join_tab=0xa5ba148, end_of_
#18 0x000000000072a2c6 in evaluate_
#19 0x0000000000733560 in sub_select (join=0xa5ad0a0, join_tab=0xa5b9e30, end_of_
#20 0x0000000000734894 in do_select (join=0xa5ad0a0, fields=0xa4a4e30, table=0x0, procedure=0x0) at sql_select.cc:14569
#21 0x0000000000754016 in JOIN::exec (this=0xa5ad0a0) at sql_select.cc:2665
#22 0x000000000074df6e in mysql_select (thd=0xa4a23c8, rref_pointer_
order=0x0, group=0x0, having=0x0, proc_param=0x0, select_
at sql_select.cc:2886
#23 0x0000000000754348 in handle_select (thd=0xa4a23c8, lex=0xa4a47a0, result=0xa5677e0, setup_tables_
#24 0x00000000006a1744 in execute_
#25 0x00000000006a33f7 in mysql_execute_
#26 0x00000000006ac18f in mysql_parse (thd=0xa4a23c8,
rawbuf=
#27 0x00000000006ad027 in dispatch_command (command=COM_QUERY, thd=0xa4a23c8, packet=0xa51d8a9 "", packet_length=187) at sql_parse.cc:1206
#28 0x00000000006ae635 in do_command (thd=0xa4a23c8) at sql_parse.cc:904
#29 0x00000000006990eb in handle_
#30 0x00000033b600673d in start_thread () from /lib64/
#31 0x00000033b58d40cd in clone () from /lib64/libc.so.6
optimizer switch in effect:
index_merge=
explain:
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY SQ1_alias1 index NULL PRIMARY 4 NULL 4 Using where; Using index; Start temporary
1 PRIMARY SQ1_alias2 index NULL PRIMARY 4 NULL 2 Using index
1 PRIMARY SQ1_alias3 index NULL PRIMARY 4 NULL 2 Using where; Using index
1 PRIMARY t1 eq_ref PRIMARY PRIMARY 4 test.SQ1_alias1.f1 1 Using index
1 PRIMARY t2 eq_ref PRIMARY PRIMARY 4 test.SQ1_alias1.f1 1 Using index; End temporary
test case:
SET SESSION optimizer_
CREATE TABLE t2 ( f1 int NOT NULL , PRIMARY KEY (f1)) ;
INSERT IGNORE INTO t2 VALUES (19),(20);
CREATE TABLE t1 ( f1 int NOT NULL , PRIMARY KEY (f1)) ;
INSERT IGNORE INTO t1 VALUES (21),(22)
SELECT *
FROM t2 , t1
WHERE t2.f1 IN
(
SELECT SQ1_alias1.f1
FROM t1 AS SQ1_alias1
LEFT JOIN t2 AS SQ1_alias2 JOIN t2 AS SQ1_alias3 ON SQ1_alias3.f1 ON SQ1_alias3.f1 )
AND t1.f1 = t2.f1 ;
Changed in maria: | |
milestone: | none → 5.3 |
assignee: | nobody → Sergey Petrunia (sergefp) |
Changed in maria: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
status: | Confirmed → Fix Committed |
Changed in maria: | |
status: | Fix Committed → Fix Released |