Crash in Item_func::Item_func in maria-5.3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Critical
|
Igor Babaev |
Bug Description
Repeatable in maria-5.3, maria-5.3-mwl89. Not repeatable in maria-5.2. Backtrace:
#4 <signal handler called>
#5 0x08210797 in Item_func:
#6 0x0821085b in Item_int_
#7 0x08210ee3 in Item_bool_
#8 0x082110ed in Item_bool_
#9 0x08211321 in Item_func_
#10 0x0820f85e in Item_equal:
#11 0x0820fa91 in Item_equal:
#12 0x08321778 in update_
#13 0x083216ea in update_
#14 0x0832a6c0 in join_read_
#15 0x08310e42 in make_join_
#16 0x0830a44f in JOIN::optimize (this=0xae62a1b8) at sql_select.cc:992
#17 0x0830fd15 in mysql_select (thd=0xa8f3da8, rref_pointer_
order=0x0, group=0x0, having=0x0, proc_param=0x0, select_
at sql_select.cc:2687
#18 0x08338741 in mysql_explain_union (thd=0xa8f3da8, unit=0xa8f54a8, result=0xae613de0) at sql_select.cc:19883
#19 0x082a57be in execute_
#20 0x0829c786 in mysql_execute_
#21 0x082a7edf in mysql_parse (thd=0xa8f3da8, rawbuf=0xae612eb0 "EXPLAIN SELECT *\nFROM t2 \nWHERE ( 3 , 4 ) IN ( SELECT 5 , 6 )\nAND t2.f3 = t2.f1",
length=80, found_semicolon
#22 0x0829a40f in dispatch_command (command=COM_QUERY, thd=0xa8f3da8, packet=0xa94e901 "", packet_length=81) at sql_parse.cc:1215
#23 0x0829986d in do_command (thd=0xa8f3da8) at sql_parse.cc:904
#24 0x08296920 in handle_
#25 0x00821919 in start_thread () from /lib/libpthread
#26 0x00453cce in clone () from /lib/libc.so.6
test case. Table 2 needs to have 1 row
CREATE TABLE t1 (f11 int);
INSERT INTO t1 VALUES (2), (2);
CREATE TABLE t2 ( f1 int NOT NULL , f3 int);
INSERT IGNORE INTO t2 VALUES (2,7);
SELECT *
FROM t2
WHERE ( 3 , 4 ) IN ( SELECT 5 , 6 )
AND t2.f3 = t2.f1 ;
explain from 5.2. EXPLAIN on 5.3 crashes:
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible HAVING
Changed in maria: | |
milestone: | none → 5.3 |
Changed in maria: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
assignee: | nobody → Igor Babaev (igorb-seattle) |
Changed in maria: | |
status: | Confirmed → In Progress |
Changed in maria: | |
status: | In Progress → Fix Committed |
Changed in maria: | |
status: | Fix Committed → Fix Released |
See bug https:/ /bugs.launchpad .net/maria/ +bug/776285