<?xml version="1.0" encoding="utf-8"?>
<launchpad-bug id="841622">
  <date_last_updated>2011-12-13 16:11:40.314778+00:00</date_last_updated>
  <api_links>
    <bug_api_link>https://api.launchpad.net/1.0/bugs/841622</bug_api_link>
    <bug_owner_link>https://api.launchpad.net/1.0/~pstoev-askmonty</bug_owner_link>
    <milestone_link></milestone_link>
    <linked_branches_collection_link>https://api.launchpad.net/1.0/bugs/841622/linked_branches</linked_branches_collection_link>
    <activity_link>https://api.launchpad.net/1.0/bugs/841622/activity</activity_link>
  </api_links>
  <bug_web_link>https://bugs.launchpad.net/bugs/841622</bug_web_link>
  <owner>Philip Stoev</owner>
  <assignee>Alexey Botchkov</assignee>
  <milestone_title></milestone_title>
  <duplicate_link></duplicate_link>
  <duplicate_bug_id></duplicate_bug_id>
  <title> Assertion `t-&gt;rp-&gt;type == Gcalc_function::shape_line' failed in Gcalc_operation_reducer::end_line in maria-5.3-gis</title>
  <status>Fix Released</status>
  <importance>Undecided</importance>
  <created>2011-09-05 08:30:26.680164+00:00</created>
  <description>
<![CDATA[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.

#8  0x006b0d98 in __assert_fail () from /lib/libc.so.6
#9  0x08368977 in Gcalc_operation_reducer::end_line (this=0xae713e48, t=0xae7b41c0, ev_p=0xae797818, si=0xae8fdb04) at gcalc_tools.cc:1044
#10 0x0836791a in Gcalc_operation_reducer::count_slice (this=0xae713e48, si=0xae8fdb04) at gcalc_tools.cc:638
#11 0x08368a8a in Gcalc_operation_reducer::count_all (this=0xae713e48, hp=0xae713cf4) at gcalc_tools.cc:1076
#12 0x0825d817 in Item_func_buffer::val_str (this=0xae713c70, str_value=0xae8fe060) at item_geofunc.cc:1483
#13 0x081dbb81 in Item::send (this=0xae713c70, protocol=0xa3b6c0c, buffer=0xae8fe060) at item.cc:5905
#14 0x082894ec in select_send::send_data (this=0xae714018, items=...) at sql_class.cc:1919
#15 0x0832633c in JOIN::exec (this=0xae720a60) at sql_select.cc:2069
#16 0x08328d58 in mysql_select (thd=0xa3b68e0, rref_pointer_array=0xa3b83f8, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0,
    having=0x0, proc_param=0x0, select_options=2147764736, result=0xae714018, unit=0xa3b7ffc, select_lex=0xa3b82d8) at sql_select.cc:2885
#17 0x08320c23 in handle_select (thd=0xa3b68e0, lex=0xa3b7fa0, result=0xae714018, setup_tables_done_option=0) at sql_select.cc:283
#18 0x082bc353 in execute_sqlcom_select (thd=0xa3b68e0, all_tables=0x0) at sql_parse.cc:5082
#19 0x082b3157 in mysql_execute_command (thd=0xa3b68e0) at sql_parse.cc:2227
#20 0x082be98f in mysql_parse (thd=0xa3b68e0,
    rawbuf=0xae7125e0 "SELECT ST_BUFFER(\nST_UNION(\nMULTILINESTRINGFROMTEXT( '  MULTILINESTRING( ( 3 4 , 2 5 , 7 6 , 1 8 ) , ( 0 0 , 1 6 , 0 1 , 8 9 , 2 4 , 6 1 , 3 5 , 4 8 ) , ( 9 3 , 5 4 , 1 8 , 4 2 , 5 8 , 3 0 ) )' )  ,\nM"..., length=470, found_semicolon=0xae8ff228) at sql_parse.cc:6083
#21 0x082b0df3 in dispatch_command (command=COM_QUERY, thd=0xa3b68e0, packet=0xa4113e9 "", packet_length=470) at sql_parse.cc:1206
#22 0x082b0279 in do_command (thd=0xa3b68e0) at sql_parse.cc:904
#23 0x082ad2f4 in handle_one_connection (arg=0xa3b68e0) at sql_connect.cc:1177
#24 0x00821919 in start_thread () from /lib/libpthread.so.0
#25 0x0076acce in clone () from /lib/libc.so.6

revision-id: <email address hidden>
date: 2011-09-05 09:49:46 +0500
build-date: 2011-09-05 11:30:10 +0300
revno: 2998
branch-nick: maria-5.3-gis


test case:

SELECT ST_BUFFER(
        ST_UNION(
                MULTILINESTRINGFROMTEXT( '  MULTILINESTRING( ( 3 4 , 2 5 , 7 6 , 1 8 ) , ( 0 0 , 1 6 , 0 1 , 8 9 , 2 4 , 6 1 , 3 5 , 4 8 ) , ( 9 3 , 5 4 , 1 8 , 4 2 , 5 8 , 3 0 ) )' )  ,
                MULTILINESTRINGFROMTEXT( '  MULTILINESTRING( ( 3 4 , 3 1 , 2 7 , 4 2 , 6 2 , 1 5 ) ) ' )
        ),  AREA(
                MULTIPOLYGONFROMTEXT( '  MULTIPOLYGON( ( ( 7 7 , 6 7, 1 5, 7 6 , 7 7 ) ) , ( (0 5, 3 5, 3 4, 1 4 , 1 3 , 3 3 , 3 0 , 0 0 , 0 5), ( 1 1 , 2 1 , 2 2 , 1 2 , 1 1 ) ) ) ' )
        )
);]]>  </description>
  <activities>
    <activity datechanged="2011-09-05T08:30:26.680164+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>Philip Stoev</person>
      <message>added bug</message>
    </activity>
    <activity datechanged="2011-09-05T08:30:34.131564+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[Alexey Botchkov (holyfoot)]]>      </newvalue>
      <whatchanged>maria: assignee</whatchanged>
      <person>Philip Stoev</person>
      <message></message>
    </activity>
    <activity datechanged="2011-09-05T08:30:43.013590+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[lp:~maria-captains/maria/5.3-gis]]>      </newvalue>
      <whatchanged>branch linked</whatchanged>
      <person>Philip Stoev</person>
      <message></message>
    </activity>
    <activity datechanged="2011-09-13T11:07:49.910824+00:00">
      <oldvalue>
<![CDATA[New]]>      </oldvalue>
      <newvalue>
<![CDATA[Fix Committed]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Alexey Botchkov</person>
      <message></message>
    </activity>
    <activity datechanged="2011-12-13T16:11:39.675896+00:00">
      <oldvalue>
<![CDATA[Fix Committed]]>      </oldvalue>
      <newvalue>
<![CDATA[Fix Released]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Daniel Bartholomew</person>
      <message></message>
    </activity>
  </activities>
  <comments>
    <comment commentlink="https://api.launchpad.net/1.0/maria/+bug/841622/comments/0" datecreated="2011-09-05T08:30:26.680164+00:00">
      <person>Philip Stoev</person>
      <subject>
<![CDATA[ Assertion `t->rp->type == Gcalc_function::shape_line' failed in Gcalc_operation_reducer::end_line in maria-5.3-gis]]>      </subject>
      <content>
<![CDATA[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.

#8  0x006b0d98 in __assert_fail () from /lib/libc.so.6
#9  0x08368977 in Gcalc_operation_reducer::end_line (this=0xae713e48, t=0xae7b41c0, ev_p=0xae797818, si=0xae8fdb04) at gcalc_tools.cc:1044
#10 0x0836791a in Gcalc_operation_reducer::count_slice (this=0xae713e48, si=0xae8fdb04) at gcalc_tools.cc:638
#11 0x08368a8a in Gcalc_operation_reducer::count_all (this=0xae713e48, hp=0xae713cf4) at gcalc_tools.cc:1076
#12 0x0825d817 in Item_func_buffer::val_str (this=0xae713c70, str_value=0xae8fe060) at item_geofunc.cc:1483
#13 0x081dbb81 in Item::send (this=0xae713c70, protocol=0xa3b6c0c, buffer=0xae8fe060) at item.cc:5905
#14 0x082894ec in select_send::send_data (this=0xae714018, items=...) at sql_class.cc:1919
#15 0x0832633c in JOIN::exec (this=0xae720a60) at sql_select.cc:2069
#16 0x08328d58 in mysql_select (thd=0xa3b68e0, rref_pointer_array=0xa3b83f8, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0,
    having=0x0, proc_param=0x0, select_options=2147764736, result=0xae714018, unit=0xa3b7ffc, select_lex=0xa3b82d8) at sql_select.cc:2885
#17 0x08320c23 in handle_select (thd=0xa3b68e0, lex=0xa3b7fa0, result=0xae714018, setup_tables_done_option=0) at sql_select.cc:283
#18 0x082bc353 in execute_sqlcom_select (thd=0xa3b68e0, all_tables=0x0) at sql_parse.cc:5082
#19 0x082b3157 in mysql_execute_command (thd=0xa3b68e0) at sql_parse.cc:2227
#20 0x082be98f in mysql_parse (thd=0xa3b68e0,
    rawbuf=0xae7125e0 "SELECT ST_BUFFER(\nST_UNION(\nMULTILINESTRINGFROMTEXT( '  MULTILINESTRING( ( 3 4 , 2 5 , 7 6 , 1 8 ) , ( 0 0 , 1 6 , 0 1 , 8 9 , 2 4 , 6 1 , 3 5 , 4 8 ) , ( 9 3 , 5 4 , 1 8 , 4 2 , 5 8 , 3 0 ) )' )  ,\nM"..., length=470, found_semicolon=0xae8ff228) at sql_parse.cc:6083
#21 0x082b0df3 in dispatch_command (command=COM_QUERY, thd=0xa3b68e0, packet=0xa4113e9 "", packet_length=470) at sql_parse.cc:1206
#22 0x082b0279 in do_command (thd=0xa3b68e0) at sql_parse.cc:904
#23 0x082ad2f4 in handle_one_connection (arg=0xa3b68e0) at sql_connect.cc:1177
#24 0x00821919 in start_thread () from /lib/libpthread.so.0
#25 0x0076acce in clone () from /lib/libc.so.6

revision-id: holyfoot@askmonty.org-20110905044946-2221zpr24073ub8g
date: 2011-09-05 09:49:46 +0500
build-date: 2011-09-05 11:30:10 +0300
revno: 2998
branch-nick: maria-5.3-gis


test case:

SELECT ST_BUFFER(
        ST_UNION(
                MULTILINESTRINGFROMTEXT( '  MULTILINESTRING( ( 3 4 , 2 5 , 7 6 , 1 8 ) , ( 0 0 , 1 6 , 0 1 , 8 9 , 2 4 , 6 1 , 3 5 , 4 8 ) , ( 9 3 , 5 4 , 1 8 , 4 2 , 5 8 , 3 0 ) )' )  ,
                MULTILINESTRINGFROMTEXT( '  MULTILINESTRING( ( 3 4 , 3 1 , 2 7 , 4 2 , 6 2 , 1 5 ) ) ' )
        ),  AREA(
                MULTIPOLYGONFROMTEXT( '  MULTIPOLYGON( ( ( 7 7 , 6 7, 1 5, 7 6 , 7 7 ) ) , ( (0 5, 3 5, 3 4, 1 4 , 1 3 , 3 3 , 3 0 , 0 0 , 0 5), ( 1 1 , 2 1 , 2 2 , 1 2 , 1 1 ) ) ) ' )
        )
);]]>      </content>
    </comment>
  </comments>
  <branches>
    <branch>lp:~maria-captains/maria/5.3-gis</branch>
  </branches>
</launchpad-bug>
