Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.5
-
None
Description
--source include/have_innodb.inc
|
|
CREATE TABLE t1 (a BLOB UNIQUE, c INT GENERATED ALWAYS AS (0), s DATE, e DATE, PERIOD FOR p(s,e)) ENGINE=InnoDB; |
INSERT INTO t1 (a,s,e) VALUES |
('foo','2016-11-19','2030-10-25'), |
('bar','2034-09-20','2035-02-05'), |
('baz','1970-07-10','2008-12-19'); |
CREATE UNIQUE INDEX ind1 ON t1 (c, p WITHOUT OVERLAPS); |
|
# Cleanup
|
DROP TABLE t1; |
10.5 24ed08c3 |
mariadbd: /data/src/10.5/storage/innobase/row/row0sel.cc:3073: bool row_sel_store_mysql_rec(byte*, row_prebuilt_t*, const rec_t*, const dtuple_t*, bool, const dict_index_t*, const rec_offs*): Assertion `prebuilt->m_read_virtual_key' failed.
|
200711 3:18:59 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f0597359f12 in __GI___assert_fail (assertion=0x55605d45ff47 "prebuilt->m_read_virtual_key", file=0x55605d45f238 "/data/src/10.5/storage/innobase/row/row0sel.cc", line=3073, function=0x55605d462fe0 <row_sel_store_mysql_rec(unsigned char*, row_prebuilt_t*, unsigned char const*, dtuple_t const*, bool, dict_index_t const*, unsigned short const*)::__PRETTY_FUNCTION__> "bool row_sel_store_mysql_rec(byte*, row_prebuilt_t*, const rec_t*, const dtuple_t*, bool, const dict_index_t*, const rec_offs*)") at assert.c:101
|
#8 0x000055605ccd0909 in row_sel_store_mysql_rec (mysql_rec=0x7f056406916f "\344\003", prebuilt=0x7f0564070658, rec=0x7f059109007f "", vrow=0x7f056406d708, rec_clust=true, index=0x7f056406dde8, offsets=0x7f05908da520) at /data/src/10.5/storage/innobase/row/row0sel.cc:3073
|
#9 0x000055605ccd76fa in row_search_mvcc (buf=0x7f056406916f "\344\003", mode=PAGE_CUR_G, prebuilt=0x7f0564070658, match_mode=0, direction=0) at /data/src/10.5/storage/innobase/row/row0sel.cc:5435
|
#10 0x000055605cadc136 in ha_innobase::index_read (this=0x7f05640670c0, buf=0x7f056406916f "\344\003", key_ptr=0x7f0564069160 "", key_len=8, find_flag=HA_READ_AFTER_KEY) at /data/src/10.5/storage/innobase/handler/ha_innodb.cc:8961
|
#11 0x000055605c68e34c in handler::index_read_map (this=0x7f05640670c0, buf=0x7f056406916f "\344\003", key=0x7f0564069160 "", keypart_map=3, find_flag=HA_READ_AFTER_KEY) at /data/src/10.5/sql/handler.h:3795
|
#12 0x000055605c67c508 in handler::ha_index_read_map (this=0x7f05640670c0, buf=0x7f056406916f "\344\003", key=0x7f0564069160 "", keypart_map=3, find_flag=HA_READ_AFTER_KEY) at /data/src/10.5/sql/handler.cc:3113
|
#13 0x000055605c688774 in handler::ha_check_overlaps (this=0x7f05640670c0, old_data=0x0, new_data=0x7f0564066c58 "\370\003") at /data/src/10.5/sql/handler.cc:6986
|
#14 0x000055605c688e85 in handler::ha_write_row (this=0x7f05640670c0, buf=0x7f0564066c58 "\370\003") at /data/src/10.5/sql/handler.cc:7120
|
#15 0x000055605c42319a in copy_data_between_tables (thd=0x7f0564000b18, from=0x7f05640fb048, to=0x7f05640667c8, create=..., ignore=false, order_num=0, order=0x0, copied=0x7f05908dc1d0, deleted=0x7f05908dc1d8, keys_onoff=Alter_info::LEAVE_AS_IS, alter_ctx=0x7f05908dd270) at /data/src/10.5/sql/sql_table.cc:11331
|
#16 0x000055605c420dfd in mysql_alter_table (thd=0x7f0564000b18, new_db=0x7f0564013a08, new_name=0x7f0564013a18, create_info=0x7f05908de050, table_list=0x7f05640139f0, alter_info=0x7f05908ddf80, order_num=0, order=0x0, ignore=false, if_exists=false) at /data/src/10.5/sql/sql_table.cc:10709
|
#17 0x000055605c31e502 in mysql_execute_command (thd=0x7f0564000b18) at /data/src/10.5/sql/sql_parse.cc:4196
|
#18 0x000055605c32b39b in mysql_parse (thd=0x7f0564000b18, rawbuf=0x7f05640138d0 "CREATE UNIQUE INDEX ind1 ON t1 (c, p WITHOUT OVERLAPS)", length=54, parser_state=0x7f05908de520, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:7993
|
#19 0x000055605c317694 in dispatch_command (command=COM_QUERY, thd=0x7f0564000b18, packet=0x7f05641b0299 "CREATE UNIQUE INDEX ind1 ON t1 (c, p WITHOUT OVERLAPS)", packet_length=54, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:1867
|
#20 0x000055605c315dcc in do_command (thd=0x7f0564000b18) at /data/src/10.5/sql/sql_parse.cc:1348
|
#21 0x000055605c4bb5f5 in do_handle_one_connection (connect=0x55605fddf538, put_in_cache=true) at /data/src/10.5/sql/sql_connect.cc:1411
|
#22 0x000055605c4bb35d in handle_one_connection (arg=0x55605fddf538) at /data/src/10.5/sql/sql_connect.cc:1313
|
#23 0x000055605c9f95b4 in pfs_spawn_thread (arg=0x55605fddf168) at /data/src/10.5/storage/perfschema/pfs.cc:2201
|
#24 0x00007f05992e24a4 in start_thread (arg=0x7f05908df700) at pthread_create.c:456
|
#25 0x00007f0597416d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
|
No obvious immediate effect on a non-debug build.
The test case is not applicable to previous versions due to the OVERLAPS clause