[MDEV-11835] InnoDB: Failing assertion: free_slot != NULL on restarting server with encryption and read-only Created: 2017-01-18  Updated: 2017-01-19  Resolved: 2017-01-19

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

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

# Run the test with --mysqld=--innodb-encrypt-tables
 
--source suite/encryption/include/have_file_key_management_plugin.inc
--source include/have_innodb.inc
--let $restart_parameters= --innodb-read-only=1
--source include/restart_mysqld.inc
--echo # All done

10.1 a14638581b

2017-01-18 21:05:44 7f67303a8780  InnoDB: Assertion failure in thread 140081167501184 in file buf0buf.cc line 6087
InnoDB: Failing assertion: free_slot != NULL
 
#5  0x00007f672cbfc448 in __GI_abort () at abort.c:89
#6  0x00007f6725e31cc4 in buf_pool_reserve_tmp_slot (buf_pool=0x7f672c06d478, compressed=false) at /data/src/10.1/storage/innobase/buf/buf0buf.cc:6087
#7  0x00007f6725e32439 in buf_page_decrypt_after_read (bpage=0x7f6723798000) at /data/src/10.1/storage/innobase/buf/buf0buf.cc:6333
#8  0x00007f6725e2e472 in buf_page_io_complete (bpage=0x7f6723798000, evict=false) at /data/src/10.1/storage/innobase/buf/buf0buf.cc:4604
#9  0x00007f6725e4b6ff in buf_read_page_low (err=0x7fffaf1aefcc, sync=true, mode=132, space=0, zip_size=0, unzip=0, tablespace_version=1, offset=7, rbpage=0x7fffaf1af030) at /data/src/10.1/storage/innobase/buf/buf0rea.cc:218
#10 0x00007f6725e4bc49 in buf_read_page (space=0, zip_size=0, offset=7, bpage=0x7fffaf1af030) at /data/src/10.1/storage/innobase/buf/buf0rea.cc:424
#11 0x00007f6725e2a4e5 in buf_page_get_gen (space=0, zip_size=0, offset=7, rw_latch=2, guess=0x0, mode=10, file=0x7f67260b6150 "/data/src/10.1/storage/innobase/dict/dict0boot.cc", line=56, mtr=0x7fffaf1af130, err=0x0) at /data/src/10.1/storage/innobase/buf/buf0buf.cc:2971
#12 0x00007f6725e52e40 in dict_hdr_get (mtr=0x7fffaf1af130) at /data/src/10.1/storage/innobase/dict/dict0boot.cc:56
#13 0x00007f6725e53498 in dict_boot () at /data/src/10.1/storage/innobase/dict/dict0boot.cc:286
#14 0x00007f67260618b4 in innobase_start_or_create_for_mysql () at /data/src/10.1/storage/innobase/srv/srv0start.cc:2486
#15 0x00007f6725ef355e in innobase_init (p=0x7f672c025470) at /data/src/10.1/storage/innobase/handler/ha_innodb.cc:3970
#16 0x00007f672f636370 in ha_initialize_handlerton (plugin=0x7f67283e4bf0) at /data/src/10.1/sql/handler.cc:513
#17 0x00007f672f414905 in plugin_initialize (tmp_root=0x7fffaf1b3240, plugin=0x7f67283e4bf0, argc=0x7f673068b530 <remaining_argc>, argv=0x7f672c06b0c0, options_only=false) at /data/src/10.1/sql/sql_plugin.cc:1408
#18 0x00007f672f415498 in plugin_init (argc=0x7f673068b530 <remaining_argc>, argv=0x7f672c06b0c0, flags=2) at /data/src/10.1/sql/sql_plugin.cc:1679
#19 0x00007f672f3349c0 in init_server_components () at /data/src/10.1/sql/mysqld.cc:5150
#20 0x00007f672f335a25 in mysqld_main (argc=150, argv=0x7f672c06b0c0) at /data/src/10.1/sql/mysqld.cc:5739
#21 0x00007f672f32b1a0 in main (argc=26, argv=0x7fffaf1b3f88) at /data/src/10.1/sql/main.cc:25



 Comments   
Comment by Jan Lindström (Inactive) [ 2017-01-19 ]

http://lists.askmonty.org/pipermail/commits/2017-January/010466.html

Comment by Jan Lindström (Inactive) [ 2017-01-19 ]

commit dc557ca817f18e27ab46342865a510898f76822e
Author: Jan Lindström <jan.lindstrom@mariadb.com>
Date: Thu Jan 19 08:19:08 2017 +0200

MDEV-11835: InnoDB: Failing assertion: free_slot != NULL on

restarting server with encryption and read-only

buf0buf.cc: Temporary slots used in encryption was calculated
by read_threads * write_threads. However, in read-only mode
write_threads is zero. Correct way is to calculate
(read_threads + write_threads) * max pending IO requests.

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