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

Assertion `!cur_p->event' failed in Gcalc_scan_iterator::arrange_event(int, int)

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5, 10.0, 10.1
    • Fix Version/s: 5.5.42
    • Component/s: GIS
    • Labels:

      Description

      SELECT ST_Buffer(ST_PolygonFromText('POLYGON((3 5, 2 4, 2 5, 3 5))'), -100);

      5.5 revno 4414

      sql/gcalc_slicescan.cc:1221: int Gcalc_scan_iterator::arrange_event(int, int): Assertion `!cur_p->event' failed.
      150128  1:17:03 [ERROR] mysqld got signal 6 ;
       
      #6  0x00007f25692dc311 in *__GI___assert_fail (assertion=0xe4c408 "((result[0]) & 0x7FFFFFFF) < 1000000000", file=<optimized out>, line=317, function=0xe4cec0 "void do_add(Gcalc_internal_coord*, int, const Gcalc_internal_coord*, const Gcalc_internal_coord*)") at assert.c:81
      #7  0x00000000009605e1 in do_add (result=0x7f25408a8168, result_len=2, a=0x7f25408b3e18, b=0x7f25408b3dc8) at 5.5/sql/gcalc_slicescan.cc:317
      #8  0x0000000000960bec in gcalc_sub_coord (result=0x7f25408a8168, result_len=2, a=0x7f25408b3e18, b=0x7f25408b3dc8) at 5.5/sql/gcalc_slicescan.cc:497
      #9  0x0000000000964c17 in gcalc_sub_coord1 (result=0x7f25408a8168, a=0x7f25408b3e18, b=0x7f25408b3dc8) at 5.5/sql/gcalc_slicescan.cc:522
      #10 0x0000000000964c7b in calc_dx_dy (p=0x7f25408a8158) at 5.5/sql/gcalc_slicescan.cc:1076
      #11 0x0000000000962e40 in Gcalc_scan_iterator::insert_top_node (this=0x7f256b49df40) at 5.5/sql/gcalc_slicescan.cc:1447
      #12 0x0000000000962a74 in Gcalc_scan_iterator::step (this=0x7f256b49df40) at 5.5/sql/gcalc_slicescan.cc:1335
      #13 0x000000000096864f in Gcalc_operation_reducer::count_all (this=0x7f254084a730, hp=0x7f254084a618) at 5.5/sql/gcalc_tools.cc:1216
      #14 0x000000000086324e in Item_func_buffer::val_str (this=0x7f254084a558, str_value=0x7f256b49e230) at 5.5/sql/item_geofunc.cc:1311
      #15 0x0000000000806aef in Item::send (this=0x7f254084a558, protocol=0x7f2550053628, buffer=0x7f256b49e230) at 5.5/sql/item.cc:6474
      #16 0x000000000059ae46 in Protocol::send_result_set_row (this=0x7f2550053628, row_items=0x7f2550056b78) at 5.5/sql/protocol.cc:903
      #17 0x00000000005fd95c in select_send::send_data (this=0x7f254084a8d0, items=...) at 5.5/sql/sql_class.cc:2370
      #18 0x000000000066972a in JOIN::exec (this=0x7f254084a8f0) at 5.5/sql/sql_select.cc:2281
      #19 0x000000000066c39d in mysql_select (thd=0x7f2550053060, rref_pointer_array=0x7f2550056cd0, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f254084a8d0, unit=0x7f2550056380, select_lex=0x7f2550056a60) at 5.5/sql/sql_select.cc:3094
      #20 0x0000000000662e6d in handle_select (thd=0x7f2550053060, lex=0x7f25500562d0, result=0x7f254084a8d0, setup_tables_done_option=0) at 5.5/sql/sql_select.cc:319
      #21 0x000000000063c0ac in execute_sqlcom_select (thd=0x7f2550053060, all_tables=0x0) at 5.5/sql/sql_parse.cc:4689
      #22 0x000000000063528e in mysql_execute_command (thd=0x7f2550053060) at 5.5/sql/sql_parse.cc:2234
      #23 0x000000000063eb92 in mysql_parse (thd=0x7f2550053060, rawbuf=0x7f254084a078 "SELECT ST_Buffer(ST_PolygonFromText('POLYGON((3 5, 2 4, 2 5, 3 5))'), -100)", length=75, parser_state=0x7f256b49f670) at 5.5/sql/sql_parse.cc:5909
      #24 0x00000000006327d5 in dispatch_command (command=COM_QUERY, thd=0x7f2550053060, packet=0x7f255010b061 "", packet_length=75) at 5.5/sql/sql_parse.cc:1079
      #25 0x0000000000631961 in do_command (thd=0x7f2550053060) at 5.5/sql/sql_parse.cc:793
      #26 0x0000000000733fee in do_handle_one_connection (thd_arg=0x7f2550053060) at 5.5/sql/sql_connect.cc:1266
      #27 0x0000000000733aad in handle_one_connection (arg=0x7f2550053060) at 5.5/sql/sql_connect.cc:1181
      #28 0x00007f256b0d7b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
      #29 0x00007f256938d70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

        Attachments

          Activity

            People

            • Assignee:
              holyfoot Alexey Botchkov
              Reporter:
              elenst Elena Stepanova
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: