diff options
author | Robert Guo <robertguo@me.com> | 2016-06-15 14:18:04 -0400 |
---|---|---|
committer | Robert Guo <robertguo@me.com> | 2016-06-17 16:12:05 -0400 |
commit | 1eae564e0ac849584aa14f368abb5f1867a7f789 (patch) | |
tree | 0368c66d1e57229fb3996921475c50c4ce4a211c | |
parent | dd7e05dbde9f1e9554ad93cada8fb4d5dcbe11de (diff) | |
download | mongo-1eae564e0ac849584aa14f368abb5f1867a7f789.tar.gz |
SERVER-23071 use system exception handler to generate minidump
-rw-r--r-- | src/mongo/util/exception_filter_win32.cpp | 4 | ||||
-rw-r--r-- | src/mongo/util/exception_filter_win32.h | 2 | ||||
-rw-r--r-- | src/mongo/util/signal_handlers_synchronous.cpp | 3 |
3 files changed, 1 insertions, 8 deletions
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 |