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

LP:805858 - Crash in Gcalc_operation_reducer::get_result with ST_DIFFERENCE

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      Backtrace:

      #3 <signal handler called>
      #4 0x0000000000776df1 in Gcalc_operation_reducer::get_result (this=0x1509bdc8, storage=0x1509bd60) at gcalc_tools.cc:1116
      #5 0x0000000000645f1e in Item_func_spatial_operation::val_str (this=0x1509bb38, str_value=0x40ad1400) at item_geofunc.cc:1030
      #6 0x000000000059dcbf in Item::send (this=0x1509bb38, protocol=0x150546f8, buffer=0x40ad1400) at item.cc:5905
      #7 0x0000000000680b89 in select_send::send_data (this=0x1509c010, items=...) at sql_class.cc:1919
      #8 0x000000000075d540 in JOIN::exec (this=0x150c0bb0) at sql_select.cc:2069
      #9 0x0000000000759a10 in mysql_select (thd=0x150542f8, rref_pointer_array=0x15056e48, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0,
      group=0x0, having=0x0, proc_param=0x0, select_options=2147764736, result=0x1509c010, unit=0x15056740, select_lex=0x15056c28) at sql_select.cc:2885
      #10 0x000000000075fdea in handle_select (thd=0x150542f8, lex=0x150566a0, result=0x1509c010, setup_tables_done_option=0) at sql_select.cc:283
      #11 0x00000000006ad2bc in execute_sqlcom_select (thd=0x150542f8, all_tables=0x0) at sql_parse.cc:5082
      #12 0x00000000006aef6f in mysql_execute_command (thd=0x150542f8) at sql_parse.cc:2227
      #13 0x00000000006b7d07 in mysql_parse (thd=0x150542f8,
      rawbuf=0x1509aea0 "SELECT ST_DIFFERENCE(\nMULTIPOLYGONFROMTEXT('\n\t\tMULTIPOLYGON( ( (3 5, 2 4, 2 5, 3 5) ) , ( ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 , 4 6 , 6 6 , 6 4 , 4 4 ) ) )\n\t') , MULTILINESTRINGFROMTEXT('\n\t\tMULTIL"..., length=272, found_semicolon=0x40ad2f08) at sql_parse.cc:6083
      #14 0x00000000006b8b9f in dispatch_command (command=COM_QUERY, thd=0x150542f8, packet=0x15091b29 "", packet_length=272) at sql_parse.cc:1206
      #15 0x00000000006ba1b1 in do_command (thd=0x150542f8) at sql_parse.cc:904
      #16 0x00000000006a4c63 in handle_one_connection (arg=0x150542f8) at sql_connect.cc:1177
      #17 0x00000033b600673d in start_thread () from /lib64/libpthread.so.0
      #18 0x00000033b58d40cd in clone () from /lib64/libc.so.6

      test case:

      SELECT ST_DIFFERENCE(
      MULTIPOLYGONFROMTEXT('
      MULTIPOLYGON( ( (3 5, 2 4, 2 5, 3 5) ) , ( ( 2 2 , 2 8 , 8 8 , 8 2 , 2 2 ) , ( 4 4 , 4 6 , 6 6 , 6 4 , 4 4 ) ) )
      ') , MULTILINESTRINGFROMTEXT('
      MULTILINESTRING( ( 8 6 , 3 8 , 7 5 , 2 1 ) , ( 4 3 , 0 9 , 2 1 , 2 2 ) )
      ')
      );

      bzr version-info
      revision-id: <email address hidden>
      date: 2011-07-04 16:17:34 +0500
      build-date: 2011-07-05 12:18:54 +0300
      revno: 2986
      branch-nick: maria-5.3-gis

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.