[MDEV-2894] LP:805860 - Second assertion Assertion `n > 0 && n < SINUSES_CALCULATED*2+1' in get_n_sincos in maria-5.3-gis Created: 2011-07-05  Updated: 2015-02-02  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Philip Stoev (Inactive) Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug805860.xml    

 Description   

backtrace:

#6 0x00000033b58296e6 in __assert_fail () from /lib64/libc.so.6
#7 0x0000000000641c4f in get_n_sincos (n=65, sinus=0x41b66c50, cosinus=0x41b66c48) at item_geofunc.cc:1112
#8 0x0000000000641e53 in fill_gap (trn=0x41b66cd0, x=7, y=6, ax=nan(0x8000000000000), ay=nan(0x8000000000000), bx=1, by=-0, d=1, empty_gap=0x41b66d16)
at item_geofunc.cc:1158
#9 0x00000000006469b7 in Item_func_buffer::Transporter::add_edge_buffer (this=0x41b66ed0, x3=7, y3=6, round_p1=false, round_p2=false)
at item_geofunc.cc:1231
#10 0x0000000000646e23 in Item_func_buffer::Transporter::complete (this=0x41b66ed0) at item_geofunc.cc:1407
#11 0x0000000000646e57 in Item_func_buffer::Transporter::complete_ring (this=0x41b66ed0) at item_geofunc.cc:1433
#12 0x00000000008b8c6f in Gis_polygon::store_shapes (this=0x41b66e60, trn=0x41b66ed0) at spatial.cc:1152
#13 0x00000000008b8daf in Gis_multi_polygon::store_shapes (this=0x41b66f80, trn=0x41b66ed0) at spatial.cc:1987
#14 0x00000000006459c6 in Item_func_buffer::val_str (this=0xeda5cc8, str_value=0x41b67400) at item_geofunc.cc:1466
#15 0x000000000059dcbf in Item::send (this=0xeda5cc8, protocol=0xed5e6f8, buffer=0x41b67400) at item.cc:5905
#16 0x0000000000680b89 in select_send::send_data (this=0xeda6180, items=...) at sql_class.cc:1919
#17 0x000000000075d540 in JOIN::exec (this=0xedcabb0) at sql_select.cc:2069
#18 0x0000000000759a10 in mysql_select (thd=0xed5e2f8, rref_pointer_array=0xed60e48, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0,
group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0xeda6180, unit=0xed60740, select_lex=0xed60c28) at sql_select.cc:2885
#19 0x000000000075fdea in handle_select (thd=0xed5e2f8, lex=0xed606a0, result=0xeda6180, setup_tables_done_option=0) at sql_select.cc:283
#20 0x00000000006ad2bc in execute_sqlcom_select (thd=0xed5e2f8, all_tables=0x0) at sql_parse.cc:5082
#21 0x00000000006aef6f in mysql_execute_command (thd=0xed5e2f8) at sql_parse.cc:2227
#22 0x00000000006b7d07 in mysql_parse (thd=0xed5e2f8,
rawbuf=0xeda4ea0 "SELECT\nST_BUFFER(\nST_UNION(\nPOLYGONFROMTEXT(' POLYGON( ( 7 7 , 7 7, 7 4, 7 7 , 7 7 ) ) ') ,\nPOLYGONFROMTEXT(' POLYGON( ( 7 7 , 4 7, 2 9, 7 6 , 7 7 ) ) ') \n) \n, 1\n)", length=165, found_semicolon=0x41b68f08) at sql_parse.cc:6083
#23 0x00000000006b8b9f in dispatch_command (command=COM_QUERY, thd=0xed5e2f8, packet=0xed9bb29 "", packet_length=165) at sql_parse.cc:1206
#24 0x00000000006ba1b1 in do_command (thd=0xed5e2f8) at sql_parse.cc:904
#25 0x00000000006a4c63 in handle_one_connection (arg=0xed5e2f8) at sql_connect.cc:1177
#26 0x00000033b600673d in start_thread () from /lib64/libpthread.so.0
#27 0x00000033b58d40cd in clone () from /lib64/libc.so.6

test case:

SELECT
ST_BUFFER(
ST_UNION(
POLYGONFROMTEXT(' POLYGON( ( 7 7 , 7 7, 7 4, 7 7 , 7 7 ) ) ') ,
POLYGONFROMTEXT(' POLYGON( ( 7 7 , 4 7, 2 9, 7 6 , 7 7 ) ) ')
)
, 1
);

bzr version-info
revision-id: <email address hidden>
date: 2011-07-04 16:17:34 +0500
build-date: 2011-07-05 12:34:40 +0300
revno: 2986
branch-nick: maria-5.3-gis



 Comments   
Comment by Alexey Botchkov [ 2011-07-07 ]

Re: Second assertion Assertion `n > 0 && n < SINUSES_CALCULATED*2+1' in get_n_sincos in maria-5.3-gis
pushed into 5.3-gis

Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ]

Launchpad bug id: 805860

Generated at Thu Feb 08 06:44:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.