Skip to content

Commit b73b8fa

Browse files
authored
Fix in-proc crash reporter frame assert. (#131273)
Stackwalk callback in in-proc crash reporter didn't check if a CrawlFrame was FrameLess before calling its GetRelOffset, something that method asserts, triggering an abort in debug builds.
1 parent 7827553 commit b73b8fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/coreclr/vm/crashreportstackwalker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ FrameCallbackAdapter(
260260

261261
Module* pModule = pMD->GetModule();
262262

263-
uint32_t nativeOffset = pCF->HasFaulted() ? 0 : pCF->GetRelOffset();
263+
uint32_t nativeOffset = (pCF->HasFaulted() || !pCF->IsFrameless()) ? 0 : pCF->GetRelOffset();
264264
uint32_t ilOffset = 0;
265265
PCODE ip = (PCODE)0;
266266
TADDR stackPointer = (TADDR)0;

0 commit comments

Comments
 (0)