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

Crash with PARTITION BY LIST and extended characters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.3, 10.4, 10.5
    • Fix Version/s: 10.3.19
    • Component/s: Partitioning
    • Labels:
      None

      Description

      The following scripts:

      SET NAMES utf8;
      CREATE OR REPLACE TABLE t1 (a CHAR(10)) CHARACTER SET latin1 PARTITION BY LIST COLUMNS (a) (PARTITION p0 VALUES IN ('Б'));
      

      SET NAMES utf8;
      CREATE OR REPLACE TABLE t1 (a TIME) PARTITION BY LIST COLUMNS (a) (PARTITION p0 VALUES IN ('Б'));
      

      SET NAMES utf8;
      CREATE OR REPLACE TABLE t1 (a TIME) PARTITION BY LIST COLUMNS (a) (PARTITION p0 VALUES IN (_ucs2 0x0411));
      

      crash witht this stack trace:

      #0  0x000000000070da12 in Item::fix_fields_if_needed (this=0x0, 
          thd=0x7fff68000d60, ref=0x0)
          at /home/bar/maria-git/server.10.4/sql/item.h:956
      #1  0x0000000000d19a6f in convert_charset_partition_constant (item=0x0, 
          cs=0x1df7180 <my_charset_latin1>)
          at /home/bar/maria-git/server.10.4/sql/sql_partition.cc:149
      #2  0x0000000000d1e7fd in add_column_list_values (str=0x7ffff41d4770, 
          part_info=0x7fff68015078, list_value=0x7fff68015378, 
          create_info=0x7ffff41d59b0, alter_info=0x7ffff41d58f0)
          at /home/bar/maria-git/server.10.4/sql/sql_partition.cc:2431
      #3  0x0000000000d1ed62 in add_partition_values (str=0x7ffff41d4770, 
          part_info=0x7fff68015078, p_elem=0x7fff680152b8, 
          create_info=0x7ffff41d59b0, alter_info=0x7ffff41d58f0)
          at /home/bar/maria-git/server.10.4/sql/sql_partition.cc:2527
      #4  0x0000000000d1f86e in generate_partition_syntax (thd=0x7fff68000d60, 
          part_info=0x7fff68015078, buf_length=0x7ffff41d4d3c, 
          show_partition_options=true, create_info=0x7ffff41d59b0, 
          alter_info=0x7ffff41d58f0)
          at /home/bar/maria-git/server.10.4/sql/sql_partition.cc:2753
      #5  0x0000000000d1efcd in generate_partition_syntax_for_frm (
          thd=0x7fff68000d60, part_info=0x7fff68015078, buf_length=0x7ffff41d4d3c, 
          create_info=0x7ffff41d59b0, alter_info=0x7ffff41d58f0)
          at /home/bar/maria-git/server.10.4/sql/sql_partition.cc:2592
      #6  0x00000000008f4291 in mysql_create_frm_image (thd=0x7fff68000d60, db=..., 
          table_name=..., create_info=0x7ffff41d59b0, alter_info=0x7ffff41d58f0, 
          create_table_mode=0, key_info=0x7ffff41d57f0, key_count=0x7ffff41d57ec, 
          frm=0x7ffff41d55d0)
          at /home/bar/maria-git/server.10.4/sql/sql_table.cc:4703
      #7  0x00000000008f51b6 in create_table_impl (thd=0x7fff68000d60, orig_db=..., 
          orig_table_name=..., db=..., table_name=..., 
          path=0x7ffff41d55e0 "./test/t1", options=..., create_info=0x7ffff41d59b0, 
          alter_info=0x7ffff41d58f0, create_table_mode=0, is_trans=0x7ffff41d5877, 
          key_info=0x7ffff41d57f0, key_count=0x7ffff41d57ec, frm=0x7ffff41d55d0)
          at /home/bar/maria-git/server.10.4/sql/sql_table.cc:5042
      #8  0x00000000008f5642 in mysql_create_table_no_lock (thd=0x7fff68000d60, 
          db=0x7fff68014318, table_name=0x7fff68014328, create_info=0x7ffff41d59b0, 
          alter_info=0x7ffff41d58f0, is_trans=0x7ffff41d5877, create_table_mode=0, 
          table_list=0x7fff68014300)
          at /home/bar/maria-git/server.10.4/sql/sql_table.cc:5145
      #9  0x00000000008f5a12 in mysql_create_table (thd=0x7fff68000d60, 
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bar Alexander Barkov
              Reporter:
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: