Skip to content

Commit

Permalink
Fixes of innodb.mysqld_core_dump_without_buffer_pool* (facebook#1118) (
Browse files Browse the repository at this point in the history
…facebook#1118)

Summary:
- innodb.mysqld_core_dump_without_buffer_pool* MTR test cases expect
  core pattern to be simple 'core' and core files located in the var dir
- `mysqld` is killed to dump a core using SIGSEGV
Pull Request resolved: facebook#1118

Differential Revision: D20746947

Pulled By: atish2196
  • Loading branch information
percona-ysorokin authored and inikep committed Mar 14, 2022
1 parent 6e12f56 commit 1b6ede6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mysql-test/include/mysqld_core_dump.inc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ if ($pid eq "") {
$cur_time = time;
# Kill mysqld to dump a core
system("kill", "-s", "SIGABRT", "$pid");
print "# Perl: Sent a SIGABRT to mysqld to dump a core.\n";
system("kill", "-s", "SIGSEGV", "$pid");
print "# Perl: Sent a SIGSEGV to mysqld to dump a core.\n";
$core_dir = $ENV{'MYSQLTEST_VARDIR'} . '/mysqld.1/data/';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Get the full path name of the PID file
# Expecting a "crash", but don't restart the server until it is told to
# Expected max core size is 1450 MB
# Perl: Sent a SIGABRT to mysqld to dump a core.
# Perl: Sent a SIGSEGV to mysqld to dump a core.
# Perl: OK! Found the core file and it's small!
# Make server restart
# Wait for server to be back online
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SELECT @@global.innodb_buffer_pool_in_core_file;
# Get the full path name of the PID file
# Expecting a "crash", but don't restart the server until it is told to
# Expected max core size is 1450 MB
# Perl: Sent a SIGABRT to mysqld to dump a core.
# Perl: Sent a SIGSEGV to mysqld to dump a core.
# Perl: OK! Found the core file and it's small!
# Make server restart
# Wait for server to be back online
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set global innodb_buffer_pool_size = 2048*1024*1024;
# Get the full path name of the PID file
# Expecting a "crash", but don't restart the server until it is told to
# Expected max core size is 1600 MB
# Perl: Sent a SIGABRT to mysqld to dump a core.
# Perl: Sent a SIGSEGV to mysqld to dump a core.
# Perl: OK! Found the core file and it's small!
# Make server restart
# Wait for server to be back online

0 comments on commit 1b6ede6

Please sign in to comment.