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

Bug #849789 reported by Philip Stoev
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.

# 2011-09-14T11:43:03 #8 0x006b0d98 in __assert_fail () from /lib/libc.so.6
# 2011-09-14T11:43:03 #9 0x0836833d in Gcalc_operation_reducer::count_slice (this=0xa75ab548, si=0x95735924) at gcalc_tools.cc:786
# 2011-09-14T11:43:03 #10 0x08368e4e in Gcalc_operation_reducer::count_all (this=0xa75ab548, hp=0xa75ab3f4) at gcalc_tools.cc:1076
# 2011-09-14T11:43:03 #11 0x0825d817 in Item_func_buffer::val_str (this=0xa75ab370, str_value=0x95735acc) at item_geofunc.cc:1483
# 2011-09-14T11:43:03 #12 0x08259b55 in Item_func_envelope::val_str (this=0xa75ab6c0, str=0x95735b1c) at item_geofunc.cc:196
# 2011-09-14T11:43:03 #13 0x08259e95 in Item_func_spatial_decomp::val_str (this=0xa75ab860, str=0xa7582dac) at item_geofunc.cc:254
# 2011-09-14T11:43:03 #14 0x0825e22d in Item_func_numpoints::val_int (this=0xa7582d28) at item_geofunc.cc:1653
# 2011-09-14T11:43:03 #15 0x0825a0bc in Item_func_spatial_decomp_n::val_str (this=0xa7582ed0, str=0x95735c0c) at item_geofunc.cc:302
# 2011-09-14T11:43:03 #16 0x08259e95 in Item_func_spatial_decomp::val_str (this=0xa7583070, str=0x95735c60) at item_geofunc.cc:254
# 2011-09-14T11:43:03 #17 0x08259793 in Item_func_as_wkt::val_str (this=0xa7583210, str=0x95736060) at item_geofunc.cc:123
# 2011-09-14T11:43:03 #18 0x081dbb81 in Item::send (this=0xa7583210, protocol=0xb54d984, buffer=0x95736060) at item.cc:5905
# 2011-09-14T11:43:03 #19 0x08289528 in select_send::send_data (this=0xa7583408, items=...) at sql_class.cc:1919
# 2011-09-14T11:43:03 #20 0x08326378 in JOIN::exec (this=0x91516a60) at sql_select.cc:2069
# 2011-09-14T11:43:03 #21 0x08328d94 in mysql_select (thd=0xb54d658, rref_pointer_array=0xb54f170, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0,
# 2011-09-14T11:43:03 having=0x0, proc_param=0x0, select_options=2147764736, result=0xa7583408, unit=0xb54ed74, select_lex=0xb54f050) at sql_select.cc:2885
# 2011-09-14T11:43:03 #22 0x08320c5f in handle_select (thd=0xb54d658, lex=0xb54ed18, result=0xa7583408, setup_tables_done_option=0) at sql_select.cc:283
# 2011-09-14T11:43:03 #23 0x082bc38f in execute_sqlcom_select (thd=0xb54d658, all_tables=0x0) at sql_parse.cc:5082
# 2011-09-14T11:43:03 #24 0x082b3193 in mysql_execute_command (thd=0xb54d658) at sql_parse.cc:2227
# 2011-09-14T11:43:03 #25 0x082be9cb in mysql_parse (thd=0xb54d658,
# 2011-09-14T11:43:03 rawbuf=0xa75a9a18 "SELECT ASTEXT( STARTPOINT( INTERIORRINGN( POLYGONFROMTEXT(' POLYGON( (3 5, 2 4, 2 5, 3 5) ) ') , NUMPOINTS( EXTERIORRING( ENVELOPE( ST_BUFFER( ST_UNION( MULTILINESTRINGFROMTEXT(' MULTILINESTRING( ( 9 9 , 6 5 , 8 2 , 0 0 ) , ( 7 8 , 2 7 , 5 3 , 3 9 ) , ( 9 4 , 5 8 , 3 9 , 6 1 ) ) ') , LINESTRINGFROMTEXT(' LINESTRING( 5 0 , 8 7 , 0 9 , 3 9 , 0 8 , 7 4 ) ') ) , NUMGEOMETRIES( GEOMETRYCOLLECTIONFROMTEXT(' GEOMETRYCOLLECTION( LINESTRING( 2 5 , 0 1 , 8 5 , 2 5 , 0 7 ) , POINT( 4 5 ) ) ') ) ) ) ) ) ) ) )", length=512, found_semicolon=0x95737228) at sql_parse.cc:6083
# 2011-09-14T11:43:03 #26 0x082b0e2f in dispatch_command (command=COM_QUERY, thd=0xb54d658, packet=0xb567ba1 "", packet_length=512) at sql_parse.cc:1206
# 2011-09-14T11:43:03 #27 0x082b02b5 in do_command (thd=0xb54d658) at sql_parse.cc:904
# 2011-09-14T11:43:03 #28 0x082ad330 in handle_one_connection (arg=0xb54d658) at sql_connect.cc:1177
# 2011-09-14T11:43:03 #29 0x00821919 in start_thread () from /lib/libpthread.so.0
# 2011-09-14T11:43:03 #30 0x0076acce in clone () from /lib/libc.so.6
# 2011-09-14T11:43:03 #5 0x00feb424 in __kernel_vsyscall ()

bzr version-info /home/philips/bzr/maria-5.3-gis/
revision-id: <email address hidden>
date: 2011-09-13 18:26:16 +0500
build-date: 2011-09-14 11:44:45 +0300
revno: 3001
branch-nick: maria-5.3-gis

unsimplified query:

SELECT ASTEXT( STARTPOINT( INTERIORRINGN( POLYGONFROMTEXT(' POLYGON( (3 5, 2 4, 2 5, 3 5) ) ') , NUMPOINTS( EXTERIORRING( ENVELOPE( ST_BUFFER( ST_UNION( MULTILINESTRINGFROMTEXT(' MULTILINESTRING( ( 9 9 , 6 5 , 8 2 , 0 0 ) , ( 7 8 , 2 7 , 5 3 , 3 9 ) , ( 9 4 , 5 8 , 3 9 , 6 1 ) ) ') , LINESTRINGFROMTEXT(' LINESTRING( 5 0 , 8 7 , 0 9 , 3 9 , 0 8 , 7 4 ) ') ) , NUMGEOMETRIES( GEOMETRYCOLLECTIONFROMTEXT(' GEOMETRYCOLLECTION( LINESTRING( 2 5 , 0 1 , 8 5 , 2 5 , 0 7 ) , POINT( 4 5 ) ) ') ) ) ) ) ) ) ) );

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.