==24277== ==24277== ERROR SUMMARY: 113 errors from 6 contexts (suppressed: 24 from 1) ==24277== ==24277== 2 errors in context 1 of 6: ==24277== Conditional jump or move depends on uninitialised value(s) ==24277== at 0x81BC625: Item_func_spatial_collection::val_str(String*) (item_geofunc.cc:429) ==24277== by 0x814C46C: Item::save_in_field(Field*, bool) (item.cc:4892) ==24277== by 0x824305C: fill_record(THD*, Field**, List&, bool) (sql_base.cc:8203) ==24277== by 0x836A61E: select_union::send_data(List&) (sql_union.cc:60) ==24277== by 0x827EADA: JOIN::exec() (sql_select.cc:1688) ==24277== by 0x82815F2: 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:2378) ==24277== by 0x8281B49: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:268) ==24277== by 0x8205017: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5009) ==24277== by 0x820EB04: mysql_execute_command(THD*) (sql_parse.cc:2211) ==24277== by 0x837AD76: mysql_open_cursor(THD*, unsigned, select_result*, Server_side_cursor**) (sql_cursor.cc:172) ==24277== by 0x829090F: Prepared_statement::execute(String*, bool) (sql_prepare.cc:3557) ==24277== by 0x829245E: Prepared_statement::execute_loop(String*, bool, unsigned char*, unsigned char*) (sql_prepare.cc:3241) ==24277== ==24277== 2 errors in context 2 of 6: ==24277== Invalid read of size 4 ==24277== at 0x81BC623: Item_func_spatial_collection::val_str(String*) (item_geofunc.cc:429) ==24277== by 0x814C46C: Item::save_in_field(Field*, bool) (item.cc:4892) ==24277== by 0x824305C: fill_record(THD*, Field**, List&, bool) (sql_base.cc:8203) ==24277== by 0x836A61E: select_union::send_data(List&) (sql_union.cc:60) ==24277== by 0x827EADA: JOIN::exec() (sql_select.cc:1688) ==24277== by 0x82815F2: 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:2378) ==24277== by 0x8281B49: handle_select(THD*, st_lex*, select_result*, unsigned long) (sql_select.cc:268) ==24277== by 0x8205017: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5009) ==24277== by 0x820EB04: mysql_execute_command(THD*) (sql_parse.cc:2211) ==24277== by 0x837AD76: mysql_open_cursor(THD*, unsigned, select_result*, Server_side_cursor**) (sql_cursor.cc:172) ==24277== by 0x829090F: Prepared_statement::execute(String*, bool) (sql_prepare.cc:3557) ==24277== by 0x829245E: Prepared_statement::execute_loop(String*, bool, unsigned char*, unsigned char*) (sql_prepare.cc:3241) ==24277== Address 0x7BAB635 is 5 bytes inside a block of size 8 alloc'd ==24277== at 0x4005400: malloc (vg_replace_malloc.c:149) ==24277== by 0x84F4F77: my_malloc (my_malloc.c:34) ==24277== by 0x81F2D5D: String::real_alloc(unsigned) (sql_string.cc:51) ==24277== by 0x81F3064: String::copy(char const*, unsigned, charset_info_st*) (sql_string.h:202) ==24277== by 0x81F3103: String::copy(char const*, unsigned, charset_info_st*, charset_info_st*, unsigned*) (sql_string.cc:334) ==24277== by 0x814CA23: Item_param::set_str(char const*, unsigned long) (item.cc:2699) ==24277== by 0x828DE1E: set_param_str(Item_param*, unsigned char**, unsigned long) (sql_prepare.cc:593) ==24277== by 0x8290C9D: insert_params(Prepared_statement*, unsigned char*, unsigned char*, unsigned char*, String*) (sql_prepare.cc:806) ==24277== by 0x828DD9D: Prepared_statement::set_parameters(String*, unsigned char*, unsigned char*) (sql_prepare.cc:3153) ==24277== by 0x82923A1: Prepared_statement::execute_loop(String*, bool, unsigned char*, unsigned char*) (sql_prepare.cc:3212) ==24277== by 0x829296C: mysql_stmt_execute(THD*, char*, unsigned) (sql_prepare.cc:2462) ==24277== by 0x8210F8F: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1171) ==24277==