1
0
Fork 0

implement matching for non-compressed systemd corefiles

This commit is contained in:
Wilfried Goesgens 2016-10-05 15:44:58 +02:00
parent 9a91e410c2
commit 016b595c6e
1 changed files with 6 additions and 1 deletions

View File

@ -488,6 +488,7 @@ function analyzeServerCrash (arangod, options, checkStr) {
if (fs.isFile(cpf)) {
var matchApport = /.*apport.*/;
var matchVarTmp = /\/var\/tmp/;
var matchSystemdCoredump = /.*systemd-coredump*/;
var corePattern = fs.readBuffer(cpf);
var cp = corePattern.asciiSlice(0, corePattern.length);
@ -495,7 +496,11 @@ function analyzeServerCrash (arangod, options, checkStr) {
print(RED + "apport handles corefiles on your system. Uninstall it if you want us to get corefiles for analysis.");
return;
}
if (matchVarTmp.exec(cp) == null) {
if (matchSystemdCoredump.exec(cp) == null) {
options.coreDirectory = "/var/lib/systemd/coredump";
}
else if (matchVarTmp.exec(cp) == null) {
print(RED + "Don't know howto locate corefiles in your system. '" + cpf + "' contains: '" + cp + "'");
return;
}