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

LP:841662 - Third assertion `n > 0 && n < SINUSES_CALCULATED*2+1' in get_n_sincos

    Details

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

      Description

      mysqld: item_geofunc.cc:1121: void get_n_sincos(int, double*, double*): Assertion `n > 0 && n < SINUSES_CALCULATED*2+1' failed.

      #8 0x006b0d98 in __assert_fail () from /lib/libc.so.6
      #9 0x0825c4ba in get_n_sincos (n=65, sinus=0xb6d469c0, cosinus=0xb6d469b8) at item_geofunc.cc:1121
      #10 0x0825c68b in fill_gap (trn=0xb6d46aac, x=3, y=8, ax=1.6079056208947339e+308, ay=8.0395281044736696e+307, bx=-1.6079056208947339e+308,
      by=8.0395281044736696e+307, d=1.7976931348623157e+308, empty_gap=0xb6d46a67) at item_geofunc.cc:1167
      #11 0x0825c9fd in Item_func_buffer::Transporter::add_edge_buffer (this=0xb6d46bcc, x3=2, y3=6, round_p1=true, round_p2=false) at item_geofunc.cc:1231
      #12 0x0825d31c in Item_func_buffer::Transporter::add_point (this=0xb6d46bcc, x=2, y=6) at item_geofunc.cc:1374
      #13 0x08483b89 in Gis_line_string::store_shapes (this=0xb6d46c44, trn=0xb6d46bcc) at spatial.cc:727
      #14 0x0825d79b in Item_func_buffer::val_str (this=0xae614050, str_value=0xb6d47060) at item_geofunc.cc:1475
      #15 0x081dbb81 in Item::send (this=0xae614050, protocol=0x99aec0c, buffer=0xb6d47060) at item.cc:5905
      #16 0x082894ec in select_send::send_data (this=0xae6143f8, items=...) at sql_class.cc:1919
      #17 0x0832633c in JOIN::exec (this=0xae620a60) at sql_select.cc:2069
      #18 0x08328d58 in mysql_select (thd=0x99ae8e0, rref_pointer_array=0x99b03f8, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0,
      having=0x0, proc_param=0x0, select_options=2147764736, result=0xae6143f8, unit=0x99afffc, select_lex=0x99b02d8) at sql_select.cc:2885
      #19 0x08320c23 in handle_select (thd=0x99ae8e0, lex=0x99affa0, result=0xae6143f8, setup_tables_done_option=0) at sql_select.cc:283
      #20 0x082bc353 in execute_sqlcom_select (thd=0x99ae8e0, all_tables=0x0) at sql_parse.cc:5082
      #21 0x082b3157 in mysql_execute_command (thd=0x99ae8e0) at sql_parse.cc:2227
      #22 0x082be98f in mysql_parse (thd=0x99ae8e0,
      rawbuf=0xae6125e0 "SELECT ST_BUFFER (\nLINESTRINGFROMTEXT( ' LINESTRING( 5 4 , 3 8 , 2 6 , 5 5 , 7 9 ) ' ) , \nST_DISTANCE (\nMULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( (3 5, 2 4, 2 5, 3 5) ) , ( (3 5, 2 5, 2 4, 3 4, 3 5) "..., length=491, found_semicolon=0xb6d48228) at sql_parse.cc:6083
      #23 0x082b0df3 in dispatch_command (command=COM_QUERY, thd=0x99ae8e0, packet=0x9a093e9 "", packet_length=493) at sql_parse.cc:1206
      #24 0x082b0279 in do_command (thd=0x99ae8e0) at sql_parse.cc:904
      #25 0x082ad2f4 in handle_one_connection (arg=0x99ae8e0) at sql_connect.cc:1177
      #26 0x00821919 in start_thread () from /lib/libpthread.so.0
      #27 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 12:26:54 +0300
      revno: 2998
      branch-nick: maria-5.3-gis

      test case:

      SELECT ST_BUFFER (
      LINESTRINGFROMTEXT( ' LINESTRING( 5 4 , 3 8 , 2 6 , 5 5 , 7 9 ) ' ) ,
      ST_DISTANCE (
      MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( (3 5, 2 4, 2 5, 3 5) ) , ( (3 5, 2 5, 2 4, 3 4, 3 5) ) , ( ( 0 0 , 8 3 , 9 5 , 0 0 ) ) ) ' ) ,
      ST_DIFFERENCE (
      MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( (3 5, 2 5, 2 4, 3 4, 3 5) ) ) ' ) ,
      MULTIPOLYGONFROMTEXT( ' MULTIPOLYGON( ( ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 , 4 6 , 6 6 , 6 4 , 4 4 ) ) , ( ( 0 0 , 3 8 , 9 4 , 0 0 ) ) ) ' )
      )
      )
      ) ;

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 841662

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

              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: