mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
SERVER-18474 allow core dump on fassert and invariant failures
This commit is contained in:
parent
ff7b100090
commit
92f747853b
@ -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) {
|
NOINLINE_DECL void invariantFailed(const char* expr, const char* file, unsigned line) {
|
||||||
log() << "Invariant failure " << expr << ' ' << file << ' ' << dec << line << endl;
|
log() << "Invariant failure " << expr << ' ' << file << ' ' << dec << line << endl;
|
||||||
logContext();
|
|
||||||
breakpoint();
|
breakpoint();
|
||||||
log() << "\n\n***aborting after invariant() failure\n\n" << endl;
|
log() << "\n\n***aborting after invariant() failure\n\n" << endl;
|
||||||
quickExit(EXIT_ABRUPT);
|
std::abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
NOINLINE_DECL void invariantOKFailed(const char* expr,
|
NOINLINE_DECL void invariantOKFailed(const char* expr,
|
||||||
@ -168,10 +167,9 @@ NOINLINE_DECL void invariantOKFailed(const char* expr,
|
|||||||
|
|
||||||
NOINLINE_DECL void fassertFailed(int msgid) {
|
NOINLINE_DECL void fassertFailed(int msgid) {
|
||||||
log() << "Fatal Assertion " << msgid << endl;
|
log() << "Fatal Assertion " << msgid << endl;
|
||||||
logContext();
|
|
||||||
breakpoint();
|
breakpoint();
|
||||||
log() << "\n\n***aborting after fassert() failure\n\n" << endl;
|
log() << "\n\n***aborting after fassert() failure\n\n" << endl;
|
||||||
quickExit(EXIT_ABRUPT);
|
std::abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
NOINLINE_DECL void fassertFailedNoTrace(int msgid) {
|
NOINLINE_DECL void fassertFailedNoTrace(int msgid) {
|
||||||
|
Loading…
Reference in New Issue
Block a user