[MDEV-21892] Assertion `index != clust_index || row_get_rec_trx_id(rec, index, offsets)' failed in row_search_mvcc Created: 2020-03-08  Updated: 2020-03-09  Resolved: 2020-03-09

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.5
Fix Version/s: 10.5.2

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: affects-tests

Issue Links:
Problem/Incident
is caused by MDEV-12353 Efficient InnoDB redo log record format Closed

 Description   

--source include/have_innodb.inc
--source include/have_sequence.inc
 
CREATE TABLE t1 (pk INT PRIMARY KEY) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;
INSERT INTO t1 SELECT seq FROM seq_1_to_750;
 
--error ER_DUP_ENTRY
UPDATE t1 SET pk = 1 WHERE pk = 750;
 
--let $shutdown_timeout= 0
--source include/restart_mysqld.inc
CHECK TABLE t1;
 
# Cleanup
DROP TABLE t1;

10.5 57c592f7

mysqld: /data/src/10.5/storage/innobase/row/row0sel.cc:5163: dberr_t row_search_mvcc(byte*, page_cur_mode_t, row_prebuilt_t*, ulint, ulint): Assertion `index != clust_index || row_get_rec_trx_id(rec, index, offsets)' failed.
200308 23:46:06 [ERROR] mysqld got signal 6 ;
 
#7  0x00007ff0cf686f12 in __GI___assert_fail (assertion=0x55ef256e4020 "index != clust_index || row_get_rec_trx_id(rec, index, offsets)", file=0x55ef256e28d0 "/data/src/10.5/storage/innobase/row/row0sel.cc", line=5163, function=0x55ef256e6e20 <row_search_mvcc(unsigned char*, page_cur_mode_t, row_prebuilt_t*, unsigned long, unsigned long)::__PRETTY_FUNCTION__> "dberr_t row_search_mvcc(byte*, page_cur_mode_t, row_prebuilt_t*, ulint, ulint)") at assert.c:101
#8  0x000055ef24fc74df in row_search_mvcc (buf=0x7ff08c0318b0 "", mode=PAGE_CUR_G, prebuilt=0x7ff08c030200, match_mode=0, direction=1) at /data/src/10.5/storage/innobase/row/row0sel.cc:5163
#9  0x000055ef24f78444 in row_search_for_mysql (buf=0x7ff08c0318b0 "", mode=PAGE_CUR_G, prebuilt=0x7ff08c030200, match_mode=0, direction=1) at /data/src/10.5/storage/innobase/include/row0sel.ic:137
#10 0x000055ef24f84a6c in row_scan_index_for_mysql (prebuilt=0x7ff08c030200, index=0x7ff0a400b720, n_rows=0x7ff0c8a1a488) at /data/src/10.5/storage/innobase/row/row0mysql.cc:4830
#11 0x000055ef24ddd32d in ha_innobase::check (this=0x7ff08c02baa8, thd=0x7ff08c000b00, check_opt=0x7ff08c005cc8) at /data/src/10.5/storage/innobase/handler/ha_innodb.cc:15142
#12 0x000055ef249bd016 in handler::ha_check (this=0x7ff08c02baa8, thd=0x7ff08c000b00, check_opt=0x7ff08c005cc8) at /data/src/10.5/sql/handler.cc:4300
#13 0x000055ef248190bb in mysql_admin_table(THD *, TABLE_LIST *, HA_CHECK_OPT *, const char *, thr_lock_type, bool, bool, uint, int (*)(THD *, TABLE_LIST *, HA_CHECK_OPT *), struct {...}, int (*)(THD *, TABLE_LIST *, HA_CHECK_OPT *)) (thd=0x7ff08c000b00, tables=0x7ff08c015bc0, check_opt=0x7ff08c005cc8, operator_name=0x55ef253fd841 "check", lock_type=TL_READ_NO_INSERT, org_open_for_modify=false, repair_table_use_frm=false, extra_open_options=32, prepare_func=0x0, operator_func=(int (handler::*)(handler * const, THD *, HA_CHECK_OPT *)) 0x55ef249bce58 <handler::ha_check(THD*, st_ha_check_opt*)>, view_operator_func=0x55ef24797e08 <view_check(THD*, TABLE_LIST*, st_ha_check_opt*)>) at /data/src/10.5/sql/sql_admin.cc:806
#14 0x000055ef2481b31e in Sql_cmd_check_table::execute (this=0x7ff08c016288, thd=0x7ff08c000b00) at /data/src/10.5/sql/sql_admin.cc:1352
#15 0x000055ef246722c7 in mysql_execute_command (thd=0x7ff08c000b00) at /data/src/10.5/sql/sql_parse.cc:5879
#16 0x000055ef2467866c in mysql_parse (thd=0x7ff08c000b00, rawbuf=0x7ff08c015b08 "CHECK TABLE t1", length=14, parser_state=0x7ff0c8a1b530, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:7919
#17 0x000055ef24664311 in dispatch_command (command=COM_QUERY, thd=0x7ff08c000b00, packet=0x7ff08c0086c1 "", packet_length=14, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:1845
#18 0x000055ef24662a58 in do_command (thd=0x7ff08c000b00) at /data/src/10.5/sql/sql_parse.cc:1364
#19 0x000055ef248031ab in do_handle_one_connection (connect=0x55ef28dea390, put_in_cache=true) at /data/src/10.5/sql/sql_connect.cc:1422
#20 0x000055ef24802eda in handle_one_connection (arg=0x55ef28dea390) at /data/src/10.5/sql/sql_connect.cc:1319
#21 0x000055ef24d605a3 in pfs_spawn_thread (arg=0x55ef28ce2d00) at /data/src/10.5/storage/perfschema/pfs.cc:1869
#22 0x00007ff0d160f4a4 in start_thread (arg=0x7ff0c8a1c700) at pthread_create.c:456
#23 0x00007ff0cf743d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97


Generated at Thu Feb 08 09:10:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.