# Assertion 0 in Gcalc_scan_iterator::pop_suitable_intersection in maria-5.3-gis

Bug #804324 reported by Philip Stoev on 2011-07-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Undecided

### Bug Description

mysqld: gcalc_slicescan.cc:670: void Gcalc_scan_iterator::pop_suitable_intersection(): Assertion `0' failed.
1

backtrace:

#8 0x006b0d98 in __assert_fail () from /lib/libc.so.6
#9 0x08365258 in Gcalc_scan_iterator::pop_suitable_intersection (this=0xae8dfb38) at gcalc_slicescan.cc:670
#10 0x08365403 in Gcalc_scan_iterator::intersection_scan (this=0xae8dfb38) at gcalc_slicescan.cc:727
#11 0x0836511d in Gcalc_scan_iterator::handle_intersections (this=0xae8dfb38) at gcalc_slicescan.cc:634
#12 0x08364d0a in Gcalc_scan_iterator::normal_scan (this=0xae8dfb38) at gcalc_slicescan.cc:507
#13 0x0825edd8 in Gcalc_scan_iterator::step (this=0xae8dfb38) at gcalc_slicescan.h:312
#14 0x083675f0 in Gcalc_operation_reducer::count_all (this=0xae51481c, hp=0xae5146e0) at gcalc_tools.cc:980
#15 0x0825beb5 in Item_func_spatial_operation::val_str (this=0xae514658, str_value=0xae8dfc60) at item_geofunc.cc:1027
#16 0x082593e3 in Item_func_as_wkt::val_str (this=0xae514998, str=0xae8e0060) at item_geofunc.cc:123
#17 0x081db7d1 in Item::send (this=0xae514998, protocol=0xa512c0c, buffer=0xae8e0060) at item.cc:5905
#18 0x08288eb8 in select_send::send_data (this=0xae514b90, items=...) at sql_class.cc:1919
#19 0x08325d08 in JOIN::exec (this=0xae521390) at sql_select.cc:2069
#20 0x08328724 in mysql_select (thd=0xa5128e0, rref_pointer_array=0xa5143f8, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0,
having=0x0, proc_param=0x0, select_options=2147764736, result=0xae514b90, unit=0xa513ffc, select_lex=0xa5142d8) at sql_select.cc:2885
#21 0x083205ef in handle_select (thd=0xa5128e0, lex=0xa513fa0, result=0xae514b90, setup_tables_done_option=0) at sql_select.cc:283
#22 0x082bbd1f in execute_sqlcom_select (thd=0xa5128e0, all_tables=0x0) at sql_parse.cc:5082
#23 0x082b2b23 in mysql_execute_command (thd=0xa5128e0) at sql_parse.cc:2227
#24 0x082be35b in mysql_parse (thd=0xa5128e0,
rawbuf=0xae512eb0 "SELECT ASTEXT( ST_UNION ( ST_UNION ( MULTILINESTRINGFROMTEXT( ' MULTILINESTRING( ( 2 0 , 4 2 , 0 2 , 1 5 , 0 3 , 7 0 , 8 5 , 5 8 ) , ( 6 2 , 4 0 , 3 5 , 3 6 , 4 3 , 6 4 , 3 9 , 0 7 , 3 7 , 8 4 , 2 "..., length=677, found_semicolon=0xae8e1228) at sql_parse.cc:6083
#25 0x082b07bf in dispatch_command (command=COM_QUERY, thd=0xa5128e0, packet=0xa56d3e9 "", packet_length=680) at sql_parse.cc:1206
#26 0x082afc45 in do_command (thd=0xa5128e0) at sql_parse.cc:904
#27 0x082accc0 in handle_one_connection (arg=0xa5128e0) at sql_connect.cc:1177
#29 0x0076acce in clone () from /lib/libc.so.6

test case

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

bzr version-info
date: 2011-06-30 19:24:52 +0500
build-date: 2011-07-01 16:35:32 +0300
revno: 2984
branch-nick: maria-5.3-gis

## Related branches

 Changed in maria: milestone: none → 5.3 assignee: nobody → Alexey Botchkov (holyfoot)
 Alexey Botchkov (holyfoot) wrote on 2011-07-07: #1

fix pushed into 5.3-gis

 Changed in maria: status: New → Fix Committed
 Changed in maria: status: Fix Committed → Fix Released
This report contains Public information  Edit
Everyone can see this information.
Subscribing...