[x86/Linux] Fix SIGSEGV on Debugger.Break() during debugging.
authorMikhail Kurinnoi <m.kurinnoi@samsung.com>
Thu, 23 Sep 2021 14:56:40 +0000 (07:56 -0700)
committerGleb Balykov <g.balykov@samsung.com>
Tue, 27 Sep 2022 12:50:22 +0000 (15:50 +0300)
commitcf284ed27e4a4d01852a565fb8c9a63d7a26c925
tree63f4bb54d37b4ddb213dc9da8e6329944134d17e
parentdfc68f56501d143b8c4b588edc248ae4daed742d
[x86/Linux] Fix SIGSEGV on Debugger.Break() during debugging.

SIGSEGV occur in src/vm/i386/cgenx86.cpp `HelperMethodFrame::UpdateRegDisplay()` at line `pRD->pCurrentContext->Eip = pRD->ControlPC = m_MachState.GetRetAddr();`, since `pRD->pCurrentContext` is NULL.
The point of issue - wrong code block compilation in DebuggerWalkStack() in case of Linux x86.
src/coreclr/debug/ee/frameinfo.cpp