Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
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.
|
130408 2:47:35 [ERROR] mysqld got signal 6 ;
|
#6 0x00007f0738c480ee in __assert_fail_base (fmt=<optimized out>, assertion=0xd8dc48 "join->best_read < double(1.79769313486231570815e+308L)", file=0xd8d300 "/data/bzr/maria-10.0-mwl253/sql/sql_select.cc", line=<optimized out>, function=<optimized out>) at assert.c:94
|
#7 0x00007f0738c48192 in __GI___assert_fail (assertion=0xd8dc48 "join->best_read < double(1.79769313486231570815e+308L)", file=0xd8d300 "/data/bzr/maria-10.0-mwl253/sql/sql_select.cc", line=6673, function=0xd90500 "bool greedy_search(JOIN*, table_map, uint, uint, uint)") at assert.c:103
|
#8 0x00000000006577c2 in greedy_search (join=0x7f071c1134f0, remaining_tables=7, search_depth=62, prune_level=1, use_cond_selectivity=4) at /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:6673
|
#9 0x0000000000656d63 in choose_plan (join=0x7f071c1134f0, join_tables=7) at /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:6242
|
#10 0x0000000000650c6d in make_join_statistics (join=0x7f071c1134f0, tables_list=..., conds=0x7f071c011950, keyuse_array=0x7f071c113828) at /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:3899
|
#11 0x0000000000647b0d in JOIN::optimize_inner (this=0x7f071c1134f0) at /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:1306
|
#12 0x0000000000646ab8 in JOIN::optimize (this=0x7f071c1134f0) at /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:1008
|
#13 0x000000000064e76d in mysql_select (thd=0x28db5c8, rref_pointer_array=0x28de570, tables=0x7f071c037000, wild_num=1, fields=..., conds=0x7f071c03bb40, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f071c1021c0, unit=0x28ddbc8, select_lex=0x28de2c0) at /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:3220
|
#14 0x0000000000644f23 in handle_select (thd=0x28db5c8, lex=0x28ddb10, result=0x7f071c1021c0, setup_tables_done_option=0) at /data/bzr/maria-10.0-mwl253/sql/sql_select.cc:376
|
#15 0x000000000061c3d4 in execute_sqlcom_select (thd=0x28db5c8, all_tables=0x7f071c037000) at /data/bzr/maria-10.0-mwl253/sql/sql_parse.cc:4797
|
#16 0x00000000006149d4 in mysql_execute_command (thd=0x28db5c8) at /data/bzr/maria-10.0-mwl253/sql/sql_parse.cc:2266
|
#17 0x000000000061ec76 in mysql_parse (thd=0x28db5c8, rawbuf=0x7f071c042470 "SELECT * FROM t1, t2 WHERE 'garcia' IN ( SELECT MIN( ln ) FROM t3 WHERE ln = 'sun' )", length=84, parser_state=0x7f072a3124f0) at /data/bzr/maria-10.0-mwl253/sql/sql_parse.cc:5920
|
#18 0x0000000000611cf8 in dispatch_command (command=COM_QUERY, thd=0x28db5c8, packet=0x28e05a9 "SELECT * FROM t1, t2 WHERE 'garcia' IN ( SELECT MIN( ln ) FROM t3 WHERE ln = 'sun' )", packet_length=84) at /data/bzr/maria-10.0-mwl253/sql/sql_parse.cc:1091
|
#19 0x0000000000610f26 in do_command (thd=0x28db5c8) at /data/bzr/maria-10.0-mwl253/sql/sql_parse.cc:810
|
#20 0x0000000000729f64 in do_handle_one_connection (thd_arg=0x28db5c8) at /data/bzr/maria-10.0-mwl253/sql/sql_connect.cc:1266
|
#21 0x000000000072994f in handle_one_connection (arg=0x28db5c8) at /data/bzr/maria-10.0-mwl253/sql/sql_connect.cc:1181
|
#22 0x0000000000c59fe6 in pfs_spawn_thread (arg=0x283b9f8) at /data/bzr/maria-10.0-mwl253/storage/perfschema/pfs.cc:1015
|
#23 0x00007f0739a18e9a in start_thread (arg=0x7f072a313700) at pthread_create.c:308
|
#24 0x00007f0738d0ccbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
revision-id: igor@askmonty.org-20130407001851-v1qnlyflz2xcx8fh
|
revno: 3523
|
branch-nick: maria-10.0-mwl253
|
SET use_stat_tables=PREFERABLY; |
SET optimizer_use_condition_selectivity=4; |
SET histogram_size=50; |
SET histogram_type=SINGLE_PREC_HB; |
|
CREATE TABLE t1 (a INT) ENGINE=MyISAM; |
INSERT INTO t1 VALUES (8),(9),(6); |
|
CREATE TABLE t2 (b INT) ENGINE=MyISAM; |
INSERT INTO t2 VALUES (8),(1),(8),(9),(24),(6),(1),(6),(2),(4); |
|
CREATE TABLE t3 (ln VARCHAR(16)) ENGINE=MyISAM; |
INSERT INTO t3 VALUES |
('smith'),('black'),('white'),('jones'), |
('brown'),('taylor'),('anderson'),('taylor'); |
|
ANALYZE TABLE t1, t2, t3; |
FLUSH TABLES;
|
|
SELECT * FROM t1, t2 WHERE 'garcia' IN ( SELECT MIN( ln ) FROM t3 WHERE ln = 'sun' ); |
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