Improve stack overflow stack trace dumping (#33281)
authorJan Vorlicek <janvorli@microsoft.com>
Fri, 6 Mar 2020 22:48:35 +0000 (23:48 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Mar 2020 22:48:35 +0000 (23:48 +0100)
commit69264d7e3ad062f6f45510fb4d38cb68fb023baf
treeb8ffd2289be7c92a45e59eec87222cb3c48484c0
parentd59f143221bfa500fe2b974827dcb47eb4ce327c
Improve stack overflow stack trace dumping (#33281)

It was discovered that the stack overflow stack trace dumping to console
doesn't work properly in some cases due to the fact that there was not
enough stack space left to display more complex method signatures on the
call stack.

To remove such fragility, this change updates the stack trace dumping by
running the actual dumping and stack walking on a new thread and
waiting for its completion. That means that we should be able to dump
any stack trace reliably.
src/coreclr/src/vm/eepolicy.cpp
src/coreclr/src/vm/threads.cpp