Assertion `m_poly_borders->next' failed in Gcalc_operation_reducer::count_slice in maria-5.3-gis

Bug #841625 reported by Philip Stoev on 2011-09-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MariaDB
Fix Released
Undecided
Alexey Botchkov

Bug Description

mysqld: gcalc_tools.cc:786: int Gcalc_operation_reducer::count_slice(Gcalc_scan_iterator*): Assertion `m_poly_borders->next' failed.

#8 0x006b0d98 in __assert_fail () from /lib/libc.so.6
#9 0x08367f79 in Gcalc_operation_reducer::count_slice (this=0xae72e25c, si=0xae981b74) at gcalc_tools.cc:786
#10 0x08368a8a in Gcalc_operation_reducer::count_all (this=0xae72e25c, hp=0xae72e108) at gcalc_tools.cc:1076
#11 0x0825c2c5 in Item_func_spatial_operation::val_str (this=0xae72e080, str_value=0xae982060) at item_geofunc.cc:1039
#12 0x081dbb81 in Item::send (this=0xae72e080, protocol=0xac2bc0c, buffer=0xae982060) at item.cc:5905
#13 0x082894ec in select_send::send_data (this=0xae72e440, items=...) at sql_class.cc:1919
#14 0x0832633c in JOIN::exec (this=0xae621390) at sql_select.cc:2069
#15 0x08328d58 in mysql_select (thd=0xac2b8e0, rref_pointer_array=0xac2d3f8, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0,
    having=0x0, proc_param=0x0, select_options=2147764736, result=0xae72e440, unit=0xac2cffc, select_lex=0xac2d2d8) at sql_select.cc:2885
#16 0x08320c23 in handle_select (thd=0xac2b8e0, lex=0xac2cfa0, result=0xae72e440, setup_tables_done_option=0) at sql_select.cc:283
#17 0x082bc353 in execute_sqlcom_select (thd=0xac2b8e0, all_tables=0x0) at sql_parse.cc:5082
#18 0x082b3157 in mysql_execute_command (thd=0xac2b8e0) at sql_parse.cc:2227
#19 0x082be98f in mysql_parse (thd=0xac2b8e0,
    rawbuf=0xae612eb0 "SELECT ST_DIFFERENCE ( \nST_UNION (\nMULTILINESTRINGFROMTEXT( ' MULTILINESTRING( ( 2 4 , 5 0 , 2 9 , 6 2 , 0 2 ) , ( 4 3 , 5 6 , 9 4 , 0 7 , 7 2 , 2 0 , 8 2 ) , ( 5 0 , 1 5 , 3 7 , 7 7 ) , ( 2 3 , 9 5 "..., length=682, found_semicolon=0xae983228) at sql_parse.cc:6083
#20 0x082b0df3 in dispatch_command (command=COM_QUERY, thd=0xac2b8e0, packet=0xac863e9 "", packet_length=682) at sql_parse.cc:1206
#21 0x082b0279 in do_command (thd=0xac2b8e0) at sql_parse.cc:904
#22 0x082ad2f4 in handle_one_connection (arg=0xac2b8e0) at sql_connect.cc:1177
#23 0x00821919 in start_thread () from /lib/libpthread.so.0
#24 0x0076acce in clone () from /lib/libc.so.6

 bzr version-info
revision-id: <email address hidden>
date: 2011-09-05 09:49:46 +0500
build-date: 2011-09-05 11:41:59 +0300
revno: 2998
branch-nick: maria-5.3-gis

test case:

SELECT ST_DIFFERENCE (
        ST_UNION (
                MULTILINESTRINGFROMTEXT( ' MULTILINESTRING( ( 2 4 , 5 0 , 2 9 , 6 2 , 0 2 ) , ( 4 3 , 5 6 , 9 4 , 0 7 , 7 2 , 2 0 , 8 2 ) , ( 5 0 , 1 5 , 3 7 , 7 7 ) , ( 2 3 , 9 5 , 2 0 , 8 1 ) , ( 0 9 , 9 3 , 2 8 , 8 1 , 9 4 ) ) ' ),
                ST_UNION (
                        MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( ( 2 2 , 7 2 , 6 2 , 2 6 , 2 2 ) ) , ( (3 5, 2 5, 2 4, 3 4, 3 5) ) ) ' ) ,
                        ENVELOPE(
                                MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( (3 5, 2 5, 2 4, 3 4, 3 5) ) ) ' )
                        )
                )
        ),
        MULTILINESTRINGFROMTEXT( ' MULTILINESTRING( ( 2 9 , 1 3 , 7 3 , 8 5 ) , ( 5 0 , 8 1 , 2 0 , 7 4 , 1 0 ) , ( 9 2 , 5 2 , 6 5 , 8 8 , 0 2 ) , ( 0 8 , 3 9 , 4 0 , 1 0 ) , ( 0 0 , 7 6 , 8 3 , 0 0 ) ) ' )
);

Changed in maria:
assignee: nobody → Alexey Botchkov (holyfoot)
Changed in maria:
status: New → Fix Committed
Changed in maria:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers