Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
I consider it to be different from MDEV-4367 since in revno 3515 it's supposed to be fixed
revision-id: igor@askmonty.org-20130404065014-v321xub8xct3udms
|
revno: 3515
|
branch-nick: maria-10.0-mwl253
|
--source include/have_innodb.inc
|
|
SET optimizer_use_condition_selectivity=3; |
SET use_stat_tables=PREFERABLY; |
|
CREATE TABLE t1 (a INT, b INT, INDEX(a)) ENGINE=InnoDB; |
|
CREATE TABLE t2 (c INT) ENGINE=InnoDB; |
INSERT INTO t2 VALUES (1),(2),(3),(4),(5),(6),(7),(8); |
|
ANALYZE TABLE t1, t2; |
FLUSH TABLES;
|
|
SELECT * FROM t1, t2 WHERE a > 9; |
mysqld: /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:6673: bool greedy_search(JOIN*, table_map, uint, uint, uint): Assertion `join->best_read < double(1.79769313486231570815e+308L)' failed.
|
130405 1:01:52 [ERROR] mysqld got signal 6 ;
|
#7 0x00007fd02ac22192 in __GI___assert_fail (assertion=0xd69968 "join->best_read < double(1.79769313486231570815e+308L)", file=0xd69020 "/data/bzr/maria-10.0-mwl253/sql/sql_select.cc", line=6673, function=0xd6c220 "bool greedy_search(JOIN*, table_map, uint, uint, uint)") at assert.c:103
|
#8 0x00000000006546c0 in greedy_search (join=0x7fcff40890f0, remaining_tables=3, search_depth=62, prune_level=1, use_cond_selectivity=3) at /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:6673
|
#9 0x0000000000653c70 in choose_plan (join=0x7fcff40890f0, join_tables=3) at /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:6242
|
#10 0x000000000064dbbc in make_join_statistics (join=0x7fcff40890f0, tables_list=..., conds=0x7fcff4088ea0, keyuse_array=0x7fcff40893f8) at /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:3899
|
#11 0x0000000000644c03 in JOIN::optimize_inner (this=0x7fcff40890f0) at /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:1306
|
#12 0x0000000000643bd2 in JOIN::optimize (this=0x7fcff40890f0) at /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:1008
|
#13 0x000000000064b6df in mysql_select (thd=0x3e64a60, rref_pointer_array=0x3e67998, tables=0x7fcff4088108, wild_num=1, fields=..., conds=0x7fcff4088ea0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fcff40890d0, unit=0x3e67060, select_lex=0x3e67738) at /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:3220
|
#14 0x0000000000642041 in handle_select (thd=0x3e64a60, lex=0x3e66fa8, result=0x7fcff40890d0, setup_tables_done_option=0) at /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:376
|
#15 0x000000000061a185 in execute_sqlcom_select (thd=0x3e64a60, all_tables=0x7fcff4088108) at /data/bzr/maria-10.0-mwl253/sql/sql_parse.cc:4797
|
#16 0x000000000061278e in mysql_execute_command (thd=0x3e64a60) at /data/bzr/maria-10.0-mwl253/sql/sql_parse.cc:2266
|
#17 0x000000000061ca26 in mysql_parse (thd=0x3e64a60, rawbuf=0x7fcff4087f08 "SELECT * FROM t1, t2 WHERE a > 9", length=32, parser_state=0x7fd024f48500) at /data/bzr/maria-10.0-mwl253/sql/sql_parse.cc:5920
|
#18 0x000000000060fab2 in dispatch_command (command=COM_QUERY, thd=0x3e64a60, packet=0x3e69f61 "SELECT * FROM t1, t2 WHERE a > 9", packet_length=32) at /data/bzr/maria-10.0-mwl253/sql/sql_parse.cc:1091
|
#19 0x000000000060ece0 in do_command (thd=0x3e64a60) at /data/bzr/maria-10.0-mwl253/sql/sql_parse.cc:810
|
#20 0x00000000007222fe in do_handle_one_connection (thd_arg=0x3e64a60) at /data/bzr/maria-10.0-mwl253/sql/sql_connect.cc:1266
|
#21 0x0000000000721ce9 in handle_one_connection (arg=0x3e64a60) at /data/bzr/maria-10.0-mwl253/sql/sql_connect.cc:1181
|
#22 0x0000000000c9d5a8 in pfs_spawn_thread (arg=0x3e118f0) at /data/bzr/maria-10.0-mwl253/storage/perfschema/pfs.cc:1015
|
#23 0x00007fd02b9f2e9a in start_thread (arg=0x7fd024f49700) at pthread_create.c:308
|
EXPLAIN also crashes.
Attachments
Issue Links
- relates to
-
MDEV-4145 Take into account the selectivity of single-table range predicates on non-indexed columns when searching for the best execution plan
- Closed