Bug #35174 | Query w/ Many Subqueries and Views Causes Crash | ||
---|---|---|---|
Submitted: | 10 Mar 2008 0:00 | Modified: | 28 May 2008 15:09 |
Reporter: | Stephen Johnston | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 5.0.37 | OS: | Linux (Redhat) |
Assigned to: | CPU Architecture: | Any |
[10 Mar 2008 0:00]
Stephen Johnston
[10 Mar 2008 0:01]
Stephen Johnston
Stack traces for two crashes follow: First Stack Trace: 0x8181560 handle_segfault + 656 0x81cb0be store_val_in_field(Field*, Item*, enum_check_fields) + 238 0x81cb1eb store_val_in_field(Field*, Item*, enum_check_fields) + 539 0x81cb1eb store_val_in_field(Field*, Item*, enum_check_fields) + 539 0x81cba79 JOIN::remove_subq_pushed_predicates(Item**) + 1785 0x81dec0e JOIN::optimize() + 2654 0x8153fcf subselect_single_select_engine::exec() + 655 0x815324e Item_subselect::exec() + 46 0x8153455 Item_singlerow_subselect::val_real() + 21 0x812a657 Item_func_ifnull::real_op() + 23 0x811e0eb Item_func_numhybrid::val_real() + 59 0x8102832 Item::save_in_field(Field*, bool) + 482 0x810c4a0 Item_result_field::save_in_result_field(bool) + 32 0x81cc5b5 copy_funcs(Item**) + 37 0x81d830a create_virtual_tmp_table(THD*, List<create_field>&) + 2234 0x81d89e8 create_virtual_tmp_table(THD*, List<create_field>&) + 3992 0x81d8a8c sub_select(JOIN*, st_join_table*, bool) + 108 0x81d89e8 create_virtual_tmp_table(THD*, List<create_field>&) + 3992 0x81d8a8c sub_select(JOIN*, st_join_table*, bool) + 108 0x81d89e8 create_virtual_tmp_table(THD*, List<create_field>&) + 3992 0x81d8a8c sub_select(JOIN*, st_join_table*, bool) + 108 0x81d89e8 create_virtual_tmp_table(THD*, List<create_field>&) + 3992 0x81d8a8c sub_select(JOIN*, st_join_table*, bool) + 108 0x81d89e8 create_virtual_tmp_table(THD*, List<create_field>&) + 3992 0x81d8a8c sub_select(JOIN*, st_join_table*, bool) + 108 0x81d89e8 create_virtual_tmp_table(THD*, List<create_field>&) + 3992 0x81d8a8c sub_select(JOIN*, st_join_table*, bool) + 108 0x81d8d14 sub_select(JOIN*, st_join_table*, bool) + 756 0x81e400f JOIN::exec() + 2015 0x81e5d60 mysql_select(THD*, Item***, st_table_list*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_ord + 368 0x81e668a handle_select(THD*, st_lex*, select_result*, unsigned long) + 314 0x819825f mysql_execute_command(THD*) + 6527 0x819dc4f mysql_parse(THD*, char*, unsigned int) + 495 0x819e1d5 dispatch_command(enum_server_command, THD*, char*, unsigned int) + 1269 0x819f66d do_command(THD*) + 173 0x81a01a0 handle_one_connection + 2512 0x73245b (?) 0x64224e (?) Second Stack Trace: 0x8181560 handle_segfault + 656 0x81cb0be store_val_in_field(Field*, Item*, enum_check_fields) + 238 0x81cb1eb store_val_in_field(Field*, Item*, enum_check_fields) + 539 0x81cb1eb store_val_in_field(Field*, Item*, enum_check_fields) + 539 0x81cba79 JOIN::remove_subq_pushed_predicates(Item**) + 1785 0x81dec0e JOIN::optimize() + 2654 0x8153fcf subselect_single_select_engine::exec() + 655 0x815324e Item_subselect::exec() + 46 0x8153455 Item_singlerow_subselect::val_real() + 21 0x812a657 Item_func_ifnull::real_op() + 23 0x811e0eb Item_func_numhybrid::val_real() + 59 0x8102832 Item::save_in_field(Field*, bool) + 482 0x810c4a0 Item_result_field::save_in_result_field(bool) + 32 0x81cc5b5 copy_funcs(Item**) + 37 0x81d830a create_virtual_tmp_table(THD*, List<create_field>&) + 2234 0x81d89e8 create_virtual_tmp_table(THD*, List<create_field>&) + 3992 0x81d8a8c sub_select(JOIN*, st_join_table*, bool) + 108 0x81d89e8 create_virtual_tmp_table(THD*, List<create_field>&) + 3992 0x81d8a8c sub_select(JOIN*, st_join_table*, bool) + 108 0x81d89e8 create_virtual_tmp_table(THD*, List<create_field>&) + 3992 0x81d8a8c sub_select(JOIN*, st_join_table*, bool) + 108 0x81d89e8 create_virtual_tmp_table(THD*, List<create_field>&) + 3992 0x81d8a8c sub_select(JOIN*, st_join_table*, bool) + 108 0x81d89e8 create_virtual_tmp_table(THD*, List<create_field>&) + 3992 0x81d8a8c sub_select(JOIN*, st_join_table*, bool) + 108 0x81d89e8 create_virtual_tmp_table(THD*, List<create_field>&) + 3992 0x81d8a8c sub_select(JOIN*, st_join_table*, bool) + 108 0x81d8d14 sub_select(JOIN*, st_join_table*, bool) + 756 0x81e400f JOIN::exec() + 2015 0x81e5d60 mysql_select(THD*, Item***, st_table_list*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_ord + 368 0x81e668a handle_select(THD*, st_lex*, select_result*, unsigned long) + 314 0x819825f mysql_execute_command(THD*) + 6527 0x819dc4f mysql_parse(THD*, char*, unsigned int) + 495 0x819e1d5 dispatch_command(enum_server_command, THD*, char*, unsigned int) + 1269 0x819f66d do_command(THD*) + 173 0x81a01a0 handle_one_connection + 2512 0x73245b (?) 0x64224e (?)
[10 Mar 2008 10:18]
MySQL Verification Team
Thank you for the bug report. Could you please try with latest released version ( the version reported is quite older). Thanks in advance.
[10 Apr 2008 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[16 Apr 2008 10:27]
Susanne Ebrecht
Stephen, MySQL 5.0.37 is very old. We need to know if you will get this issue by using our newest version 5.0.51a.
[16 Apr 2008 11:21]
Stephen Johnston
The system this bug is occuring in services over 300,000 users. I am unable to upgrade our production database at this time to find out if maybe it fixes a bug in mySQL. Especially since there are other issues that have been noted that seem even worse in some more recent versions. I've rewritten the query to work another way and the system has stopped crashing. Sorry I can't be more help.
[28 Apr 2008 15:09]
Susanne Ebrecht
Stephen, I will change status here again to "need feedback". Please, when you will update some when, then let us know, if this fixed your problem.
[28 May 2008 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".