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

Server crashes in ha_partition::engine_name upon trying to partition a sequence

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.3
    • Fix Version/s: 10.3
    • Component/s: Sequences
    • Labels:
      None

      Description

      --source include/have_partition.inc
       
      CREATE SEQUENCE s;
      ALTER TABLE s PARTITION BY HASH(start_value) PARTITIONS 2;
      

      10.3 016c35a7f2f4a2

      #3  <signal handler called>
      #4  0x0000558136c15d52 in ha_partition::engine_name (this=0x7fde98016940) at /data/src/10.3/sql/ha_partition.h:426
      #5  0x000055813627f45e in mysql_prepare_create_table (thd=0x7fde98000b00, create_info=0x7fdea9552d70, alter_info=0x7fdea9552cc0, db_options=0x7fdea954fe64, file=0x7fde98016940, key_info_buffer=0x7fdea95514a8, key_count=0x7fdea955147c, create_table_mode=-2) at /data/src/10.3/sql/sql_table.cc:3308
      #6  0x0000558136282df5 in mysql_create_frm_image (thd=0x7fde98000b00, db=0x7fde98015138 "test", table_name=0x7fde98014af0 "s", create_info=0x7fdea9552d70, alter_info=0x7fdea9552cc0, create_table_mode=-2, key_info=0x7fdea95514a8, key_count=0x7fdea955147c, frm=0x7fdea9551500) at /data/src/10.3/sql/sql_table.cc:4503
      #7  0x000055813628383a in create_table_impl (thd=0x7fde98000b00, orig_db=0x7fde98015138 "test", orig_table_name=0x7fde98014af0 "s", db=0x7fde98015138 "test", table_name=0x7fdea95521a0 "#sql-2088_4", path=0x7fdea9552a0c "./test/#sql-2088_4", options=..., create_info=0x7fdea9552d70, alter_info=0x7fdea9552cc0, create_table_mode=-2, is_trans=0x0, key_info=0x7fdea95514a8, key_count=0x7fdea955147c, frm=0x7fdea9551500) at /data/src/10.3/sql/sql_table.cc:4745
      #8  0x000055813628ecb3 in mysql_alter_table (thd=0x7fde98000b00, new_db=0x7fde98015138 "test", new_name=0x0, create_info=0x7fdea9552d70, table_list=0x7fde98014b28, alter_info=0x7fdea9552cc0, order_num=0, order=0x0, ignore=false) at /data/src/10.3/sql/sql_table.cc:9056
      #9  0x000055813630dadb in Sql_cmd_alter_table::execute (this=0x7fde980154a0, thd=0x7fde98000b00) at /data/src/10.3/sql/sql_alter.cc:331
      #10 0x00005581361c12dd in mysql_execute_command (thd=0x7fde98000b00) at /data/src/10.3/sql/sql_parse.cc:6235
      #11 0x00005581361c5bd4 in mysql_parse (thd=0x7fde98000b00, rawbuf=0x7fde98014a08 "ALTER TABLE s PARTITION BY HASH(start_value) PARTITIONS 2", length=57, parser_state=0x7fdea9554610, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7921
      #12 0x00005581361b332e in dispatch_command (command=COM_QUERY, thd=0x7fde98000b00, packet=0x7fde98149c51 "ALTER TABLE s PARTITION BY HASH(start_value) PARTITIONS 2", packet_length=57, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1819
      #13 0x00005581361b1d90 in do_command (thd=0x7fde98000b00) at /data/src/10.3/sql/sql_parse.cc:1370
      #14 0x0000558136308646 in do_handle_one_connection (connect=0x5581394934a0) at /data/src/10.3/sql/sql_connect.cc:1418
      #15 0x00005581363083d3 in handle_one_connection (arg=0x5581394934a0) at /data/src/10.3/sql/sql_connect.cc:1324
      #16 0x00005581367801dc in pfs_spawn_thread (arg=0x55813952c480) at /data/src/10.3/storage/perfschema/pfs.cc:1862
      #17 0x00007fdeb1202494 in start_thread (arg=0x7fdea9555700) at pthread_create.c:333
      #18 0x00007fdeaf37a93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Release build crashes in a similar way.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                monty Michael Widenius
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: