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

Server crash in DTCollation::set_repertoire_from_charset

    XMLWordPrintable

Details

    Description

      CREATE TABLE t (f POINT, KEY(f));
      DELETE FROM t WHERE f NOT IN (NULL,'x');
       
      # Cleanup
      DROP TABLE t;
      

      10.2 178d32f0

      #3  <signal handler called>
      #4  DTCollation::set_repertoire_from_charset (this=0x7f4c38010228, cs=0x0) at /data/src/10.2/sql/item.h:211
      #5  DTCollation::set (collation_arg=0x0, this=0x7f4c38010228) at /data/src/10.2/sql/item.h:211
      #6  in_string::Item_string_for_in_vector::set_value (str=<optimized out>, this=0x7f4c38010220) at /data/src/10.2/sql/item_cmpfunc.h:1238
      #7  in_string::value_to_item (this=<optimized out>, pos=<optimized out>, item=0x7f4c38010220) at /data/src/10.2/sql/item_cmpfunc.h:1251
      #8  0x000055dfc32061f0 in Item_func_in::get_func_mm_tree (this=0x7f4c3800fcd8, param=0x7f4c49db7650, field=0x7f4c3809c6a8, value=<optimized out>) at /data/src/10.2/sql/opt_range.cc:7165
      #9  0x000055dfc320211d in Item_bool_func::get_full_func_mm_tree (this=0x7f4c3800fcd8, param=0x7f4c49db7650, field_item=0x7f4c3800fa70, value=0x0) at /data/src/10.2/sql/opt_range.cc:7581
      #10 0x000055dfc32079ac in SQL_SELECT::test_quick_select (this=this@entry=0x7f4c380100d0, thd=thd@entry=0x7f4c38000c48, keys_to_use=..., keys_to_use@entry=..., prev_tables=prev_tables@entry=0, limit=limit@entry=18446744073709551615, force_quick_range=force_quick_range@entry=false, ordered_output=false, remove_false_parts_of_where=false) at /data/src/10.2/sql/opt_range.cc:2545
      #11 0x000055dfc3227496 in SQL_SELECT::check_quick (limit=18446744073709551615, force_quick_range=false, thd=0x7f4c38000c48, this=0x7f4c380100d0) at /data/src/10.2/sql/opt_range.h:1623
      #12 mysql_delete (thd=thd@entry=0x7f4c38000c48, table_list=0x7f4c3800f448, conds=<optimized out>, order_list=<optimized out>, limit=18446744073709551615, options=0, result=0x0) at /data/src/10.2/sql/sql_delete.cc:414
      #13 0x000055dfc2f3cf80 in mysql_execute_command (thd=0x7f4c38000c48) at /data/src/10.2/sql/sql_parse.cc:4396
      #14 0x000055dfc2f3e89b in mysql_parse (thd=thd@entry=0x7f4c38000c48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7f4c49dbb5b0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /data/src/10.2/sql/sql_parse.cc:7759
      #15 0x000055dfc2f41a9d in dispatch_command (command=COM_QUERY, thd=0x7f4c38000c48, packet=<optimized out>, packet_length=<optimized out>, is_com_multi=<optimized out>, is_next_command=<optimized out>) at /data/src/10.2/sql/sql_class.h:1095
      #16 0x000055dfc2f42ce7 in do_command (thd=0x7f4c38000c48) at /data/src/10.2/sql/sql_parse.cc:1381
      #17 0x000055dfc301b4d6 in do_handle_one_connection (connect=connect@entry=0x55dfc4b3a338) at /data/src/10.2/sql/sql_connect.cc:1336
      #18 0x000055dfc301b64f in handle_one_connection (arg=arg@entry=0x55dfc4b3a338) at /data/src/10.2/sql/sql_connect.cc:1241
      #19 0x000055dfc35b5d66 in pfs_spawn_thread (arg=0x55dfc4b4b1b8) at /data/src/10.2/storage/perfschema/pfs.cc:1869
      #20 0x00007f4c50173609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #21 0x00007f4c4fd68293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Reproducible on 10.1+, with at least MyISAM and InnoDB, debug- and non-debug builds alike.

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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