Fix stack overflow reporting from native code (#56774)
authorJan Vorlicek <jan.vorlicek@volny.cz>
Wed, 4 Aug 2021 20:00:04 +0000 (22:00 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Aug 2021 20:00:04 +0000 (22:00 +0200)
commit7d76a64bd922ca34dc17224001d7e505c914ba6c
tree03fb7dae8672a778a33eedf7e196da48110a766f
parent571b4b4283007c3c2315a780eacce19f9bbd514c
Fix stack overflow reporting from native code (#56774)

* Fix stack overflow reporting from native code

When stack overflow happens in native code, the stack walker is unable
to walk the stack and we end up reporting no call stack at all.

This change fixes it by first unwinding the exception context to the first
managed frame and then letting the stack walker to walk the frames.

* Revert behavior for the Windows x86 case
src/coreclr/vm/eepolicy.cpp