mysqld-nt.exe!find_field_in_tables(THD * thd=0x057e6030, Item_ident * item=0x05796830, TABLE_LIST * first_table=0x057962a0, TABLE_LIST * last_table=0x00000000, Item * * ref=0x05796274, find_item_error_report_type report_error=IGNORE_EXCEPT_NON_UNIQUE, bool check_privileges=true, bool register_tree_change=true) Line 3889 + 0x14 bytes C++ mysqld-nt.exe!Item_field::fix_fields(THD * thd=0x057e6030, Item * * reference=0x05796274) Line 3873 + 0x36 bytes C++ mysqld-nt.exe!setup_fields(THD * thd=0x057e6001, Item * * ref_pointer_array=0x05796958, List & fields={...}, bool set_query_id=true, List * sum_func_list=0x05805f00, bool allow_sum_func=true) Line 5117 + 0xe bytes C++ mysqld-nt.exe!JOIN::prepare(Item * * * rref_pointer_array=0x05795bf0, TABLE_LIST * tables_init=0x057962a0, unsigned int wild_num=0x00000000, Item * conds_init=0x05796568, unsigned int og_num=0x00000000, st_order * order_init=0x00000000, st_order * group_init=0x00000000, Item * having_init=0x00000000, st_order * proc_param_init=0x00000000, st_select_lex * select_lex_arg=0x05795ac8, st_select_lex_unit * unit_arg=0x05795880) Line 474 + 0x71 bytes C++ mysqld-nt.exe!mysql_select(THD * thd=0x057e6030, Item * * * rref_pointer_array=0x05795bf0, TABLE_LIST * tables=0x057962a0, unsigned int wild_num=0x00000000, List & fields={...}, Item * conds=0x05796568, unsigned int og_num=0x00000000, st_order * order=0x00000000, st_order * group=0x00000000, Item * having=0x00000000, st_order * proc_param=0x00000000, unsigned __int64 select_options=0x00000000d0844a00, select_result * result=0x05805130, st_select_lex_unit * unit=0x05795880, st_select_lex * select_lex=0x05795ac8) Line 2254 + 0x50 bytes C++ mysqld-nt.exe!handle_select(THD * thd=0x057e6030, st_lex * lex=0x05795820, select_result * result=0x05805130, unsigned long setup_tables_done_option=0x40000000) Line 257 + 0x79 bytes C++ mysqld-nt.exe!mysql_execute_command(THD * thd=0x057e6030) Line 3659 C++ mysqld-nt.exe!sp_instr_stmt::exec_core(THD * thd=0x057e6030, unsigned int * nextp=0x07e0f154) Line 2658 C++ mysqld-nt.exe!sp_lex_keeper::reset_lex_and_exec_core(THD * thd=0x057e6000, unsigned int * nextp=0x07e0f154, bool open_tables=false, sp_instr * instr=0x05796660) Line 2506 + 0xf bytes C++ mysqld-nt.exe!sp_instr_stmt::execute(THD * thd=0x00000016, unsigned int * nextp=0x07e0f154) Line 2611 C++ mysqld-nt.exe!sp_head::execute(THD * thd=0x057e6030) Line 1127 + 0xe bytes C++ mysqld-nt.exe!sp_head::execute_procedure(THD * thd=0x057e6030, List * args=0x057e713c) Line 1779 + 0x8 bytes C++ mysqld-nt.exe!mysql_execute_command(THD * thd=0x057e6030) Line 4725 C++ mysqld-nt.exe!mysql_parse(THD * thd=0x057e6030, const char * inBuf=0x057933a0, unsigned int length=0x00000016, const char * * found_semicolon=0x07e0fb68) Line 6179 C++ mysqld-nt.exe!dispatch_command(enum_server_command command=COM_QUERY, THD * thd=0x057e6030, char * packet=0x05835c21, unsigned int packet_length=0x00000017) Line 1877 C++ mysqld-nt.exe!do_command(THD * thd=0x00000000) Line 1581 + 0xe bytes C++ mysqld-nt.exe!handle_one_connection(void * arg=0x057e6030) Line 1187 + 0x9 bytes C++ mysqld-nt.exe!pthread_start(void * param=0x058096a8) Line 85 + 0x3 bytes C > mysqld-nt.exe!_threadstart(void * ptd=0x05804de8) Line 196 + 0x6 bytes C ==22713== Thread 14: ==22713== Invalid read of size 1 ==22713== at 0x81C5DA9: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3889) ==22713== by 0x811AEB4: Item_field::fix_fields(THD*, Item**) (item.cc:3866) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== by 0x828D1F1: sp_head::execute(THD*) (sp_head.cc:1127) ==22713== by 0x828E3F2: sp_head::execute_procedure(THD*, List*) (sp_head.cc:1779) ==22713== Address 0x5BA9D95 is 421 bytes inside a block of size 996 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x83B2548: free_root (my_alloc.c:357) ==22713== by 0x81CC56E: closefrm(st_table*) (table.cc:1008) ==22713== by 0x81C84DB: free_cache_entry(st_table*) (sql_base.cc:280) ==22713== by 0x83B72AD: hash_delete (hash.c:519) ==22713== by 0x81C222A: close_cached_tables(THD*, bool, TABLE_LIST*) (sql_base.cc:334) ==22713== by 0x81AA16F: reload_acl_and_cache(THD*, unsigned long, TABLE_LIST*, bool*) (sql_parse.cc:7152) ==22713== by 0x81A4E64: mysql_execute_command(THD*) (sql_parse.cc:4271) ==22713== by 0x81A8DA6: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:6178) ==22713== by 0x81A0C89: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1875) ==22713== by 0x81AC3C3: do_command(THD*) (sql_parse.cc:1581) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x81C5DCB: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3895) ==22713== by 0x811AEB4: Item_field::fix_fields(THD*, Item**) (item.cc:3866) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== by 0x828D1F1: sp_head::execute(THD*) (sp_head.cc:1127) ==22713== by 0x828E3F2: sp_head::execute_procedure(THD*, List*) (sp_head.cc:1779) ==22713== Address 0x5B74020 is 0 bytes inside a block of size 3 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x81CC526: closefrm(st_table*) (table.cc:997) ==22713== by 0x81C84DB: free_cache_entry(st_table*) (sql_base.cc:280) ==22713== by 0x83B72AD: hash_delete (hash.c:519) ==22713== by 0x81C222A: close_cached_tables(THD*, bool, TABLE_LIST*) (sql_base.cc:334) ==22713== by 0x81AA16F: reload_acl_and_cache(THD*, unsigned long, TABLE_LIST*, bool*) (sql_parse.cc:7152) ==22713== by 0x81A4E64: mysql_execute_command(THD*) (sql_parse.cc:4271) ==22713== by 0x81A8DA6: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:6178) ==22713== by 0x81A0C89: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1875) ==22713== by 0x81AC3C3: do_command(THD*) (sql_parse.cc:1581) ==22713== by 0x819FEC2: handle_one_connection (sql_parse.cc:1187) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x83D3796: my_strcasecmp_utf8 (ctype-utf8.c:2472) ==22713== by 0x81C5B46: find_field_in_table(THD*, st_table*, char const*, unsigned, bool, unsigned*) (sql_base.cc:3664) ==22713== by 0x81C6218: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3921) ==22713== by 0x811AEB4: Item_field::fix_fields(THD*, Item**) (item.cc:3866) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5BA9D95 is 421 bytes inside a block of size 996 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x83B2548: free_root (my_alloc.c:357) ==22713== by 0x81CC56E: closefrm(st_table*) (table.cc:1008) ==22713== by 0x81C84DB: free_cache_entry(st_table*) (sql_base.cc:280) ==22713== by 0x83B72AD: hash_delete (hash.c:519) ==22713== by 0x81C222A: close_cached_tables(THD*, bool, TABLE_LIST*) (sql_base.cc:334) ==22713== by 0x81AA16F: reload_acl_and_cache(THD*, unsigned long, TABLE_LIST*, bool*) (sql_parse.cc:7152) ==22713== by 0x81A4E64: mysql_execute_command(THD*) (sql_parse.cc:4271) ==22713== by 0x81A8DA6: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:6178) ==22713== by 0x81A0C89: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1875) ==22713== by 0x81AC3C3: do_command(THD*) (sql_parse.cc:1581) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x83D37B7: my_strcasecmp_utf8 (ctype-utf8.c:2523) ==22713== by 0x81C5B46: find_field_in_table(THD*, st_table*, char const*, unsigned, bool, unsigned*) (sql_base.cc:3664) ==22713== by 0x81C6218: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3921) ==22713== by 0x811AEB4: Item_field::fix_fields(THD*, Item**) (item.cc:3866) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5BA9D95 is 421 bytes inside a block of size 996 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x83B2548: free_root (my_alloc.c:357) ==22713== by 0x81CC56E: closefrm(st_table*) (table.cc:1008) ==22713== by 0x81C84DB: free_cache_entry(st_table*) (sql_base.cc:280) ==22713== by 0x83B72AD: hash_delete (hash.c:519) ==22713== by 0x81C222A: close_cached_tables(THD*, bool, TABLE_LIST*) (sql_base.cc:334) ==22713== by 0x81AA16F: reload_acl_and_cache(THD*, unsigned long, TABLE_LIST*, bool*) (sql_parse.cc:7152) ==22713== by 0x81A4E64: mysql_execute_command(THD*) (sql_parse.cc:4271) ==22713== by 0x81A8DA6: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:6178) ==22713== by 0x81A0C89: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1875) ==22713== by 0x81AC3C3: do_command(THD*) (sql_parse.cc:1581) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x83D37F8: my_strcasecmp_utf8 (ctype-utf8.c:2544) ==22713== by 0x81C5B46: find_field_in_table(THD*, st_table*, char const*, unsigned, bool, unsigned*) (sql_base.cc:3664) ==22713== by 0x81C6218: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3921) ==22713== by 0x811AEB4: Item_field::fix_fields(THD*, Item**) (item.cc:3866) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5BA9D96 is 422 bytes inside a block of size 996 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x83B2548: free_root (my_alloc.c:357) ==22713== by 0x81CC56E: closefrm(st_table*) (table.cc:1008) ==22713== by 0x81C84DB: free_cache_entry(st_table*) (sql_base.cc:280) ==22713== by 0x83B72AD: hash_delete (hash.c:519) ==22713== by 0x81C222A: close_cached_tables(THD*, bool, TABLE_LIST*) (sql_base.cc:334) ==22713== by 0x81AA16F: reload_acl_and_cache(THD*, unsigned long, TABLE_LIST*, bool*) (sql_parse.cc:7152) ==22713== by 0x81A4E64: mysql_execute_command(THD*) (sql_parse.cc:4271) ==22713== by 0x81A8DA6: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:6178) ==22713== by 0x81A0C89: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1875) ==22713== by 0x81AC3C3: do_command(THD*) (sql_parse.cc:1581) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x83D37DF: my_strcasecmp_utf8 (ctype-utf8.c:2543) ==22713== by 0x81C5B46: find_field_in_table(THD*, st_table*, char const*, unsigned, bool, unsigned*) (sql_base.cc:3664) ==22713== by 0x81C6218: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3921) ==22713== by 0x811AEB4: Item_field::fix_fields(THD*, Item**) (item.cc:3866) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5BA9D98 is 424 bytes inside a block of size 996 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x83B2548: free_root (my_alloc.c:357) ==22713== by 0x81CC56E: closefrm(st_table*) (table.cc:1008) ==22713== by 0x81C84DB: free_cache_entry(st_table*) (sql_base.cc:280) ==22713== by 0x83B72AD: hash_delete (hash.c:519) ==22713== by 0x81C222A: close_cached_tables(THD*, bool, TABLE_LIST*) (sql_base.cc:334) ==22713== by 0x81AA16F: reload_acl_and_cache(THD*, unsigned long, TABLE_LIST*, bool*) (sql_parse.cc:7152) ==22713== by 0x81A4E64: mysql_execute_command(THD*) (sql_parse.cc:4271) ==22713== by 0x81A8DA6: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:6178) ==22713== by 0x81A0C89: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1875) ==22713== by 0x81AC3C3: do_command(THD*) (sql_parse.cc:1581) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x83D3796: my_strcasecmp_utf8 (ctype-utf8.c:2472) ==22713== by 0x81C5AF8: find_field_in_table(THD*, st_table*, char const*, unsigned, bool, unsigned*) (sql_base.cc:3671) ==22713== by 0x81C6218: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3921) ==22713== by 0x811AEB4: Item_field::fix_fields(THD*, Item**) (item.cc:3866) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5BA9D95 is 645 bytes inside a block of size 4,068 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x83B2548: free_root (my_alloc.c:357) ==22713== by 0x82240B7: SQL_SELECT::test_quick_select(THD*, Bitmap<64>, unsigned long long, unsigned long long, bool) (opt_range.cc:2186) ==22713== by 0x81E4AB8: get_quick_record_count(THD*, SQL_SELECT*, st_table*, Bitmap<64> const*, unsigned long long) (sql_select.cc:2322) ==22713== by 0x81DABC3: make_join_statistics(JOIN*, TABLE_LIST*, Item*, st_dynamic_array*) (sql_select.cc:2718) ==22713== by 0x81D0BC0: JOIN::optimize() (sql_select.cc:902) ==22713== by 0x81D42C1: 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:2260) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x83D378D: my_strcasecmp_utf8 (ctype-utf8.c:2472) ==22713== by 0x81C5ACF: find_field_in_table(THD*, st_table*, char const*, unsigned, bool, unsigned*) (sql_base.cc:3685) ==22713== by 0x81C6218: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3921) ==22713== by 0x811AEB4: Item_field::fix_fields(THD*, Item**) (item.cc:3866) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5BA9D95 is 645 bytes inside a block of size 4,068 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x83B2548: free_root (my_alloc.c:357) ==22713== by 0x82240B7: SQL_SELECT::test_quick_select(THD*, Bitmap<64>, unsigned long long, unsigned long long, bool) (opt_range.cc:2186) ==22713== by 0x81E4AB8: get_quick_record_count(THD*, SQL_SELECT*, st_table*, Bitmap<64> const*, unsigned long long) (sql_select.cc:2322) ==22713== by 0x81DABC3: make_join_statistics(JOIN*, TABLE_LIST*, Item*, st_dynamic_array*) (sql_select.cc:2718) ==22713== by 0x81D0BC0: JOIN::optimize() (sql_select.cc:902) ==22713== by 0x81D42C1: 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:2260) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x81C5B9E: find_field_in_table_ref(THD*, TABLE_LIST*, char const*, unsigned, char const*, char const*, char const*, Item**, bool, bool, unsigned*, bool, TABLE_LIST**) (sql_base.cc:3768) ==22713== by 0x81C5F87: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3972) ==22713== by 0x811AEB4: Item_field::fix_fields(THD*, Item**) (item.cc:3866) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== by 0x828D1F1: sp_head::execute(THD*) (sp_head.cc:1127) ==22713== Address 0x5B74020 is not stack'd, malloc'd or (recently) free'd ==22713== ==22713== Invalid read of size 1 ==22713== at 0x400634B: strcmp (mc_replace_strmem.c:341) ==22713== by 0x81C5D09: find_field_in_table_ref(THD*, TABLE_LIST*, char const*, unsigned, char const*, char const*, char const*, Item**, bool, bool, unsigned*, bool, TABLE_LIST**) (sql_base.cc:3787) ==22713== by 0x81C5F87: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3972) ==22713== by 0x811AEB4: Item_field::fix_fields(THD*, Item**) (item.cc:3866) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5B74020 is not stack'd, malloc'd or (recently) free'd ==22713== ==22713== Invalid read of size 1 ==22713== at 0x81C5DA9: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3889) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== by 0x828D1F1: sp_head::execute(THD*) (sp_head.cc:1127) ==22713== Address 0x5BA9D95 is 645 bytes inside a block of size 4,068 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x83B2548: free_root (my_alloc.c:357) ==22713== by 0x82240B7: SQL_SELECT::test_quick_select(THD*, Bitmap<64>, unsigned long long, unsigned long long, bool) (opt_range.cc:2186) ==22713== by 0x81E4AB8: get_quick_record_count(THD*, SQL_SELECT*, st_table*, Bitmap<64> const*, unsigned long long) (sql_select.cc:2322) ==22713== by 0x81DABC3: make_join_statistics(JOIN*, TABLE_LIST*, Item*, st_dynamic_array*) (sql_select.cc:2718) ==22713== by 0x81D0BC0: JOIN::optimize() (sql_select.cc:902) ==22713== by 0x81D42C1: 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:2260) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x81C5DCB: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3895) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== by 0x828D1F1: sp_head::execute(THD*) (sp_head.cc:1127) ==22713== Address 0x5B74020 is not stack'd, malloc'd or (recently) free'd ==22713== ==22713== Invalid read of size 1 ==22713== at 0x83D3796: my_strcasecmp_utf8 (ctype-utf8.c:2472) ==22713== by 0x81C5B46: find_field_in_table(THD*, st_table*, char const*, unsigned, bool, unsigned*) (sql_base.cc:3664) ==22713== by 0x81C6218: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3921) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== Address 0x5BA9D95 is 645 bytes inside a block of size 4,068 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x83B2548: free_root (my_alloc.c:357) ==22713== by 0x82240B7: SQL_SELECT::test_quick_select(THD*, Bitmap<64>, unsigned long long, unsigned long long, bool) (opt_range.cc:2186) ==22713== by 0x81E4AB8: get_quick_record_count(THD*, SQL_SELECT*, st_table*, Bitmap<64> const*, unsigned long long) (sql_select.cc:2322) ==22713== by 0x81DABC3: make_join_statistics(JOIN*, TABLE_LIST*, Item*, st_dynamic_array*) (sql_select.cc:2718) ==22713== by 0x81D0BC0: JOIN::optimize() (sql_select.cc:902) ==22713== by 0x81D42C1: 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:2260) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x83D3796: my_strcasecmp_utf8 (ctype-utf8.c:2472) ==22713== by 0x81C5AF8: find_field_in_table(THD*, st_table*, char const*, unsigned, bool, unsigned*) (sql_base.cc:3671) ==22713== by 0x81C6218: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3921) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== Address 0x5BA9D95 is 645 bytes inside a block of size 4,068 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x83B2548: free_root (my_alloc.c:357) ==22713== by 0x82240B7: SQL_SELECT::test_quick_select(THD*, Bitmap<64>, unsigned long long, unsigned long long, bool) (opt_range.cc:2186) ==22713== by 0x81E4AB8: get_quick_record_count(THD*, SQL_SELECT*, st_table*, Bitmap<64> const*, unsigned long long) (sql_select.cc:2322) ==22713== by 0x81DABC3: make_join_statistics(JOIN*, TABLE_LIST*, Item*, st_dynamic_array*) (sql_select.cc:2718) ==22713== by 0x81D0BC0: JOIN::optimize() (sql_select.cc:902) ==22713== by 0x81D42C1: 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:2260) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x83D378D: my_strcasecmp_utf8 (ctype-utf8.c:2472) ==22713== by 0x81C5ACF: find_field_in_table(THD*, st_table*, char const*, unsigned, bool, unsigned*) (sql_base.cc:3685) ==22713== by 0x81C6218: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3921) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== Address 0x5BA9D95 is 645 bytes inside a block of size 4,068 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x83B2548: free_root (my_alloc.c:357) ==22713== by 0x82240B7: SQL_SELECT::test_quick_select(THD*, Bitmap<64>, unsigned long long, unsigned long long, bool) (opt_range.cc:2186) ==22713== by 0x81E4AB8: get_quick_record_count(THD*, SQL_SELECT*, st_table*, Bitmap<64> const*, unsigned long long) (sql_select.cc:2322) ==22713== by 0x81DABC3: make_join_statistics(JOIN*, TABLE_LIST*, Item*, st_dynamic_array*) (sql_select.cc:2718) ==22713== by 0x81D0BC0: JOIN::optimize() (sql_select.cc:902) ==22713== by 0x81D42C1: 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:2260) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x81C5B9E: find_field_in_table_ref(THD*, TABLE_LIST*, char const*, unsigned, char const*, char const*, char const*, Item**, bool, bool, unsigned*, bool, TABLE_LIST**) (sql_base.cc:3768) ==22713== by 0x81C5F87: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3972) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5B74020 is not stack'd, malloc'd or (recently) free'd ==22713== ==22713== Invalid read of size 1 ==22713== at 0x400634B: strcmp (mc_replace_strmem.c:341) ==22713== by 0x81C5D09: find_field_in_table_ref(THD*, TABLE_LIST*, char const*, unsigned, char const*, char const*, char const*, Item**, bool, bool, unsigned*, bool, TABLE_LIST**) (sql_base.cc:3787) ==22713== by 0x81C5F87: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3972) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== Address 0x5B74020 is not stack'd, malloc'd or (recently) free'd ==22713== ==22713== Invalid read of size 1 ==22713== at 0x8116DFB: Item_ident::full_name() const (item.cc:1837) ==22713== by 0x81C603A: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:4059) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5BA9E68 is 856 bytes inside a block of size 4,068 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x83B2548: free_root (my_alloc.c:357) ==22713== by 0x82240B7: SQL_SELECT::test_quick_select(THD*, Bitmap<64>, unsigned long long, unsigned long long, bool) (opt_range.cc:2186) ==22713== by 0x81E4AB8: get_quick_record_count(THD*, SQL_SELECT*, st_table*, Bitmap<64> const*, unsigned long long) (sql_select.cc:2322) ==22713== by 0x81DABC3: make_join_statistics(JOIN*, TABLE_LIST*, Item*, st_dynamic_array*) (sql_select.cc:2718) ==22713== by 0x81D0BC0: JOIN::optimize() (sql_select.cc:902) ==22713== by 0x81D42C1: 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:2260) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x8116E03: Item_ident::full_name() const (item.cc:1845) ==22713== by 0x81C603A: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:4059) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5B74020 is not stack'd, malloc'd or (recently) free'd ==22713== ==22713== Invalid read of size 1 ==22713== at 0x8116E16: Item_ident::full_name() const (item.cc:1847) ==22713== by 0x81C603A: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:4059) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5B74020 is not stack'd, malloc'd or (recently) free'd ==22713== ==22713== Invalid read of size 1 ==22713== at 0x8116E24: Item_ident::full_name() const (item.cc:1847) ==22713== by 0x81C603A: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:4059) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5BA9D95 is 645 bytes inside a block of size 4,068 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x83B2548: free_root (my_alloc.c:357) ==22713== by 0x82240B7: SQL_SELECT::test_quick_select(THD*, Bitmap<64>, unsigned long long, unsigned long long, bool) (opt_range.cc:2186) ==22713== by 0x81E4AB8: get_quick_record_count(THD*, SQL_SELECT*, st_table*, Bitmap<64> const*, unsigned long long) (sql_select.cc:2322) ==22713== by 0x81DABC3: make_join_statistics(JOIN*, TABLE_LIST*, Item*, st_dynamic_array*) (sql_select.cc:2718) ==22713== by 0x81D0BC0: JOIN::optimize() (sql_select.cc:902) ==22713== by 0x81D42C1: 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:2260) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x83C8850: strxmov (strings-x86.s:398) ==22713== by 0x81C603A: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:4059) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5B74020 is not stack'd, malloc'd or (recently) free'd ==22713== ==22713== Invalid read of size 1 ==22713== at 0x83C8854: strxmov (strings-x86.s:400) ==22713== by 0x81C603A: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:4059) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5B74021 is not stack'd, malloc'd or (recently) free'd ==22713== ==22713== Invalid read of size 1 ==22713== at 0x83D37B7: my_strcasecmp_utf8 (ctype-utf8.c:2523) ==22713== by 0x81C5AF8: find_field_in_table(THD*, st_table*, char const*, unsigned, bool, unsigned*) (sql_base.cc:3671) ==22713== by 0x81C6218: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3921) ==22713== by 0x811AEB4: Item_field::fix_fields(THD*, Item**) (item.cc:3866) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5BA9D95 is 501 bytes inside a block of size 1,168 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x838C396: mi_close (mi_close.c:104) ==22713== by 0x81CC5B3: closefrm(st_table*) (table.cc:996) ==22713== by 0x81C84DB: free_cache_entry(st_table*) (sql_base.cc:280) ==22713== by 0x83B72AD: hash_delete (hash.c:519) ==22713== by 0x81C222A: close_cached_tables(THD*, bool, TABLE_LIST*) (sql_base.cc:334) ==22713== by 0x81AA16F: reload_acl_and_cache(THD*, unsigned long, TABLE_LIST*, bool*) (sql_parse.cc:7152) ==22713== by 0x81A4E64: mysql_execute_command(THD*) (sql_parse.cc:4271) ==22713== by 0x81A8DA6: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:6178) ==22713== by 0x81A0C89: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1875) ==22713== by 0x81AC3C3: do_command(THD*) (sql_parse.cc:1581) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x83D37B7: my_strcasecmp_utf8 (ctype-utf8.c:2523) ==22713== by 0x81C5B46: find_field_in_table(THD*, st_table*, char const*, unsigned, bool, unsigned*) (sql_base.cc:3664) ==22713== by 0x81C6218: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3921) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== Address 0x5BA9D95 is 501 bytes inside a block of size 1,168 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x838C396: mi_close (mi_close.c:104) ==22713== by 0x81CC5B3: closefrm(st_table*) (table.cc:996) ==22713== by 0x81C84DB: free_cache_entry(st_table*) (sql_base.cc:280) ==22713== by 0x83B72AD: hash_delete (hash.c:519) ==22713== by 0x81C222A: close_cached_tables(THD*, bool, TABLE_LIST*) (sql_base.cc:334) ==22713== by 0x81AA16F: reload_acl_and_cache(THD*, unsigned long, TABLE_LIST*, bool*) (sql_parse.cc:7152) ==22713== by 0x81A4E64: mysql_execute_command(THD*) (sql_parse.cc:4271) ==22713== by 0x81A8DA6: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:6178) ==22713== by 0x81A0C89: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1875) ==22713== by 0x81AC3C3: do_command(THD*) (sql_parse.cc:1581) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x83D37B7: my_strcasecmp_utf8 (ctype-utf8.c:2523) ==22713== by 0x81C5AF8: find_field_in_table(THD*, st_table*, char const*, unsigned, bool, unsigned*) (sql_base.cc:3671) ==22713== by 0x81C6218: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:3921) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== Address 0x5BA9D95 is 501 bytes inside a block of size 1,168 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x838C396: mi_close (mi_close.c:104) ==22713== by 0x81CC5B3: closefrm(st_table*) (table.cc:996) ==22713== by 0x81C84DB: free_cache_entry(st_table*) (sql_base.cc:280) ==22713== by 0x83B72AD: hash_delete (hash.c:519) ==22713== by 0x81C222A: close_cached_tables(THD*, bool, TABLE_LIST*) (sql_base.cc:334) ==22713== by 0x81AA16F: reload_acl_and_cache(THD*, unsigned long, TABLE_LIST*, bool*) (sql_parse.cc:7152) ==22713== by 0x81A4E64: mysql_execute_command(THD*) (sql_parse.cc:4271) ==22713== by 0x81A8DA6: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:6178) ==22713== by 0x81A0C89: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1875) ==22713== by 0x81AC3C3: do_command(THD*) (sql_parse.cc:1581) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x8116E61: Item_ident::full_name() const (item.cc:1839) ==22713== by 0x81C603A: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:4059) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5BA9E68 is 712 bytes inside a block of size 1,168 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x838C396: mi_close (mi_close.c:104) ==22713== by 0x81CC5B3: closefrm(st_table*) (table.cc:996) ==22713== by 0x81C84DB: free_cache_entry(st_table*) (sql_base.cc:280) ==22713== by 0x83B72AD: hash_delete (hash.c:519) ==22713== by 0x81C222A: close_cached_tables(THD*, bool, TABLE_LIST*) (sql_base.cc:334) ==22713== by 0x81AA16F: reload_acl_and_cache(THD*, unsigned long, TABLE_LIST*, bool*) (sql_parse.cc:7152) ==22713== by 0x81A4E64: mysql_execute_command(THD*) (sql_parse.cc:4271) ==22713== by 0x81A8DA6: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:6178) ==22713== by 0x81A0C89: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1875) ==22713== by 0x81AC3C3: do_command(THD*) (sql_parse.cc:1581) ==22713== ==22713== Invalid read of size 1 ==22713== at 0x8116E6D: Item_ident::full_name() const (item.cc:1839) ==22713== by 0x81C603A: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:4059) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5B74020 is not stack'd, malloc'd or (recently) free'd ==22713== ==22713== Invalid read of size 1 ==22713== at 0x8116E7B: Item_ident::full_name() const (item.cc:1839) ==22713== by 0x81C603A: find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool) (sql_base.cc:4059) ==22713== by 0x811A6E9: Item_field::fix_outer_field(THD*, Field**, Item**) (item.cc:3725) ==22713== by 0x811B12B: Item_field::fix_fields(THD*, Item**) (item.cc:3932) ==22713== by 0x81C6A16: setup_fields(THD*, Item**, List&, bool, List*, bool) (sql_list.h:435) ==22713== by 0x81CFFDC: JOIN::prepare(Item***, TABLE_LIST*, unsigned, Item*, unsigned, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*) (sql_select.cc:644) ==22713== by 0x81D44F7: 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:2252) ==22713== by 0x81CFC77: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:245) ==22713== by 0x81A43E0: mysql_execute_command(THD*) (sql_parse.cc:3651) ==22713== by 0x828FEE9: sp_instr_stmt::exec_core(THD*, unsigned*) (sp_head.cc:2657) ==22713== by 0x828FCC9: sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned*, bool, sp_instr*) (sp_head.cc:2506) ==22713== by 0x828FDFF: sp_instr_stmt::execute(THD*, unsigned*) (sp_head.cc:2610) ==22713== Address 0x5BA9D95 is 501 bytes inside a block of size 1,168 free'd ==22713== at 0x400501A: free (vg_replace_malloc.c:233) ==22713== by 0x83B1DC5: my_no_flags_free (my_malloc.c:59) ==22713== by 0x838C396: mi_close (mi_close.c:104) ==22713== by 0x81CC5B3: closefrm(st_table*) (table.cc:996) ==22713== by 0x81C84DB: free_cache_entry(st_table*) (sql_base.cc:280) ==22713== by 0x83B72AD: hash_delete (hash.c:519) ==22713== by 0x81C222A: close_cached_tables(THD*, bool, TABLE_LIST*) (sql_base.cc:334) ==22713== by 0x81AA16F: reload_acl_and_cache(THD*, unsigned long, TABLE_LIST*, bool*) (sql_parse.cc:7152) ==22713== by 0x81A4E64: mysql_execute_command(THD*) (sql_parse.cc:4271) ==22713== by 0x81A8DA6: mysql_parse(THD*, char const*, unsigned, char const**) (sql_parse.cc:6178) ==22713== by 0x81A0C89: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1875) ==22713== by 0x81AC3C3: do_command(THD*) (sql_parse.cc:1581) i|1|drop table if exists t1,t2| i|1|create table t1(a int,data1 varchar(200) character set utf8, key(data1,a))| i|1|create table t2(b int,data2 varchar(200) character set utf8, key(data2,b))| i|1|drop procedure if exists p1| i|1|create procedure p1(c varchar(200))begin insert into t1 select * from t2 where data2=c;end; n|1|insert into t2 values (?,'?')|int,smallint n|1|call p1('?')|smallint n|1|flush tables with read lock| n|1|unlock tables| n|1|kill query| gypsy --queryfile=bug38816.sql --host=192.168.250.4:3306 --duration=600 --threads=10 --shuffle-queries=1