Assertion join->best_read < ((double)1.79...e+308L) failed at bool greedy_search(JOIN*, table_map, uint, uint) with semijoin_with_cache=on and STRAIGHT_JOIN
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Critical
|
Igor Babaev |
Bug Description
mysqld: sql_select.cc:6050: bool greedy_
#6 0x00007fb9af92a235 in __assert_fail () from /lib64/libc.so.6
#7 0x000000000077edf5 in greedy_search (join=0x1d41880, remaining_tables=4,
search_
#8 0x000000000077e5d9 in choose_plan (join=0x1d41880, join_tables=4)
at sql_select.cc:5704
#9 0x0000000000778b7a in make_join_
tables_
at sql_select.cc:3592
#10 0x00000000007702f0 in JOIN::optimize (this=0x1d41880) at sql_select.cc:1175
#11 0x0000000000776c07 in mysql_select (thd=0x1c244d8,
rref_
conds=
proc_param=0x0, select_
unit=0x1c26978, select_
#12 0x000000000076d5dd in handle_select (thd=0x1c244d8, lex=0x1c268d8,
result=
#13 0x00000000006fc744 in execute_
all_
#14 0x00000000006f381a in mysql_execute_
at sql_parse.cc:2250
#15 0x00000000006ff124 in mysql_parse (thd=0x1c244d8,
rawbuf=
#16 0x00000000006f1032 in dispatch_command (command=COM_QUERY, thd=0x1c244d8,
packet=
#17 0x00000000006f0366 in do_command (thd=0x1c244d8) at sql_parse.cc:916
#18 0x00000000006ed2bc in handle_
at sql_connect.cc:1191
#19 0x00007fb9b05e5a4f in start_thread () from /lib64/
#20 0x00007fb9af9cf82d in clone () from /lib64/libc.so.6
bzr version-info
revision-id: <email address hidden>
date: 2011-12-08 04:22:38 +0400
build-date: 2011-12-08 15:50:11 +0200
revno: 3337
branch-nick: maria-5.3
Not reproducible on 3315.
Minimal switch: semijoin_
Full switch: index_merge=
t3 needs to be Aria or MyISAM, but not InnoDB.
EXPLAIN also fails.
Test case:
SET optimizer_
CREATE TABLE t1 ( a INT, UNIQUE KEY(a) );
INSERT INTO t1 VALUES (1),(2);
CREATE TABLE t2 ( b INT );
INSERT INTO t2 VALUES (7);
CREATE TABLE t3 ( c INT ) ENGINE=Aria;
SELECT * FROM t1 WHERE a IN ( SELECT b FROM t2 STRAIGHT_JOIN t3 );
Changed in maria: | |
milestone: | none → 5.3 |
assignee: | nobody → Sergey Petrunia (sergefp) |
summary: |
Assertion join->best_read < ((double)1.79...e+308L) failed at bool - greedy_search(JOIN*, table_map, uint, uint) + greedy_search(JOIN*, table_map, uint, uint) with semijoin_with_cache=on + and STRAIGHT_JOIN |
description: | updated |
Changed in maria: | |
status: | Fix Committed → Fix Released |
The cause of this bug is the same as the cause of bug #901709.