diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2015-03-13 20:29:35 +0100 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2015-03-13 20:29:35 +0100 |
commit | f4e93c28eabe5033e16f24ebdff24a99408b21f0 (patch) | |
tree | 2ea843a9e7709a13a1879ab2b661cdbfb7146117 /src/vm/stackwalk.cpp | |
parent | a39338fdfcb0313165992ba2a9221428039a1d9f (diff) | |
download | coreclr-f4e93c28eabe5033e16f24ebdff24a99408b21f0.tar.gz coreclr-f4e93c28eabe5033e16f24ebdff24a99408b21f0.tar.bz2 coreclr-f4e93c28eabe5033e16f24ebdff24a99408b21f0.zip |
Add unhandled exception stack trace print
This change adds printing of unhandled managed exception stack trace to
console before exiting.
Diffstat (limited to 'src/vm/stackwalk.cpp')
-rw-r--r-- | src/vm/stackwalk.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vm/stackwalk.cpp b/src/vm/stackwalk.cpp index 0b8ab95cb6..f49e87be4a 100644 --- a/src/vm/stackwalk.cpp +++ b/src/vm/stackwalk.cpp @@ -790,7 +790,11 @@ UINT_PTR Thread::VirtualUnwindToFirstManagedCallFrame(T_CONTEXT* pContext) if (uControlPc == 0) { - _ASSERTE(!"Thread::VirtualUnwindToFirstManagedCallFrame: PAL_VirtualUnwind reached end of the stack"); + // This displays the managed stack in case the unwind has walked out of the stack and + // a managed exception was being unwound. + DefaultCatchHandler(NULL /*pExceptionInfo*/, NULL /*Throwable*/, TRUE /*useLastThrownObject*/, + TRUE /*isTerminating*/, FALSE /*isThreadBaseFIlter*/, FALSE /*sendAppDomainEvents*/); + EEPOLICY_HANDLE_FATAL_ERROR(COR_E_EXECUTIONENGINE); } |