diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2021-11-01 09:28:41 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2021-11-01 10:29:58 +0200 |
commit | 026984c360ce27c62072ed6ce798ec855952c974 (patch) | |
tree | 5a39f39c717fb1838a54dc79e73bb69e237281d2 /sql | |
parent | 0c77c5f6e778bca0823b5029ce2d801b506afec1 (diff) | |
download | mariadb-git-026984c360ce27c62072ed6ce798ec855952c974.tar.gz |
MDEV-26949 --debug-gdb installs redundant signal handlers
There is a server startup option --gdb a.k.a. --debug-gdb that requests
signals to be set for more convenient debugging. Most notably, SIGINT
(ctrl-c) will not be ignored, and you will be able to interrupt the
execution of the server while GDB is attached to it.
When we are debugging, the signal handlers that would normally display
a terse stack trace are useless.
When we are debugging with rr, the signal handlers may interfere with
a SIGKILL that could be sent to the process by the environment, and ruin
the rr replay trace, due to a Linux kernel bug
https://lkml.org/lkml/2021/10/31/311
To be able to diagnose bugs in kill+restart tests, we may really need
both a trace before the SIGKILL and a trace of the failure after a
subsequent server startup. So, we had better avoid hitting the problem
by simply not installing those signal handlers.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/mysqld.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index d723c36e4cb..d7a44138780 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -9740,7 +9740,6 @@ static int get_options(int *argc_ptr, char ***argv_ptr) { /* Allow break with SIGINT, no core or stack trace */ test_flags|= TEST_SIGINT; - opt_stack_trace= 1; test_flags&= ~TEST_CORE_ON_SIGNAL; } /* Set global MyISAM variables from delay_key_write_options */ |