diff options
author | Tad Marshall <tad@10gen.com> | 2012-12-16 12:05:06 -0500 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2012-12-16 16:45:02 -0500 |
commit | c5aa1730a511ecffcb7dab2f7b32b6ee607c933d (patch) | |
tree | 92e75ae230a2aa990a7ea94980481570300226fb /src/mongo/util/stacktrace.h | |
parent | 81a8d87fa7a1a614ca0e0c0c93c260052af541b9 (diff) | |
download | mongo-c5aa1730a511ecffcb7dab2f7b32b6ee607c933d.tar.gz |
SERVER-7956 Do not display dialog on CRT assertion, print stack trace
Use the C runtime "report hook" to handle reporting of C runtime assertions
ourselves instead of having the C runtime do it. Log the message and print
a stack trace to help with debugging.
Diffstat (limited to 'src/mongo/util/stacktrace.h')
-rw-r--r-- | src/mongo/util/stacktrace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/util/stacktrace.h b/src/mongo/util/stacktrace.h index fab1d8b2a2e..1a5d62dcdf1 100644 --- a/src/mongo/util/stacktrace.h +++ b/src/mongo/util/stacktrace.h @@ -18,6 +18,9 @@ namespace mongo { #if defined(_WIN32) // Print stack trace (using a specified stack context) to "os", default to std::cout. void printWindowsStackTrace(CONTEXT &context, std::ostream &os=std::cout); + + // Print error message from C runtime followed by stack trace + int crtDebugCallback(int, char* originalMessage, int*); #endif } // namespace mongo |