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

crash in Item_func_left::val_str

    XMLWordPrintable

Details

    Description

       
      Version: '11.0.0-preview-MariaDB'  socket: 's'  port: 3333  MariaDB Server
      Thread 17 "mysqld" received signal SIGSEGV, Segmentation fault.
      (gdb) bt
      #0  String::charpos at ./sql/sql_string.h:1062
      #1  Item_func_left::val_str at ./sql/item_strfunc.cc:1867
      #2  in in_string::set at ./sql/item_cmpfunc.cc:3700
      #3  in Item_func_in::fix_in_vector at ./sql/item_cmpfunc.cc:4514
      #4  in Item_func_in::fix_for_scalar_comparison_using_bisection at ./sql/item_cmpfunc.h:2548
      #5  in Type_handler_string_result::Item_func_in_fix_comparator_compatible_types at ./sql/sql_type.cc:5864
      #6  in Item_func_in::fix_length_and_dec at ./sql/item_cmpfunc.cc:4480
      #7  in Item_func::fix_fields at ./sql/item_func.cc:362
      #8  in Item::fix_fields_if_needed at ./sql/item.h:1147
      #9  in Item::fix_fields_if_needed_for_scalar at ./sql/item.h:1156
      #10 in setup_fields at ./sql/sql_base.cc:7978
      #11 in mysql_do at ./sql/sql_do.cc:32
      #12 in mysql_execute_command at ./sql/sql_parse.cc:3978
      #13 in mysql_parse at ./sql/sql_parse.cc:8000
      #14 in dispatch_command at ./sql/sql_parse.cc:1894
      #15 in do_command at ./sql/sql_parse.cc:1408
      #16 in do_handle_one_connection at ./sql/sql_connect.cc:1416
      #17 in handle_one_connection at ./sql/sql_connect.cc:1318
      

      How to Repeat:

       
      set @e:= current_timestamp ;
      do cast(2 as char(14))
      not in(
       left(weight_string(@e),
       version()),
       sha1(month(18446744073709551615))
      );
      
      

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              sbester1 sbester1
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.