diff options
author | Jonghyun Park <parjong@gmail.com> | 2017-04-04 15:50:02 +0700 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2017-04-04 10:50:02 +0200 |
commit | 53c88123a7f6216a31318f14062fd245730c74ba (patch) | |
tree | b9ddb15c344e29cdbe2e12855104fe2dd9bacae3 /src/vm | |
parent | ebf4927d891757b1bd7f54119de2ad60900d3232 (diff) | |
download | coreclr-53c88123a7f6216a31318f14062fd245730c74ba.tar.gz coreclr-53c88123a7f6216a31318f14062fd245730c74ba.tar.bz2 coreclr-53c88123a7f6216a31318f14062fd245730c74ba.zip |
[x86/Linux] Correctly unwind esp frames (#10685)
Diffstat (limited to 'src/vm')
-rw-r--r-- | src/vm/eetwain.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vm/eetwain.cpp b/src/vm/eetwain.cpp index 18bc24ae39..a0d302cdb2 100644 --- a/src/vm/eetwain.cpp +++ b/src/vm/eetwain.cpp @@ -3815,7 +3815,10 @@ bool UnwindEbpDoubleAlignFrame( // TODO Currently we assume that ESP of funclet frames is always fixed but actually it could change. if (pCodeInfo->IsFunclet()) { - baseSP = curESP + 12; // padding for 16byte stack alignment allocated in genFuncletProlog() + // Set baseSP as initial SP + baseSP = pContext->pCurrentContext->ResumeEsp; + // 16-byte stack alignment padding (allocated in genFuncletProlog) + baseSP += 12; pContext->PCTAddr = baseSP; pContext->ControlPC = *PTR_PCODE(pContext->PCTAddr); |