You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-10-31 18:30:33 +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:
		| @@ -32,6 +32,8 @@ | ||||
|  | ||||
| #include "utils_utf8.h" | ||||
|  | ||||
| #include "crashtrace.h" | ||||
|  | ||||
| using namespace std; | ||||
| using namespace logging; | ||||
| using namespace messageqcpp; | ||||
| @@ -100,6 +102,16 @@ int main(int argc, char **argv) | ||||
|  | ||||
|     	setlocale(LC_ALL, systemLang.c_str()); | ||||
|  | ||||
|     // This is unset due to the way we start it | ||||
|     program_invocation_short_name = const_cast<char*>("ProcMgr"); | ||||
|  | ||||
|     struct sigaction ign; | ||||
|     memset(&ign, 0, sizeof(ign)); | ||||
|     ign.sa_handler = fatalHandler; | ||||
|     sigaction(SIGSEGV, &ign, 0); | ||||
|     sigaction(SIGABRT, &ign, 0); | ||||
|     sigaction(SIGFPE, &ign, 0); | ||||
|  | ||||
| 	Oam oam; | ||||
|  | ||||
| 	//check if root-user | ||||
|   | ||||
		Reference in New Issue
	
	Block a user