Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3752

LP:841622 - Assertion `t->rp->type == Gcalc_function::shape_line' failed in Gcalc_operation_reducer::end_line in maria-5.3-gis

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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.

      #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 ) ) ) ' )
      )
      );

        Attachments

          Activity

            People

            Assignee:
            holyfoot Alexey Botchkov
            Reporter:
            philipstoev Philip Stoev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: