added a comment - Since we don't know enough about the initial problem, let's at least fix the test case above in scope of this bug report, maybe by luck it will also fix the reported failure.
SELECT ST_RELATE(
ST_DIFFERENCE(
GEOMETRYFROMTEXT( '
MULTILINESTRING(
( 12841 36140, 8005 31007, 26555 31075, 52765 41191, 28978 6548, 45720 32057, 53345 3221 ),
( 8304 59107, 25233 31592, 40502 25303, 8205 42940 ),
( 7829 7305, 58841 56759, 64115 8512, 37562 54145, 2210 14701 ),
( 20379 2805, 40807 27770, 28147 14883, 26439 29383, 55663 5086 ),
( 35944 64702, 14433 23728, 49317 26241, 790 16941 )
)
' ),
GEOMETRYFROMTEXT( 'POINT(46061 13545)' )
),
GEOMETRYFROMTEXT( 'POINT(4599 60359)' ),
'F*FFFF**F'
);
10.1 debug 01209de7637a7206c18788e08919b5ccf0b3d700
mysqltest: At line 1: query 'SELECT ST_RELATE(
ST_DIFFERENCE(
GEOMETRYFROMTEXT('
MULTILINESTRING(
( 12841 36140, 8005 31007, 26555 31075, 52765 41191, 28978 6548, 45720 32057, 53345 3221 ),
( 8304 59107, 25233 31592, 40502 25303, 8205 42940 ),
( 7829 7305, 58841 56759, 64115 8512, 37562 54145, 2210 14701 ),
( 20379 2805, 40807 27770, 28147 14883, 26439 29383, 55663 5086 ),
( 35944 64702, 14433 23728, 49317 26241, 790 16941 )
)
'),
GEOMETRYFROMTEXT('POINT(46061 13545)')
),
GEOMETRYFROMTEXT('POINT(4599 60359)'),
'F*FFFF**F'
)' failed: 5: Out of memory (Needed 1024 bytes)
10.1 debug 01209de7637a7206c18788e08919b5ccf0b3d700
Error: Reallocating overrun buffer 0x55e501f16bbe, 0x55e501f04329, 0x55e50171e181, mysys/safemalloc.c:176, 0x55e50171f757, 0x55e501a4fdf2, 0x55e501a4fd68, 0x55e50192dfe8
Allocated at 0x55e50171e1c5, 0x55e5015aedd0, 0x55e50171f757, 0x55e501a4fdf2, 0x55e50192e130, 0x55e5018cf033, sql/sql_string.h:331, sql/sql_string.cc:699
Error: Reallocating overrun buffer mysys/safemalloc.c:176, mysys/my_malloc.c:165, sql/sql_string.cc:94, sql/sql_string.h:331, sql/sql_string.h:485, sql/gcalc_tools.cc:119, sql/item_geofunc.cc:1262, sql/item.cc:6569
Allocated at sql/sql_string.cc:100, sql/sql_string.h:331, sql/sql_string.cc:699, sql/gcalc_tools.cc:114, sql/item_geofunc.cc:1244, sql/item.cc:6569, sql/protocol.cc:914, sql/sql_class.cc:2837
Error: Freeing overrun buffer mysys/safemalloc.c:191, mysys/my_malloc.c:219, 0x55e5015aed7f, 0x55e5015aecee, 0x55e501934a92, 0x55e501935f88, sql/sql_string.h:317, sql/item_geofunc.h:329
Allocated at sql/sql_string.cc:100, sql/sql_string.h:331, sql/sql_string.cc:699, sql/gcalc_tools.cc:114, sql/item_geofunc.cc:1244, sql/item.cc:6569, sql/protocol.cc:914, sql/sql_class.cc:2837
10.1 valgrind 01209de7637a7206c18788e08919b5ccf0b3d700
==32512== Invalid write of size 4
==32512== at 0x8ADC5F: String::q_append(unsigned int) (sql_string.h:500)
==32512== by 0x9CFBB5: Gcalc_function::add_operation(unsigned int, unsigned int) (gcalc_tools.cc:50)
==32512== by 0x8A8216: setup_relate_func(Geometry*, Geometry*, Gcalc_operation_transporter*, Gcalc_function*, char const*) (item_geofunc.cc:1197)
==32512== by 0x8A85A8: Item_func_spatial_relate::val_int() (item_geofunc.cc:1256)
==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512)
==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
==32512== by 0x5D8895: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1484)
==32512== by 0x5D7632: do_command(THD*) (sql_parse.cc:1106)
==32512== Address 0xddee1d8 is 0 bytes after a block of size 520 alloc'd
==32512== at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==32512== by 0xED4FAB: my_malloc (my_malloc.c:101)
==32512== by 0x68C2C8: String::realloc_raw(unsigned int) (sql_string.cc:100)
==32512== by 0x518047: String::realloc(unsigned int) (sql_string.h:331)
==32512== by 0x68D85A: String::reserve(unsigned int, unsigned int) (sql_string.cc:699)
==32512== by 0x9CFD7B: Gcalc_function::reserve_op_buffer(unsigned int) (gcalc_tools.cc:113)
==32512== by 0x8A83BD: Item_func_spatial_relate::val_int() (item_geofunc.cc:1245)
==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512)
==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
==32512== Conditional jump or move depends on uninitialised value(s)
==32512== at 0x9CFE64: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:132)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512)
==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
==32512== Conditional jump or move depends on uninitialised value(s)
==32512== at 0x9CFEB5: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:142)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512)
==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
==32512== Use of uninitialised value of size 8
==32512== at 0x9CFED3: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:145)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512)
==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
==32512== Use of uninitialised value of size 8
==32512== at 0x9CFEE7: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:145)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512)
==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
==32512== Conditional jump or move depends on uninitialised value(s)
==32512== at 0x9D0179: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:224)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512)
==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
Since we don't know enough about the initial problem, let's at least fix the test case above in scope of this bug report, maybe by luck it will also fix the reported failure.
ST_DIFFERENCE(
MULTILINESTRING(
( 12841 36140, 8005 31007, 26555 31075, 52765 41191, 28978 6548, 45720 32057, 53345 3221 ),
( 8304 59107, 25233 31592, 40502 25303, 8205 42940 ),
( 7829 7305, 58841 56759, 64115 8512, 37562 54145, 2210 14701 ),
( 20379 2805, 40807 27770, 28147 14883, 26439 29383, 55663 5086 ),
( 35944 64702, 14433 23728, 49317 26241, 790 16941 )
)
),
);
10.1 debug 01209de7637a7206c18788e08919b5ccf0b3d700
mysqltest: At line 1: query 'SELECT ST_RELATE(
ST_DIFFERENCE(
GEOMETRYFROMTEXT('
MULTILINESTRING(
( 12841 36140, 8005 31007, 26555 31075, 52765 41191, 28978 6548, 45720 32057, 53345 3221 ),
( 8304 59107, 25233 31592, 40502 25303, 8205 42940 ),
( 7829 7305, 58841 56759, 64115 8512, 37562 54145, 2210 14701 ),
( 20379 2805, 40807 27770, 28147 14883, 26439 29383, 55663 5086 ),
( 35944 64702, 14433 23728, 49317 26241, 790 16941 )
)
'),
GEOMETRYFROMTEXT('POINT(46061 13545)')
),
GEOMETRYFROMTEXT('POINT(4599 60359)'),
'F*FFFF**F'
)' failed: 5: Out of memory (Needed 1024 bytes)
10.1 debug 01209de7637a7206c18788e08919b5ccf0b3d700
Error: Reallocating overrun buffer 0x55e501f16bbe, 0x55e501f04329, 0x55e50171e181, mysys/safemalloc.c:176, 0x55e50171f757, 0x55e501a4fdf2, 0x55e501a4fd68, 0x55e50192dfe8
Allocated at 0x55e50171e1c5, 0x55e5015aedd0, 0x55e50171f757, 0x55e501a4fdf2, 0x55e50192e130, 0x55e5018cf033, sql/sql_string.h:331, sql/sql_string.cc:699
Error: Reallocating overrun buffer mysys/safemalloc.c:176, mysys/my_malloc.c:165, sql/sql_string.cc:94, sql/sql_string.h:331, sql/sql_string.h:485, sql/gcalc_tools.cc:119, sql/item_geofunc.cc:1262, sql/item.cc:6569
Allocated at sql/sql_string.cc:100, sql/sql_string.h:331, sql/sql_string.cc:699, sql/gcalc_tools.cc:114, sql/item_geofunc.cc:1244, sql/item.cc:6569, sql/protocol.cc:914, sql/sql_class.cc:2837
Error: Freeing overrun buffer mysys/safemalloc.c:191, mysys/my_malloc.c:219, 0x55e5015aed7f, 0x55e5015aecee, 0x55e501934a92, 0x55e501935f88, sql/sql_string.h:317, sql/item_geofunc.h:329
Allocated at sql/sql_string.cc:100, sql/sql_string.h:331, sql/sql_string.cc:699, sql/gcalc_tools.cc:114, sql/item_geofunc.cc:1244, sql/item.cc:6569, sql/protocol.cc:914, sql/sql_class.cc:2837
10.1 valgrind 01209de7637a7206c18788e08919b5ccf0b3d700
==32512== Invalid write of size 4
==32512== at 0x8ADC5F: String::q_append(unsigned int) (sql_string.h:500)
==32512== by 0x9CFBB5: Gcalc_function::add_operation(unsigned int, unsigned int) (gcalc_tools.cc:50)
==32512== by 0x8A8216: setup_relate_func(Geometry*, Geometry*, Gcalc_operation_transporter*, Gcalc_function*, char const*) (item_geofunc.cc:1197)
==32512== by 0x8A85A8: Item_func_spatial_relate::val_int() (item_geofunc.cc:1256)
==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512)
==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
==32512== by 0x5D8895: dispatch_command(enum_server_command, THD*, char*, unsigned int) (sql_parse.cc:1484)
==32512== by 0x5D7632: do_command(THD*) (sql_parse.cc:1106)
==32512== Address 0xddee1d8 is 0 bytes after a block of size 520 alloc'd
==32512== at 0x4C2BBAF: malloc (vg_replace_malloc.c:299)
==32512== by 0xED4FAB: my_malloc (my_malloc.c:101)
==32512== by 0x68C2C8: String::realloc_raw(unsigned int) (sql_string.cc:100)
==32512== by 0x518047: String::realloc(unsigned int) (sql_string.h:331)
==32512== by 0x68D85A: String::reserve(unsigned int, unsigned int) (sql_string.cc:699)
==32512== by 0x9CFD7B: Gcalc_function::reserve_op_buffer(unsigned int) (gcalc_tools.cc:113)
==32512== by 0x8A83BD: Item_func_spatial_relate::val_int() (item_geofunc.cc:1245)
==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512)
==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
==32512== Conditional jump or move depends on uninitialised value(s)
==32512== at 0x9CFE64: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:132)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512)
==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
==32512== Conditional jump or move depends on uninitialised value(s)
==32512== at 0x9CFEB5: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:142)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512)
==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
==32512== Use of uninitialised value of size 8
==32512== at 0x9CFED3: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:145)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512)
==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
==32512== Use of uninitialised value of size 8
==32512== at 0x9CFEE7: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:145)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512)
==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)
==32512== Conditional jump or move depends on uninitialised value(s)
==32512== at 0x9D0179: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:224)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x9D0046: Gcalc_function::count_internal(char const*, unsigned int, char const**) (gcalc_tools.cc:183)
==32512== by 0x8AE284: Gcalc_function::count() (gcalc_tools.h:124)
==32512== by 0x9D0571: Gcalc_function::check_function(Gcalc_scan_iterator&) (gcalc_tools.cc:344)
==32512== by 0x8A866F: Item_func_spatial_relate::val_int() (item_geofunc.cc:1263)
==32512== by 0x848710: Item::send(Protocol*, String*) (item.cc:6569)
==32512== by 0x522485: Protocol::send_result_set_row(List<Item>*) (protocol.cc:914)
==32512== by 0x59B9E5: select_send::send_data(List<Item>&) (sql_class.cc:2837)
==32512== by 0x61E910: JOIN::exec_inner() (sql_select.cc:2591)
==32512== by 0x61E382: JOIN::exec() (sql_select.cc:2512)
==32512== by 0x621A06: mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) (sql_select.cc:3449)
==32512== by 0x617229: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:384)
==32512== by 0x5E6584: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5912)
==32512== by 0x5DC79E: mysql_execute_command(THD*) (sql_parse.cc:2982)
==32512== by 0x5E9C92: mysql_parse(THD*, char*, unsigned int, Parser_state*) (sql_parse.cc:7333)