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

LP:841638 - Assertion `!m_prev || m_prev->x != x || m_prev->y != y' failed in Gcalc_shape_transporter::int_add_point in maria-5.3-gis

    Details

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

      Description

      mysqld: gcalc_slicescan.cc:186: int Gcalc_shape_transporter::int_add_point(gcalc_shape_info, double, double): Assertion `!m_prev || m_prev->x != x || m_prev->y != y' failed.

      #8 0x006b0d98 in __assert_fail () from /lib/libc.so.6
      #9 0x083648fb in Gcalc_shape_transporter::int_add_point (this=0xae8dfa5c, Info=83, x=6.373773447853214, y=5.7071067811865479) at gcalc_slicescan.cc:186
      #10 0x08366c6d in Gcalc_operation_transporter::add_point (this=0xae8dfa5c, x=6.373773447853214, y=5.7071067811865479) at gcalc_tools.cc:303
      #11 0x0825cccf in Item_func_buffer::Transporter::add_edge_buffer (this=0xae8dfbcc, x3=5.666666666666667, y3=5, round_p1=true, round_p2=true)
      at item_geofunc.cc:1253
      #12 0x0825d41b in Item_func_buffer::Transporter::complete (this=0xae8dfbcc) at item_geofunc.cc:1397
      #13 0x0825d567 in Item_func_buffer::Transporter::complete_line (this=0xae8dfbcc) at item_geofunc.cc:1429
      #14 0x08483bd3 in Gis_line_string::store_shapes (this=0xae8dfb74, trn=0xae8dfbcc) at spatial.cc:734
      #15 0x08487a95 in Gis_geometry_collection::store_shapes (this=0xae8dfc44, trn=0xae8dfbcc) at spatial.cc:2381
      #16 0x0825d79b in Item_func_buffer::val_str (this=0xae5136b0, str_value=0xae8e0060) at item_geofunc.cc:1475
      #17 0x081dbb81 in Item::send (this=0xae5136b0, protocol=0xae55c0c, buffer=0xae8e0060) at item.cc:5905
      #18 0x082894ec in select_send::send_data (this=0xae513a58, items=...) at sql_class.cc:1919
      #19 0x0832633c in JOIN::exec (this=0xae521348) at sql_select.cc:2069
      #20 0x08328d58 in mysql_select (thd=0xae558e0, rref_pointer_array=0xae573f8, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0,
      having=0x0, proc_param=0x0, select_options=2147764736, result=0xae513a58, unit=0xae56ffc, select_lex=0xae572d8) at sql_select.cc:2885
      #21 0x08320c23 in handle_select (thd=0xae558e0, lex=0xae56fa0, result=0xae513a58, setup_tables_done_option=0) at sql_select.cc:283
      #22 0x082bc353 in execute_sqlcom_select (thd=0xae558e0, all_tables=0x0) at sql_parse.cc:5082
      #23 0x082b3157 in mysql_execute_command (thd=0xae558e0) at sql_parse.cc:2227
      #24 0x082be98f in mysql_parse (thd=0xae558e0,
      rawbuf=0xae5125e0 "SELECT ST_BUFFER (\nST_UNION ( \nMULTILINESTRINGFROMTEXT( ' MULTILINESTRING( ( 7 3 , 1 8 , 4 0 , 7 9 ) , ( 5 4 , 9 8 , 7 4 , 3 7 ) , ( 5 8 , 5 4 , 9 2 , 5 6 ) , ( 4 0 , 3 2 , 0 1 , 3 9 ) , ( 2 0 , 3 5 "..., length=380, found_semicolon=0xae8e1228) at sql_parse.cc:6083
      #25 0x082b0df3 in dispatch_command (command=COM_QUERY, thd=0xae558e0, packet=0xaeb03e9 "", packet_length=380) at sql_parse.cc:1206
      #26 0x082b0279 in do_command (thd=0xae558e0) at sql_parse.cc:904
      #27 0x082ad2f4 in handle_one_connection (arg=0xae558e0) at sql_connect.cc:1177
      #28 0x00821919 in start_thread () from /lib/libpthread.so.0
      #29 0x0076acce in clone () from /lib/libc.so.6

      bzr version-info
      revision-id: <email address hidden>
      date: 2011-09-05 09:49:46 +0500
      build-date: 2011-09-05 11:55:07 +0300
      revno: 2998
      branch-nick: maria-5.3-gis

      test case:

      SELECT ST_BUFFER (
      ST_UNION (
      MULTILINESTRINGFROMTEXT( ' MULTILINESTRING( ( 7 3 , 1 8 , 4 0 , 7 9 ) , ( 5 4 , 9 8 , 7 4 , 3 7 ) , ( 5 8 , 5 4 , 9 2 , 5 6 ) , ( 4 0 , 3 2 , 0 1 , 3 9 ) , ( 2 0 , 3 5 , 9 5 , 0 9 ) ) ' ) ,
      MULTILINESTRINGFROMTEXT( ' MULTILINESTRING( ( 4 5 , 3 0 , 3 1 , 4 7 , 4 2 ) , ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 , 4 6 , 6 6 , 6 4 , 4 4 ) ) ' )
      ) , 1
      );

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 841638

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 841638

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: