Second assertion `t->rp->type == Gcalc_function::shape_line' in Gcalc_operation_reducer::end_line()

Bug #849809 reported by Philip Stoev on 2011-09-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MariaDB
Fix Released
Undecided
Alexey Botchkov

Bug Description

mysqld: gcalc_tools.cc:1044: int Gcalc_operation_reducer::end_line(Gcalc_operation_reducer::active_thread*, const Gcalc_heap::Info*, const Gcalc_scan_iterator
*): Assertion `t->rp->type == Gcalc_function::shape_line' failed.

# 2011-09-14T12:08:56 #8 0x006b0d98 in __assert_fail () from /lib/libc.so.6
# 2011-09-14T12:08:56 #9 0x08368d3b in Gcalc_operation_reducer::end_line (this=0xa76a5b18, t=0xa76b5ff8, ev_p=0xa76a9438, si=0xa75fda34) at gcalc_tools.cc:10
44
# 2011-09-14T12:08:56 #10 0x08367cde in Gcalc_operation_reducer::count_slice (this=0xa76a5b18, si=0xa75fda34) at gcalc_tools.cc:638
# 2011-09-14T12:08:56 #11 0x08368e4e in Gcalc_operation_reducer::count_all (this=0xa76a5b18, hp=0xa76a59c4) at gcalc_tools.cc:1076
# 2011-09-14T12:08:56 #12 0x0825d817 in Item_func_buffer::val_str (this=0xa76a5940, str_value=0x915137b8) at item_geofunc.cc:1483
# 2011-09-14T12:08:56 #13 0x0825c074 in Item_func_spatial_operation::val_str (this=0x91513598, str_value=0xa75fdc60) at item_geofunc.cc:1010
# 2011-09-14T12:08:56 #14 0x08259793 in Item_func_as_wkt::val_str (this=0x915138f0, str=0xa75fe060) at item_geofunc.cc:123
# 2011-09-14T12:08:56 #15 0x081dbb81 in Item::send (this=0x915138f0, protocol=0xaac7824, buffer=0xa75fe060) at item.cc:5905
# 2011-09-14T12:08:56 #16 0x08289528 in select_send::send_data (this=0x91513ae8, items=...) at sql_class.cc:1919
# 2011-09-14T12:08:56 #17 0x08326378 in JOIN::exec (this=0x91504028) at sql_select.cc:2069
# 2011-09-14T12:08:56 #18 0x08328d94 in mysql_select (thd=0xaac74f8, rref_pointer_array=0xaac9010, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, or
der=0x0, group=0x0,
# 2011-09-14T12:08:56 having=0x0, proc_param=0x0, select_options=2147764736, result=0x91513ae8, unit=0xaac8c14, select_lex=0xaac8ef0) at sql_select.cc:288
5
# 2011-09-14T12:08:56 #19 0x08320c5f in handle_select (thd=0xaac74f8, lex=0xaac8bb8, result=0x91513ae8, setup_tables_done_option=0) at sql_select.cc:283
# 2011-09-14T12:08:56 #20 0x082bc38f in execute_sqlcom_select (thd=0xaac74f8, all_tables=0x0) at sql_parse.cc:5082
# 2011-09-14T12:08:56 #21 0x082b3193 in mysql_execute_command (thd=0xaac74f8) at sql_parse.cc:2227
# 2011-09-14T12:08:56 #22 0x082be9cb in mysql_parse (thd=0xaac74f8,
# 2011-09-14T12:08:56 rawbuf=0xa76a4c10 "SELECT ASTEXT( ST_DIFFERENCE( ST_BUFFER( MULTILINESTRINGFROMTEXT(' MULTILINESTRING( ( 9 9 , 7 8 , 1 5 , 9 9 ) )
 ') , NUMPOINTS( LINESTRINGFROMTEXT(' LINESTRING( 4 2 , 9 8 , 0 4 , 9 4 , 3 1 , 0 3 , 9 0 , 0 5 ) ') ) ) , ST_BUFFER( ST_SYMDIFFERENCE( MULTIPOINTFROMTEXT('
  MULTIPOINT( 1 1 , 7 3 , 4 0 , 3 9 , 5 1 , 6 6 ) ') , ENDPOINT( LINESTRINGFROMTEXT(' LINESTRING( 3 1 , 8 8 , 0 4 , 6 7 , 5 3 ) ') ) ) , DIMENSION( GEOMETR
YFROMTEXT(' POINT( 7 6 ) ') ) ) ) )", length=465, found_semicolon=0xa75ff228) at sql_parse.cc:6083
# 2011-09-14T12:08:56 #23 0x082b0e2f in dispatch_command (command=COM_QUERY, thd=0xaac74f8, packet=0xaac9a39 "", packet_length=465) at sql_parse.cc:1206
# 2011-09-14T12:08:56 #24 0x082b02b5 in do_command (thd=0xaac74f8) at sql_parse.cc:904
# 2011-09-14T12:08:56 #25 0x082ad330 in handle_one_connection (arg=0xaac74f8) at sql_connect.cc:1177
# 2011-09-14T12:08:56 #26 0x00821919 in start_thread () from /lib/libpthread.so.0
# 2011-09-14T12:08:56 #27 0x0076acce in clone () from /lib/libc.so.6
# 2011-09-14T12:08:56 #5 0x0087f424 in __kernel_vsyscall ()

query:

SELECT ASTEXT( ST_DIFFERENCE( ST_BUFFER( MULTILINESTRINGFROMTEXT(' MULTILINESTRING( ( 9 9 , 7 8 , 1 5 , 9 9 ) )
 ') , NUMPOINTS( LINESTRINGFROMTEXT(' LINESTRING( 4 2 , 9 8 , 0 4 , 9 4 , 3 1 , 0 3 , 9 0 , 0 5 ) ') ) ) , ST_BUFFER( ST_SYMDIFFERENCE( MULTIPOINTFROMTEXT('
  MULTIPOINT( 1 1 , 7 3 , 4 0 , 3 9 , 5 1 , 6 6 ) ') , ENDPOINT( LINESTRINGFROMTEXT(' LINESTRING( 3 1 , 8 8 , 0 4 , 6 7 , 5 3 ) ') ) ) , DIMENSION( GEOMETR
YFROMTEXT(' POINT( 7 6 ) ') ) ) ) );

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

Other bug subscribers