diff --git a/src/mongo/util/assert_util.cpp b/src/mongo/util/assert_util.cpp index 483de5a80e9..f804c247499 100644 --- a/src/mongo/util/assert_util.cpp +++ b/src/mongo/util/assert_util.cpp @@ -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) {