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

Server crashes at Arg_comparator::compare_int_signed

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 11.1.2, 11.2.1
    • N/A
    • GIS
    • None
    • Ubuntu 20.04 x86-64, docker image mariadb:11.1.2

    Description

      PoC:

      SELECT x FROM ( SELECT 0 x UNION SELECT ST_ISSIMPLE ( ST_GEOMFROMTEXT ( 'MULTILINESTRING((0 5))' ) ) ) is_streaming WHERE x ;
      

      docker log:

      mariadbd(my_print_stacktrace+0x32)[0x5608a8e167c2]
      mariadbd(handle_fatal_signal+0x488)[0x5608a88efcf8]
      /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7fa1a2c47520]
      mariadbd(_ZN18Item_func_issimple7val_intEv+0x1b7)[0x5608a8982d67]
      mariadbd(_ZN14Arg_comparator18compare_int_signedEv+0x1d)[0x5608a8928ffd]
      mariadbd(_ZN12Item_func_ne7val_intEv+0x34)[0x5608a8936884]
      mariadbd(_ZNK23Type_handler_int_result13Item_val_boolEP4Item+0x14)[0x5608a88323a4]
      mariadbd(_ZN15Item_bool_func215remove_eq_condsEP3THDPN4Item11cond_resultEb+0x79)[0x5608a86b3f39]
      mariadbd(+0x870e91)[0x5608a86bae91]
      mariadbd(_ZN4JOIN14optimize_innerEv+0x8bb)[0x5608a86fbd7b]
      mariadbd(_ZN4JOIN8optimizeEv+0xda)[0x5608a86fce2a]
      mariadbd(_ZN18st_select_lex_unit8optimizeEv+0x38e)[0x5608a8750cae]
      mariadbd(+0x7ec6e8)[0x5608a86366e8]
      mariadbd(_Z27mysql_handle_single_derivedP3LEXP10TABLE_LISTj+0x95)[0x5608a8635e35]
      mariadbd(_ZN4JOIN14optimize_innerEv+0xb27)[0x5608a86fbfe7]
      mariadbd(_ZN4JOIN8optimizeEv+0xda)[0x5608a86fce2a]
      mariadbd(_Z12mysql_selectP3THDP10TABLE_LISTR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0xd1)[0x5608a86fcf21]
      mariadbd(_Z13handle_selectP3THDP3LEXP13select_resulty+0x154)[0x5608a86fd774]
      mariadbd(+0x826f55)[0x5608a8670f55]
      mariadbd(_Z21mysql_execute_commandP3THDb+0x419e)[0x5608a867ff0e]
      mariadbd(_Z11mysql_parseP3THDPcjP12Parser_state+0x1e7)[0x5608a8681237]
      mariadbd(_Z16dispatch_command19enum_server_commandP3THDPcjb+0x14bd)[0x5608a8683a1d]
      mariadbd(_Z10do_commandP3THDb+0x138)[0x5608a8685818]
      mariadbd(_Z24do_handle_one_connectionP7CONNECTb+0x3bf)[0x5608a87ad3af]
      mariadbd(handle_one_connection+0x5d)[0x5608a87ad6fd]
      mariadbd(+0xcd1906)[0x5608a8b1b906]
      /lib/x86_64-linux-gnu/libc.so.6(+0x94b43)[0x7fa1a2c99b43]
      /lib/x86_64-linux-gnu/libc.so.6(clone+0x44)[0x7fa1a2d2abb4]
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x7fa1380130d8): SELECT x FROM ( SELECT 0 x UNION SELECT ST_ISSIMPLE ( ST_GEOMFROMTEXT ( 'MULTILINESTRING((0 5))' ) ) ) is_streaming WHERE x
       
      Connection ID (thread ID): 4
      Status: NOT_KILLED
       
      Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off,hash_join_cardinality=on
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fuboat Jingzhou Fu
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.