0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 09:06:21 +01:00

SERVER-18474 allow core dump on fassert and invariant failures

This commit is contained in:
Robert Guo 2015-07-31 12:53:43 -04:00
parent ff7b100090
commit 92f747853b

View File

@ -148,10 +148,9 @@ NOINLINE_DECL void verifyFailed(const char* expr, const char* file, unsigned lin
NOINLINE_DECL void invariantFailed(const char* expr, const char* file, unsigned line) {
log() << "Invariant failure " << expr << ' ' << file << ' ' << dec << line << endl;
logContext();
breakpoint();
log() << "\n\n***aborting after invariant() failure\n\n" << endl;
quickExit(EXIT_ABRUPT);
std::abort();
}
NOINLINE_DECL void invariantOKFailed(const char* expr,
@ -168,10 +167,9 @@ NOINLINE_DECL void invariantOKFailed(const char* expr,
NOINLINE_DECL void fassertFailed(int msgid) {
log() << "Fatal Assertion " << msgid << endl;
logContext();
breakpoint();
log() << "\n\n***aborting after fassert() failure\n\n" << endl;
quickExit(EXIT_ABRUPT);
std::abort();
}
NOINLINE_DECL void fassertFailedNoTrace(int msgid) {