Bug #50052 | --optimizer-search-depth=63 makes mysql server crash | ||
---|---|---|---|
Submitted: | 4 Jan 2010 14:27 | Modified: | 2 Mar 2010 9:26 |
Reporter: | Guilhem Bichot | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 6.0 | OS: | Linux |
Assigned to: | Roy Lyseng | CPU Architecture: | Any |
Tags: | regression |
[4 Jan 2010 14:27]
Guilhem Bichot
[4 Jan 2010 16:25]
Valeriy Kravchuk
With current mysql-6.0-codebase on Mac OS X I've got the following tests failed when run as explained here: ... main.subselect main.subselect3 main.subselect3_jcl6 main.subselect4 main.subselect_sj main.subselect_sj_jcl6 sys_vars.join_buffer_size_basic_32 sys_vars.optimizer_search_depth_basic sys_vars.query_cache_size_basic_32 sys_vars.thread_stack_basic sys_vars.transaction_prealloc_size_basic_32 main.bug48315 main.subselect_sj2 main.subselect_sj2_jcl6 main.implicit_commit The most common stack trace looks a bit different though: stack_bottom = 0xb0594f64 thread_stack 0x30c00 0 mysqld 0x005be77b my_print_stacktrace + 45 1 mysqld 0x00101322 handle_segfault + 918 2 libSystem.B.dylib 0x940472bb _sigtramp + 43 3 ??? 0xffffffff 0x0 + 4294967295 4 mysqld 0x001b70ed _Z23is_indexed_agg_distinctP4JOINP4ListI10Item_fieldE + 8785 5 mysqld 0x001b7c87 _ZN4JOIN8optimizeEv + 2559 6 mysqld 0x001bffe0 _Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex + 674 7 mysqld 0x001ba690 _Z19mysql_explain_unionP3THDP18st_select_lex_unitP13select_result + 928 8 mysqld 0x00112e95 _Z20prepare_schema_tableP3THDP3LEXP11Table_ident18enum_schema_tables + 1555 9 mysqld 0x00119550 _Z21mysql_execute_commandP3THD + 3158 10 mysqld 0x00122f74 _Z11mysql_parseP3THDPKcjPS2_ + 748 11 mysqld 0x00123ba8 _Z16dispatch_command19enum_server_commandP3THDPcj + 2672 12 mysqld 0x00125071 _Z10do_commandP3THD + 621 13 mysqld 0x0011078f handle_one_connection + 443 14 libSystem.B.dylib 0x9400c095 _pthread_start + 321 15 libSystem.B.dylib 0x9400bf52 thread_start + 34 But still we obviously have a problem with optimizer in 6.0.14-bzr now.
[7 Jan 2010 13:48]
Guilhem Bichot
I ran the full test suite against next-mr-bugfixing, no bug there. It's 6.0-specific.
[28 Jan 2010 8:46]
Roy Lyseng
Created WL#5252 to deprecate this feature in a later version. If deprecation is successful, this bug will be closed as "will not fix".
[2 Mar 2010 9:26]
Roy Lyseng
Deprecation of feature pushed into mysql-next-mr-bugfixing as WL#5252. Removal of feature will be followed up through WL#5265. Hence, there is no longer a need to fix this problem.
[26 Apr 2010 14:46]
Guilhem Bichot
another testcase with alfranio.correia@sun.com-20100426092226-bnkzpjs8uqkl7l16 : create table t0 (a int); insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); # # Multi-column sj-materialization with lookups # create table t1 (a int, b int); insert into t1 select a,a from t0; create table t2 (a int, b int); insert into t2 select A.a + 10*B.a, A.a + 10*B.a from t0 A, t0 B; set @@optimizer_search_depth=63; explain select * from t1 where (a,b) in (select a,b from t2); drop table t0, t1, t2; (inspired from subselect3.test)