Crash in Item_equal::contains with maria-5.3-mwl89
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
High
|
Timour Katchaounov |
Bug Description
The following query:
SELECT table1 .`col_time_key`
FROM C table1 JOIN ( A table2 JOIN CC table3 ON table2 .`col_int_key` ) ON table2 .`col_int_key`
WHERE table3 .`col_int_nokey` <= SOME (
SELECT SUBQUERY1_t1 .`col_int_nokey`
FROM CC SUBQUERY1_t1 RIGHT JOIN CC SUBQUERY1_t2 STRAIGHT_JOIN C SUBQUERY1_t3 ON SUBQUERY1_t3 .`col_varchar_key` = SUBQUERY1_t2 .`col_varchar_
WHERE table3 .`pk` ) ;
produces the following stack trace:
#3 <signal handler called>
#4 0x00000000005fbdf8 in Item_equal:
#5 0x00000000005aec77 in Item_field:
#6 0x000000000072e568 in eliminate_
#7 0x000000000072eb49 in substitute_
at sql_select.cc:9490
#8 0x0000000000717786 in JOIN::optimize (this=0x7febf41
#9 0x000000000058e81b in st_select_
#10 0x00000000007edb7f in JOIN::optimize_
#11 0x0000000000718aca in JOIN::optimize (this=0x7febf41
#12 0x000000000071cc44 in mysql_select (thd=0x34c3e30, rref_pointer_
og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_
at sql_select.cc:2578
#13 0x0000000000714f28 in handle_select (thd=0x34c3e30, lex=0x34c61a0, result=
#14 0x00000000006a7c91 in execute_
#15 0x000000000069ebb5 in mysql_execute_
#16 0x00000000006aa308 in mysql_parse (thd=0x34c3e30,
inBuf=
#17 0x000000000069c426 in dispatch_command (command=COM_QUERY, thd=0x34c3e30,
packet=
#18 0x000000000069b86d in do_command (thd=0x34c3e30) at sql_parse.cc:890
#19 0x0000000000698411 in handle_
#20 0x000000307ba07761 in start_thread (arg=0x7fec080c
#21 0x000000307b6e150d in clone () at ../sysdeps/
maria-5.3 is not affected
Related branches
Changed in maria: | |
milestone: | none → 5.1 |
milestone: | 5.1 → 5.3 |
assignee: | nobody → Timour Katchaounov (timour) |
Changed in maria: | |
importance: | Undecided → High |
Changed in maria: | |
status: | In Progress → Fix Released |
Philip, please post the DDL for this test.