#0 Item_sum::update_used_tables (this=0x22099d0) at item_sum.cc:466 #1 0x00000000004ede04 in Item_func::update_used_tables (this=0x220a190) at item_func.cc:352 #2 0x00000000005af9fe in build_equal_items_for_cond (thd=0x21ccd80, cond=0x220a190, inherited=0x0) at sql_select.cc:7403 #3 0x00000000005afab7 in build_equal_items (thd=0x21ccd80, cond=0x0, inherited=0x0, join_list=0x21ce730, cond_equal_ref=0x220b6e8) at sql_select.cc:7476 #4 0x00000000005b3196 in optimize_cond (join=, conds=0x0, join_list=0x1, cond_value=0x220b5dc) at sql_select.cc:8539 #5 0x00000000005b8f9d in JOIN::optimize (this=0x220a3e8) at sql_select.cc:813 #6 0x00000000005c1430 in mysql_select (thd=0x21ccd80, rref_pointer_array=0x21ce7b0, tables=0x2209be0, wild_num=0, fields=@0x219, conds=0x0, og_num=1, order=0x0, group=0x2209ff0, having=0x220a190, proc_param=0x0, select_options=2156153344, result=0x220a3c8, unit=0x21ce1d8, select_lex=0x21ce588) at sql_select.cc:2252 #7 0x00000000005c1ed3 in handle_select (thd=0x21ccd80, lex=0x21ce148, result=0x220a3c8, setup_tables_done_option=0) at sql_select.cc:255 #8 0x0000000000570173 in mysql_execute_command (thd=0x21ccd80) at sql_parse.cc:2674 #9 0x000000000057442d in mysql_parse (thd=0x21ccd80, inBuf=0x2209780 "select bug(bar) AS plonk from bug group by foo HAVING plonk='42'", length=64, found_semicolon=0x440889e0) at sql_parse.cc:6097 #10 0x0000000000575203 in dispatch_command (command=COM_QUERY, thd=0x21ccd80, packet=0x2203b01 "select bug(bar) AS plonk from bug group by foo HAVING plonk='42'", packet_length=dwarf2_read_address: Corrupted DWARF expression. ) at sql_parse.cc:1812 #11 0x0000000000575c56 in do_command (thd=0x21ccd80) at sql_parse.cc:1586 #12 0x000000000057665e in handle_one_connection (arg=) at sql_parse.cc:1197 #13 0x00002b2dac7b22f0 in start_thread () from /lib64/libpthread.so.0 #14 0x00002b2dad675e6d in clone () from /lib64/libc.so.6