You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-1085 Add crash dump to daemons
This patch adds an automated crash dump which logs in /var/log/mariadb/columnstore/trace/ when one of the ColumnStore daemons crashes.
This commit is contained in:
@ -18,7 +18,8 @@ set(PrimProc_SRCS
|
||||
primitiveserver.cpp
|
||||
pseudocc.cpp
|
||||
rtscommand.cpp
|
||||
umsocketselector.cpp)
|
||||
umsocketselector.cpp
|
||||
../../utils/common/crashtrace.cpp)
|
||||
|
||||
#PrimProc_CXXFLAGS = $(march_flags) $(AM_CXXFLAGS)
|
||||
|
||||
|
@ -71,6 +71,8 @@ using namespace idbdatafile;
|
||||
|
||||
#include "cgroupconfigurator.h"
|
||||
|
||||
#include "crashtrace.h"
|
||||
|
||||
namespace primitiveprocessor
|
||||
{
|
||||
|
||||
@ -126,6 +128,12 @@ void setupSignalHandlers()
|
||||
ign.sa_handler = SIG_IGN;
|
||||
sigaction(SIGUSR2, &ign, 0);
|
||||
|
||||
memset(&ign, 0, sizeof(ign));
|
||||
ign.sa_handler = fatalHandler;
|
||||
sigaction(SIGSEGV, &ign, 0);
|
||||
sigaction(SIGABRT, &ign, 0);
|
||||
sigaction(SIGFPE, &ign, 0);
|
||||
|
||||
sigset_t sigset;
|
||||
sigemptyset(&sigset);
|
||||
sigaddset(&sigset, SIGPIPE);
|
||||
@ -288,6 +296,9 @@ int main(int argc, char* argv[])
|
||||
systemLang.find("UTF") != string::npos )
|
||||
utf8 = true;
|
||||
|
||||
// This is unset due to the way we start it
|
||||
program_invocation_short_name = const_cast<char*>("PrimProc");
|
||||
|
||||
Config* cf = Config::makeConfig();
|
||||
|
||||
setupSignalHandlers();
|
||||
|
Reference in New Issue
Block a user