Version: '5.1.30' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL) ==7911== Thread 12: ==7911== Invalid read of size 4 ==7911== at 0x8255525: _ZL21check_simple_equalityP4ItemS0_S0_P10COND_EQUAL (sql_select.cc:7250) ==7911== by 0x825EA67: _ZL26build_equal_items_for_condP3THDP4ItemP10COND_EQUAL (sql_select.cc:7658) ==7911== by 0x825ED4A: _ZL17build_equal_itemsP3THDP4ItemP10COND_EQUALP4ListI10TABLE_LISTEPS4_ (sql_select.cc:7791) ==7911== by 0x8268B33: JOIN::optimize() (sql_select.cc:8877) ==7911== by 0x826C4F1: mysql_select(THD*, Item***, TABLE_LIST*, unsigned, List&, Item*, unsigned, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:2347) ==7911== by 0x833842F: mysql_derived_filling(THD*, st_lex*, TABLE_LIST*) (sql_derived.cc:293) ==7911== by 0x83382B5: mysql_handle_derived(st_lex*, bool (*)(THD*, st_lex*, TABLE_LIST*)) (sql_derived.cc:56) ==7911== by 0x8287CAE: mysql_multi_update_prepare(THD*) (sql_update.cc:1169) ==7911== by 0x8206BE2: mysql_execute_command(THD*) (sql_parse.cc:2976) ==7911== by 0x834A1C0: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2899) ==7911== by 0x834E381: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2728) ==7911== by 0x834F029: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2842) ==7911== Address 0x7799E70 is 344 bytes inside a block of size 996 free'd ==7911== at 0x400501A: free (vg_replace_malloc.c:233) ==7911== by 0x84B26E8: free_root (my_alloc.c:355) ==7911== by 0x8248877: closefrm(st_table*, bool) (table.cc:1985) ==7911== by 0x823E9D9: _ZL16free_cache_entryP8st_table (sql_base.cc:771) ==7911== by 0x84BA94B: my_hash_delete (hash.c:530) ==7911== by 0x823EFBA: close_thread_table(THD*, st_table**) (sql_base.cc:1357) ==7911== by 0x823F47B: close_thread_tables(THD*) (sql_base.cc:1166) ==7911== by 0x8287BF7: mysql_multi_update_prepare(THD*) (sql_update.cc:1130) ==7911== by 0x8206BE2: mysql_execute_command(THD*) (sql_parse.cc:2976) ==7911== by 0x834A1C0: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2899) ==7911== by 0x834E381: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2728) ==7911== by 0x834F029: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2842) ==7911== ==7911== Invalid read of size 4 ==7911== at 0x81C6585: Field::eq_def(Field*) (field.cc:8780) ==7911== by 0x8255533: _ZL21check_simple_equalityP4ItemS0_S0_P10COND_EQUAL (sql_select.cc:7250) ==7911== by 0x825EA67: _ZL26build_equal_items_for_condP3THDP4ItemP10COND_EQUAL (sql_select.cc:7658) ==7911== by 0x825ED4A: _ZL17build_equal_itemsP3THDP4ItemP10COND_EQUALP4ListI10TABLE_LISTEPS4_ (sql_select.cc:7791) ==7911== by 0x8268B33: JOIN::optimize() (sql_select.cc:8877) ==7911== by 0x826C4F1: mysql_select(THD*, Item***, TABLE_LIST*, unsigned, List&, Item*, unsigned, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:2347) ==7911== by 0x833842F: mysql_derived_filling(THD*, st_lex*, TABLE_LIST*) (sql_derived.cc:293) ==7911== by 0x83382B5: mysql_handle_derived(st_lex*, bool (*)(THD*, st_lex*, TABLE_LIST*)) (sql_derived.cc:56) ==7911== by 0x8287CAE: mysql_multi_update_prepare(THD*) (sql_update.cc:1169) ==7911== by 0x8206BE2: mysql_execute_command(THD*) (sql_parse.cc:2976) ==7911== by 0x834A1C0: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2899) ==7911== by 0x834E381: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2728) ==7911== Address 0x7799E70 is 344 bytes inside a block of size 996 free'd ==7911== at 0x400501A: free (vg_replace_malloc.c:233) ==7911== by 0x84B26E8: free_root (my_alloc.c:355) ==7911== by 0x8248877: closefrm(st_table*, bool) (table.cc:1985) ==7911== by 0x823E9D9: _ZL16free_cache_entryP8st_table (sql_base.cc:771) ==7911== by 0x84BA94B: my_hash_delete (hash.c:530) ==7911== by 0x823EFBA: close_thread_table(THD*, st_table**) (sql_base.cc:1357) ==7911== by 0x823F47B: close_thread_tables(THD*) (sql_base.cc:1166) ==7911== by 0x8287BF7: mysql_multi_update_prepare(THD*) (sql_update.cc:1130) ==7911== by 0x8206BE2: mysql_execute_command(THD*) (sql_parse.cc:2976) ==7911== by 0x834A1C0: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2899) ==7911== by 0x834E381: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2728) ==7911== by 0x834F029: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2842) ==7911== ==7911== Invalid read of size 4 ==7911== at 0x81DBE97: Field::real_type() const (field.h:219) ==7911== by 0x8255533: _ZL21check_simple_equalityP4ItemS0_S0_P10COND_EQUAL (sql_select.cc:7250) ==7911== by 0x825EA67: _ZL26build_equal_items_for_condP3THDP4ItemP10COND_EQUAL (sql_select.cc:7658) ==7911== by 0x825ED4A: _ZL17build_equal_itemsP3THDP4ItemP10COND_EQUALP4ListI10TABLE_LISTEPS4_ (sql_select.cc:7791) ==7911== by 0x8268B33: JOIN::optimize() (sql_select.cc:8877) ==7911== by 0x826C4F1: mysql_select(THD*, Item***, TABLE_LIST*, unsigned, List&, Item*, unsigned, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:2347) ==7911== by 0x833842F: mysql_derived_filling(THD*, st_lex*, TABLE_LIST*) (sql_derived.cc:293) ==7911== by 0x83382B5: mysql_handle_derived(st_lex*, bool (*)(THD*, st_lex*, TABLE_LIST*)) (sql_derived.cc:56) ==7911== by 0x8287CAE: mysql_multi_update_prepare(THD*) (sql_update.cc:1169) ==7911== by 0x8206BE2: mysql_execute_command(THD*) (sql_parse.cc:2976) ==7911== by 0x834A1C0: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2899) ==7911== by 0x834E381: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2728) ==7911== Address 0x7799E70 is 344 bytes inside a block of size 996 free'd ==7911== at 0x400501A: free (vg_replace_malloc.c:233) ==7911== by 0x84B26E8: free_root (my_alloc.c:355) ==7911== by 0x8248877: closefrm(st_table*, bool) (table.cc:1985) ==7911== by 0x823E9D9: _ZL16free_cache_entryP8st_table (sql_base.cc:771) ==7911== by 0x84BA94B: my_hash_delete (hash.c:530) ==7911== by 0x823EFBA: close_thread_table(THD*, st_table**) (sql_base.cc:1357) ==7911== by 0x823F47B: close_thread_tables(THD*) (sql_base.cc:1166) ==7911== by 0x8287BF7: mysql_multi_update_prepare(THD*) (sql_update.cc:1130) ==7911== by 0x8206BE2: mysql_execute_command(THD*) (sql_parse.cc:2976) ==7911== by 0x834A1C0: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2899) ==7911== by 0x834E381: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2728) ==7911== by 0x834F029: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2842) mysqld: my_new.cc:50: int __cxa_pure_virtual(): Assertion `"Pure virtual method called." == "Aborted"' failed. 081230 22:10:19 - mysqld got signal 6 ; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. key_buffer_size=8388600 read_buffer_size=131072 max_used_connections=9 max_threads=151 threads_connected=8 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 337725 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. thd: 0x7717258 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... stack_bottom = 0x503b3b8 thread_stack 0x30000 ./bin/mysqld(my_print_stacktrace+0x21)[0x84c64f1] ./bin/mysqld(handle_segfault+0x381)[0x81f6261] /lib/libpthread.so.0[0x491218] /lib/libc.so.6(abort+0x101)[0x333591] /lib/libc.so.6(__assert_fail+0xfb)[0x32b38b] ./bin/mysqld(__cxa_pure_virtual+0x36)[0x84b2ec6] ./bin/mysqld(_ZN5Field6eq_defEPS_+0x20)[0x81c6590] ./bin/mysqld[0x8255534] ./bin/mysqld[0x825ea68] ./bin/mysqld[0x825ed4b] ./bin/mysqld(_ZN4JOIN8optimizeEv+0x264)[0x8268b34] ./bin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x72)[0x826c4f2] ./bin/mysqld(_Z21mysql_derived_fillingP3THDP6st_lexP10TABLE_LIST+0x110)[0x8338430] ./bin/mysqld(_Z20mysql_handle_derivedP6st_lexPFbP3THDS0_P10TABLE_LISTE+0x66)[0x83382b6] ./bin/mysqld(_Z26mysql_multi_update_prepareP3THD+0x7df)[0x8287caf] ./bin/mysqld(_Z21mysql_execute_commandP3THD+0x1093)[0x8206be3] ./bin/mysqld(_ZN13sp_instr_stmt9exec_coreEP3THDPj+0x11)[0x834a1c1] ./bin/mysqld(_ZN13sp_lex_keeper23reset_lex_and_exec_coreEP3THDPjbP8sp_instr+0xc2)[0x834e382] ./bin/mysqld(_ZN13sp_instr_stmt7executeEP3THDPj+0x10a)[0x834f02a] ./bin/mysqld(_ZN7sp_head7executeEP3THD+0x4d8)[0x834c998] ./bin/mysqld(_ZN7sp_head17execute_procedureEP3THDP4ListI4ItemE+0x4fe)[0x834d05e] ./bin/mysqld(_Z21mysql_execute_commandP3THD+0x3d63)[0x82098b3] ./bin/mysqld(_Z11mysql_parseP3THDPKcjPS2_+0x340)[0x820d1c0] ./bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0xe98)[0x820e068] ./bin/mysqld(_Z10do_commandP3THD+0xe0)[0x820ebf0] ./bin/mysqld(handle_one_connection+0x233)[0x81ff8a3] /lib/libpthread.so.0[0x4893db] /lib/libc.so.6(clone+0x5e)[0x3d606e] Trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd->query at 0x7960810 is an invalid pointer thd->thread_id=3 thd->killed=NOT_KILLED The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains information that should help you find out what is causing the crash. --7911-- Discarding syms at 0x4E52000-0x4E5D000 in /lib/libnss_files-2.5.so due to munmap() ==7911==