mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-25019 memory allocation failures during startup because
server failure in different, confusing ways InnoDB fails to free the buffer pool instance mutex and zip mutex If the allocation of buffer pool instance chunk fails. So it leads to freeing of buffer pool before freeing the mutexes and leads to double freeing of memory while freeing the mutex during shutdown.
This commit is contained in:
11
mysql-test/suite/innodb/t/innodb_buffer_pool_fail.test
Normal file
11
mysql-test/suite/innodb/t/innodb_buffer_pool_fail.test
Normal file
@ -0,0 +1,11 @@
|
||||
--source include/have_innodb.inc
|
||||
--source include/have_debug.inc
|
||||
call mtr.add_suppression("InnoDB: Cannot allocate memory for the buffer pool");
|
||||
call mtr.add_suppression("InnoDB: Plugin initialization aborted at srv0start.cc.*");
|
||||
call mtr.add_suppression("Plugin 'InnoDB' init function returned error.");
|
||||
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed.");
|
||||
--echo #
|
||||
--echo # MDEV-25019 memory allocation failures during startup cause server failure in different, confusing ways
|
||||
--echo #
|
||||
let restart_parameters=--debug_dbug="+d,ib_buf_chunk_init_fails";
|
||||
--source include/restart_mysqld.inc
|
Reference in New Issue
Block a user