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

Server crashes in ha_partition::min_of_the_max_uint

    XMLWordPrintable

    Details

      Description

      --source include/have_partition.inc
       
      CREATE OR REPLACE TABLE t1 (i INT) WITH SYSTEM VERSIONING PARTITION BY system_time INTERVAL 4 MINUTE (PARTITION p1 HISTORY, PARTITION pn CURRENT);
      CREATE OR REPLACE TABLE t2 WITH SYSTEM VERSIONING SELECT * from t1 WHERE sys_trx_end IN (SELECT sys_trx_start FROM t1);
       
      # Cleanup
      DROP TABLE t1, t2;
      

      bb-10.3-temporal a3a15126f26

      #3  <signal handler called>
      #4  0x000055d00b42ad2e in ha_partition::min_of_the_max_uint (this=0x7f6994019558, operator_func=&virtual table offset 856) at /data/src/bb-10.3-temporal/sql/ha_partition.cc:9984
      #5  0x000055d00b42ae46 in ha_partition::max_supported_key_length (this=0x7f6994019558) at /data/src/bb-10.3-temporal/sql/ha_partition.cc:10003
      #6  0x000055d00aa21497 in handler::max_key_length (this=0x7f6994019558) at /data/src/bb-10.3-temporal/sql/handler.h:3718
      #7  0x000055d00aa632a6 in mysql_prepare_create_table (thd=0x7f6994000b00, create_info=0x7f69e01637b0, alter_info=0x7f69e0163700, db_options=0x7f69e0160544, file=0x7f6994019558, key_info_buffer=0x7f69e0161bd0, key_count=0x7f69e0161bc4, create_table_mode=3) at /data/src/bb-10.3-temporal/sql/sql_table.cc:3457
      #8  0x000055d00aa6716e in mysql_create_frm_image (thd=0x7f6994000b00, db=0x7f6994015410 "test", table_name=0x7f6994014da8 "t2", create_info=0x7f69e01637b0, alter_info=0x7f69e0163700, create_table_mode=3, key_info=0x7f69e0161bd0, key_count=0x7f69e0161bc4, frm=0x7f69e0161be0) at /data/src/bb-10.3-temporal/sql/sql_table.cc:4742
      #9  0x000055d00aa67bb3 in create_table_impl (thd=0x7f6994000b00, orig_db=0x7f6994015410 "test", orig_table_name=0x7f6994014da8 "t2", db=0x7f6994015410 "test", table_name=0x7f6994014da8 "t2", path=0x7f69e0161bf0 "./test/t2", options=..., create_info=0x7f69e01637b0, alter_info=0x7f69e0163700, create_table_mode=3, is_trans=0x0, key_info=0x7f69e0161bd0, key_count=0x7f69e0161bc4, frm=0x7f69e0161be0) at /data/src/bb-10.3-temporal/sql/sql_table.cc:4984
      #10 0x000055d00aa6820d in mysql_create_table_no_lock (thd=0x7f6994000b00, db=0x7f6994015410 "test", table_name=0x7f6994014da8 "t2", create_info=0x7f69e01637b0, alter_info=0x7f69e0163700, is_trans=0x0, create_table_mode=3, table_list=0x7f6994014de0) at /data/src/bb-10.3-temporal/sql/sql_table.cc:5100
      #11 0x000055d00a96cdfb in select_create::create_table_from_items (this=0x7f6994017410, thd=0x7f6994000b00, items=0x7f6994005110, lock=0x7f69e0163168, hooks=0x7f69e01631a0) at /data/src/bb-10.3-temporal/sql/sql_insert.cc:4244
      #12 0x000055d00a96d510 in select_create::prepare (this=0x7f6994017410, values=..., u=0x7f6994004898) at /data/src/bb-10.3-temporal/sql/sql_insert.cc:4418
      #13 0x000055d00a9d9ba7 in JOIN::prepare (this=0x7f6994017508, tables_init=0x7f6994015568, wild_num=1, conds_init=0x7f6994016fd8, og_num=0, order_init=0x0, skip_order_by=false, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x7f6994004ff0, unit_arg=0x7f6994004898) at /data/src/bb-10.3-temporal/sql/sql_select.cc:1450
      #14 0x000055d00a9e37f1 in mysql_select (thd=0x7f6994000b00, tables=0x7f6994015568, wild_num=1, fields=..., conds=0x7f6994016fd8, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2416184064, result=0x7f6994017410, unit=0x7f6994004898, select_lex=0x7f6994004ff0) at /data/src/bb-10.3-temporal/sql/sql_select.cc:4236
      #15 0x000055d00a9d593e in handle_select (thd=0x7f6994000b00, lex=0x7f69940047d0, result=0x7f6994017410, setup_tables_done_option=0) at /data/src/bb-10.3-temporal/sql/sql_select.cc:382
      #16 0x000055d00a998408 in mysql_execute_command (thd=0x7f6994000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:4220
      #17 0x000055d00a9a43f6 in mysql_parse (thd=0x7f6994000b00, rawbuf=0x7f6994014c48 "CREATE OR REPLACE TABLE t2 WITH SYSTEM VERSIONING SELECT * from t1 WHERE sys_trx_end IN (SELECT sys_trx_start FROM t1)", length=118, parser_state=0x7f69e01645f0, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:7991
      #18 0x000055d00a991b97 in dispatch_command (command=COM_QUERY, thd=0x7f6994000b00, packet=0x7f69941200b1 "CREATE OR REPLACE TABLE t2 WITH SYSTEM VERSIONING SELECT * from t1 WHERE sys_trx_end IN (SELECT sys_trx_start FROM t1)", packet_length=118, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1825
      #19 0x000055d00a9905cb in do_command (thd=0x7f6994000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1370
      #20 0x000055d00aaf8354 in do_handle_one_connection (connect=0x55d00e2e0b20) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1420
      #21 0x000055d00aaf80e1 in handle_one_connection (arg=0x55d00e2e0b20) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1326
      #22 0x000055d00af92c5a in pfs_spawn_thread (arg=0x55d00e383540) at /data/src/bb-10.3-temporal/storage/perfschema/pfs.cc:1863
      #23 0x00007f69ea030494 in start_thread (arg=0x7f69e0165700) at pthread_create.c:333
      #24 0x00007f69e841693f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              midenok Aleksey Midenkov
              Reporter:
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: