Second assertion `!m_prev || m_prev->x != x || m_prev->y != y' in Gcalc_shape_transporter::int_add_point in maria-5.3-gis

Bug #849795 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_slicescan.cc:186: int Gcalc_shape_transporter::int_add_point(gcalc_shape_info, double, double): Assertion `!m_prev || m_prev->x != x || m_prev->y != y' failed.

backtrace:

# 2011-09-14T11:50:37 #8 0x006b0d98 in __assert_fail () from /lib/libc.so.6
# 2011-09-14T11:50:37 #9 0x08364937 in Gcalc_shape_transporter::int_add_point (this=0xa74b5a5c, Info=63, x=8.5172717472016739, y=16.382588503218937) at gcalc_slicescan.cc:186
# 2011-09-14T11:50:37 #10 0x08367031 in Gcalc_operation_transporter::add_point (this=0xa74b5a5c, x=8.5172717472016739, y=16.382588503218937) at gcalc_tools.cc:303
# 2011-09-14T11:50:37 #11 0x0825cccf in Item_func_buffer::Transporter::add_edge_buffer (this=0xa74b5b8c, x3=1.1420914803538449, y3=14.962375916754436, round_p1=false,
# 2011-09-14T11:50:37 round_p2=false) at item_geofunc.cc:1253
# 2011-09-14T11:50:37 #12 0x0825d31c in Item_func_buffer::Transporter::add_point (this=0xa74b5b8c, x=1.1420914803538449, y=14.962375916754436) at item_geofunc.cc:1374
# 2011-09-14T11:50:37 #13 0x084850a9 in Gis_polygon::store_shapes (this=0xa74b5c04, trn=0xa74b5b8c) at spatial.cc:1180
# 2011-09-14T11:50:37 #14 0x0825d79b in Item_func_buffer::val_str (this=0xa0c9f60, str_value=0xa74b6060) at item_geofunc.cc:1475
# 2011-09-14T11:50:37 #15 0x08259a1f in Item_func_geometry_type::val_str (this=0xa0c1888, str=0xa74b6060) at item_geofunc.cc:170
# 2011-09-14T11:50:37 #16 0x081dbb81 in Item::send (this=0xa0c1888, protocol=0xa0b4454, buffer=0xa74b6060) at item.cc:5905
# 2011-09-14T11:50:37 #17 0x08289528 in select_send::send_data (this=0xa0c1918, items=...) at sql_class.cc:1919
# 2011-09-14T11:50:37 #18 0x08326378 in JOIN::exec (this=0xa0dcca8) at sql_select.cc:2069
# 2011-09-14T11:50:37 #19 0x08328d94 in mysql_select (thd=0xa0b4128, rref_pointer_array=0xa0b5c40, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0,
# 2011-09-14T11:50:37 having=0x0, proc_param=0x0, select_options=2147764736, result=0xa0c1918, unit=0xa0b5844, select_lex=0xa0b5b20) at sql_select.cc:2885
# 2011-09-14T11:50:37 #20 0x08320c5f in handle_select (thd=0xa0b4128, lex=0xa0b57e8, result=0xa0c1918, setup_tables_done_option=0) at sql_select.cc:283
# 2011-09-14T11:50:37 #21 0x082bc38f in execute_sqlcom_select (thd=0xa0b4128, all_tables=0x0) at sql_parse.cc:5082
# 2011-09-14T11:50:37 #22 0x082b3193 in mysql_execute_command (thd=0xa0b4128) at sql_parse.cc:2227
# 2011-09-14T11:50:37 #23 0x082be9cb in mysql_parse (thd=0xa0b4128,
# 2011-09-14T11:50:37 rawbuf=0xa0bf950 "SELECT GeometryType( ST_BUFFER( ST_BUFFER( ST_BUFFER( MULTIPOLYGONFROMTEXT(' MULTIPOLYGON( ( (3 5, 2 4, 2 5, 3 5) ) ) ') , CAST( X( POINTFROMTEXT(' POINT( 5 3 ) ') ) AS INTEGER ) ) , NUMPOINTS( EXTERIORRING( ENVELOPE( ENVELOPE( POLYGONFROMTEXT(' POLYGON( ( 2 2 , 6 2 , 9 3 , 2 3 , 2 2 ) ) ') ) ) ) ) ) , CAST( X( POINTFROMTEXT(' POINT( 8 7 ) ') ) AS INTEGER ) ) )", length=371, found_semicolon=0xa74b7228) at sql_parse.cc:6083
# 2011-09-14T11:50:37 #24 0x082b0e2f in dispatch_command (command=COM_QUERY, thd=0xa0b4128, packet=0xa0b6669 "", packet_length=371) at sql_parse.cc:1206
# 2011-09-14T11:50:37 #25 0x082b02b5 in do_command (thd=0xa0b4128) at sql_parse.cc:904
# 2011-09-14T11:50:37 #26 0x082ad330 in handle_one_connection (arg=0xa0b4128) at sql_connect.cc:1177
# 2011-09-14T11:50:37 #27 0x00821919 in start_thread () from /lib/libpthread.so.0
# 2011-09-14T11:50:37 #28 0x0076acce in clone () from /lib/libc.so.6
# 2011-09-14T11:50:37 #5 0x00c6d424 in __kernel_vsyscall ()

query:

SELECT GeometryType( ST_BUFFER( ST_BUFFER( ST_BUFFER( MULTIPOLYGONFROMTEXT(' MULTIPOLYGON( ( (3 5, 2 4, 2 5, 3 5) ) ) ') , CAST( X( POINTFROMTEXT(' POINT( 5 3 ) ') ) AS INTEGER ) ) , NUMPOINTS( EXTERIORRING( ENVELOPE( ENVELOPE( POLYGONFROMTEXT(' POLYGON( ( 2 2 , 6 2 , 9 3 , 2 3 , 2 2 ) ) ') ) ) ) ) ) , CAST( X( POINTFROMTEXT(' POINT( 8 7 ) ') ) AS INTEGER ) ) )

bzr version-info

revision-id: <email address hidden>
date: 2011-09-13 18:26:16 +0500
build-date: 2011-09-14 11:53:42 +0300
revno: 3001
branch-nick: maria-5.3-gis

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.