From 1eae564e0ac849584aa14f368abb5f1867a7f789 Mon Sep 17 00:00:00 2001 From: Robert Guo Date: Wed, 15 Jun 2016 14:18:04 -0400 Subject: SERVER-23071 use system exception handler to generate minidump --- src/mongo/util/exception_filter_win32.cpp | 4 ---- src/mongo/util/exception_filter_win32.h | 2 -- src/mongo/util/signal_handlers_synchronous.cpp | 3 +-- 3 files changed, 1 insertion(+), 8 deletions(-) (limited to 'src/mongo') diff --git a/src/mongo/util/exception_filter_win32.cpp b/src/mongo/util/exception_filter_win32.cpp index db09154229c..0e61debd48c 100644 --- a/src/mongo/util/exception_filter_win32.cpp +++ b/src/mongo/util/exception_filter_win32.cpp @@ -174,10 +174,6 @@ LONG WINAPI exceptionFilter(struct _EXCEPTION_POINTERS* excPointers) { } } -void doMinidump() { - doMinidumpWithException(NULL); -} - LPTOP_LEVEL_EXCEPTION_FILTER filtLast = 0; void setWindowsUnhandledExceptionFilter() { diff --git a/src/mongo/util/exception_filter_win32.h b/src/mongo/util/exception_filter_win32.h index ddf6f5d0346..52c09a43f55 100644 --- a/src/mongo/util/exception_filter_win32.h +++ b/src/mongo/util/exception_filter_win32.h @@ -32,6 +32,4 @@ namespace mongo { void setWindowsUnhandledExceptionFilter(); -void doMinidump(); - } // namespace mongo diff --git a/src/mongo/util/signal_handlers_synchronous.cpp b/src/mongo/util/signal_handlers_synchronous.cpp index 2f8996b3c36..ca677141bbc 100644 --- a/src/mongo/util/signal_handlers_synchronous.cpp +++ b/src/mongo/util/signal_handlers_synchronous.cpp @@ -75,8 +75,7 @@ const char* strsignal(int signalNum) { } void endProcessWithSignal(int signalNum) { - doMinidump(); - quickExit(EXIT_ABRUPT); + RaiseException(EXIT_ABRUPT, EXCEPTION_NONCONTINUABLE, 0, NULL); } #else -- cgit v1.2.1