Program received signal SIGABRT, Aborted. 0x00002ba6c2c0fb45 in raise () from /lib64/libc.so.6 (gdb) bt #0 0x00002ba6c2c0fb45 in raise () from /lib64/libc.so.6 #1 0x00002ba6c2c110e0 in abort () from /lib64/libc.so.6 #2 0x00002ba6c2c0907f in __assert_fail () from /lib64/libc.so.6 #3 0x000000000068b656 in Diagnostics_area::set_eof_status (this=0x1160028, thd=0x115ea28) at sql_class.cc:430 #4 0x00000000005c75a2 in my_eof (thd=0x115ea28) at sql_class.h:2156 #5 0x0000000000691537 in select_send::send_eof (this=0x11c41f0) at sql_class.cc:1569 #6 0x0000000000733096 in do_select (join=0x11f2198, fields=0x11f3808, table=0x0, procedure=0x0) at sql_select.cc:10817 #7 0x0000000000744d74 in JOIN::exec (this=0x11f2198) at sql_select.cc:2178 #8 0x0000000000740227 in mysql_select (thd=0x115ea28, rref_pointer_array=0x1160a08, tables=0x11c2840, wild_num=0, fields=@0x1160940, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x11c3ac0, proc_param=0x0, select_options=2149861888, result=0x11c41f0, unit=0x1160418, select_lex=0x1160838) at sql_select.cc:2356 #9 0x000000000074508d in handle_select (thd=0x115ea28, lex=0x1160378, result=0x11c41f0, setup_tables_done_option=0) at sql_select.cc:269 #10 0x00000000006b7f60 in execute_sqlcom_select (thd=0x115ea28, all_tables=0x11c2840) at sql_parse.cc:4752 #11 0x00000000006b9b2b in mysql_execute_command (thd=0x115ea28) at sql_parse.cc:2052 ---Type to continue, or q to quit--- #12 0x00000000006c1fed in mysql_parse (thd=0x115ea28, inBuf=0x11c26b8 "SELECT 1 FROM t1 HAVING COUNT(*) = f1()", length=39, found_semicolon=0x40881f00) at sql_parse.cc:5630 #13 0x00000000006c2d7d in dispatch_command (command=COM_QUERY, thd=0x115ea28, packet=0x11b28d9 "", packet_length=39) at sql_parse.cc:1121 #14 0x00000000006c40bf in do_command (thd=0x115ea28) at sql_parse.cc:781 #15 0x00000000006b1b70 in handle_one_connection (arg=0x115ea28) at sql_connect.cc:1115 #16 0x00002ba6c1f0c020 in start_thread () from /lib64/libpthread.so.0 #17 0x00002ba6c2ca3f8d in clone () from /lib64/libc.so.6 #18 0x0000000000000000 in ?? () (gdb)