Fourth assertion `n > 0 && n < SINUSES_CALCULATED*2+1' in get_n_sincos

Bug #849791 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: item_geofunc.cc:1121: void get_n_sincos(int, double*, double*): Assertion `n > 0 && n < SINUSES_CALCULATED*2+1' failed.

# 2011-09-14T11:46:06 #8 0x006b0d98 in __assert_fail () from /lib/libc.so.6
# 2011-09-14T11:46:06 #9 0x0825c4ba in get_n_sincos (n=65, sinus=0xa7656980, cosinus=0xa7656978) at item_geofunc.cc:1121
# 2011-09-14T11:46:06 #10 0x0825c68b in fill_gap (trn=0xa7656a6c, x=-1.7976931348623157e+308, y=1.7976931348623157e+308, ax=-0, ay=nan(0x8000000000000), bx=-nan(0x8000000000000),
# 2011-09-14T11:46:06 by=-0, d=1, empty_gap=0xa7656a27) at item_geofunc.cc:1167
# 2011-09-14T11:46:06 #11 0x0825c9fd in Item_func_buffer::Transporter::add_edge_buffer (this=0xa7656b8c, x3=-1.7976931348623157e+308, y3=-1.7976931348623157e+308, round_p1=true,
# 2011-09-14T11:46:06 round_p2=false) at item_geofunc.cc:1231
# 2011-09-14T11:46:06 #12 0x0825d31c in Item_func_buffer::Transporter::add_point (this=0xa7656b8c, x=-1.7976931348623157e+308, y=-1.7976931348623157e+308) at item_geofunc.cc:1374
# 2011-09-14T11:46:06 #13 0x08483f35 in Gis_line_string::store_shapes (this=0xa7656c04, trn=0xa7656b8c) at spatial.cc:727
# 2011-09-14T11:46:06 #14 0x0825d79b in Item_func_buffer::val_str (this=0xb6d0c750, str_value=0xa7657060) at item_geofunc.cc:1475
# 2011-09-14T11:46:06 #15 0x08259a1f in Item_func_geometry_type::val_str (this=0xb6d0caa0, str=0xa7657060) at item_geofunc.cc:170
# 2011-09-14T11:46:06 #16 0x081dbb81 in Item::send (this=0xb6d0caa0, protocol=0xa977984, buffer=0xa7657060) at item.cc:5905
# 2011-09-14T11:46:06 #17 0x08289528 in select_send::send_data (this=0xb6d0cc98, items=...) at sql_class.cc:1919
# 2011-09-14T11:46:06 #18 0x08326378 in JOIN::exec (this=0xb6d1add8) at sql_select.cc:2069
# 2011-09-14T11:46:06 #19 0x08328d94 in mysql_select (thd=0xa977658, rref_pointer_array=0xa979170, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0,
# 2011-09-14T11:46:06 having=0x0, proc_param=0x0, select_options=2147764736, result=0xb6d0cc98, unit=0xa978d74, select_lex=0xa979050) at sql_select.cc:2885
# 2011-09-14T11:46:06 #20 0x08320c5f in handle_select (thd=0xa977658, lex=0xa978d18, result=0xb6d0cc98, setup_tables_done_option=0) at sql_select.cc:283
# 2011-09-14T11:46:06 #21 0x082bc38f in execute_sqlcom_select (thd=0xa977658, all_tables=0x0) at sql_parse.cc:5082
# 2011-09-14T11:46:06 #22 0x082b3193 in mysql_execute_command (thd=0xa977658) at sql_parse.cc:2227
# 2011-09-14T11:46:06 #23 0x082be9cb in mysql_parse (thd=0xa977658,
# 2011-09-14T11:46:06 rawbuf=0xb6d0b150 "SELECT GeometryType( ST_BUFFER( EXTERIORRING( ENVELOPE( ST_INTERSECTION( LINESTRINGFROMTEXT(' LINESTRING( 3 0 , 9 4 , 0 1 , 7 6 ) ') , MULTILINESTRINGFROMTEXT(' MULTILINESTRING( ( 7 7 , 2 7, 7 9, 7 8 , 7 7 ) ) ') ) ) ) , CAST( ISCLOSED( MULTILINESTRINGFROMTEXT(' MULTILINESTRING( ( 0 0 , 8 1 , 0 2 , 0 0 ) ) ') ) AS INTEGER ) ) )", length=334, found_semicolon=0xa7658228) at sql_parse.cc:6083
# 2011-09-14T11:46:06 #24 0x082b0e2f in dispatch_command (command=COM_QUERY, thd=0xa977658, packet=0xa979b99 "", packet_length=334) at sql_parse.cc:1206
# 2011-09-14T11:46:06 #25 0x082b02b5 in do_command (thd=0xa977658) at sql_parse.cc:904
# 2011-09-14T11:46:06 #26 0x082ad330 in handle_one_connection (arg=0xa977658) at sql_connect.cc:1177
# 2011-09-14T11:46:06 #27 0x00821919 in start_thread () from /lib/libpthread.so.0
# 2011-09-14T11:46:06 #28 0x0076acce in clone () from /lib/libc.so.6
# 2011-09-14T11:46:06 #5 0x00f40424 in __kernel_vsyscall ()

test case:

SELECT GeometryType( ST_BUFFER( EXTERIORRING( ENVELOPE( ST_INTERSECTION( LINESTRINGFROMTEXT(' LINESTRING( 3 0 , 9 4 , 0 1 , 7 6 ) ') , MULTILINESTRINGFROMTEXT(' MULTILINESTRING( ( 7 7 , 2 7, 7 9, 7 8 , 7 7 ) ) ') ) ) ) , CAST( ISCLOSED( MULTILINESTRINGFROMTEXT(' MULTILINESTRING( ( 0 0 , 8 1 , 0 2 , 0 0 ) ) ') ) AS INTEGER ) ) )

bzr version-info
revision-id: philips@eve-20110627151014-w1e4qoaayy8tgrjs
date: 2011-06-27 18:10:14 +0300
build-date: 2011-09-14 11:48:45 +0300
revno: 836
branch-nick: randgen-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.