[MDEV-8159] InnoDB: Failing assertion: key_state->key_id Created: 2015-05-13  Updated: 2015-05-15  Resolved: 2015-05-14

Status: Closed
Project: MariaDB Server
Component/s: Encryption, Storage Engine - InnoDB, Storage Engine - XtraDB
Affects Version/s: 10.1.4
Fix Version/s: 10.1.5

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None


 Description   

t3.opt

--plugin-load-add=file_key_management.so --file_key_management_filename=/home/elenst/git/10.1/mysql-test/std_data/keys.txt

t3.test

--source include/have_innodb.inc
 
CREATE TABLE t1 (i INT) ENGINE=InnoDB;
SET GLOBAL innodb_encryption_threads = 2;
SET GLOBAL innodb_encryption_rotate_key_age = 2;

Stack trace from 10.1 commit be2038e3

150513 20:40:58 [Note] InnoDB: Creating #0 thread id 140352166033152 total threads 2u
 
150513 20:40:58 [Note] InnoDB: Creating #1 thread id 140352157640448 total threads 2u
 
2015-05-13 20:40:58 7fa648fff700  InnoDB: Assertion failure in thread 140352166033152 in file fil0crypt.cc line 1584
InnoDB: Failing assertion: key_state->key_id
InnoDB: We intentionally generate a memory trap.
 
#1  0x00007fa65ed193e0 in *__GI_abort () at abort.c:92
#2  0x00007fa6582b6b57 in fil_crypt_find_space_to_rotate (key_state=0x7fa6487fddb0, state=0x7fa6487fddc0, recheck=0x7fa6487fdd9b) at 10.1/storage/innobase/fil/fil0crypt.cc:1584
#3  0x00007fa6582b8043 in fil_crypt_thread (arg=0x0) at 10.1/storage/innobase/fil/fil0crypt.cc:2220
#4  0x00007fa660d2ab50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#5  0x00007fa65edbf95d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112


Generated at Thu Feb 08 07:25:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.