Bug #2448 | SELECT query crashes mysql | ||
---|---|---|---|
Submitted: | 19 Jan 2004 13:44 | Modified: | 4 Feb 2004 0:37 |
Reporter: | Corin Langosch | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 4.0.17 | OS: | Linux (debian linux 2.4.23 686) |
Assigned to: | Victor Vagin | CPU Architecture: | Any |
[19 Jan 2004 13:44]
Corin Langosch
[19 Jan 2004 14:08]
Dean Ellis
Verified against 4.0.18 using the CREATE/SELECT statements supplied; thank you. Crash occurs with or without EXPLAIN, producing the same stack trace: 0x80fee63 handle_segfault + 645 0xffffe420 _end + -137828520 (nil) 0x815b0f7 _Z6key_orP7SEL_ARGS0_ + 2605 0x815aebc _Z6key_orP7SEL_ARGS0_ + 2034 0x815a1cf _Z7tree_orP13st_qsel_paramP8SEL_TREES2_ + 121 0x81595af _Z11get_mm_treeP13st_qsel_paramP4Item + 1029 0x8159607 _Z11get_mm_treeP13st_qsel_paramP4Item + 1117 0x8158cd1 _ZN10SQL_SELECT17test_quick_selectEP3THDmmmb + 729 0x8137bcb _Z22get_quick_record_countP3THDP10SQL_SELECTP8st_tablemm + 77 0x812c360 _Z20make_join_statisticsP4JOINP13st_table_listP4ItemP16st_dynamic_arr$0x812a17a _Z12mysql_selectP3THDP13st_table_listR4ListI4ItemEPS4_P8st_orderS9_S7$0x8129bc5 _Z13handle_selectP3THDP6st_lexP13select_result + 169 0x810be13 _Z21mysql_execute_commandv + 781 0x81109e0 _Z11mysql_parseP3THDPcj + 334 0x810ae3f _Z16dispatch_command19enum_server_commandP3THDPcj + 1167 0x810a965 _Z10do_commandP3THD + 125 0x810a21f handle_one_connection + 855 0x40158748 _end + 937331328 0x4035ec4a _end + 939454338
[26 Jan 2004 4:59]
Victor Vagin
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html Additional info: the minimal test case was: CREATE TABLE user ( age int not null, sex int not null, KEY online_age_sex (age,sex) ); -- age | sex ------------------------------+------ INSERT INTO user VALUES ( 47, 1 ); INSERT INTO user VALUES ( 70, 1 ); SELECT * FROM user WHERE ( ( sex =1 AND age BETWEEN 14 AND 21 ) OR ( sex =2 AND age BETWEEN 16 AND 18 ) OR ( sex =3 AND age BETWEEN 15 AND 19 ) );
[26 Jan 2004 5:01]
Victor Vagin
I'm sorry, previous modification (closing) was wrong.. so as fix isn't approved yet
[4 Feb 2004 0:37]
Michael Widenius
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html Additional info: The fix for this will be in 4.0.18 and 4.1.2