diff --git a/src/coreclr/debug/di/rsstackwalk.cpp b/src/coreclr/debug/di/rsstackwalk.cpp index 9e25685c1cf442..13b9f45ea228aa 100644 --- a/src/coreclr/debug/di/rsstackwalk.cpp +++ b/src/coreclr/debug/di/rsstackwalk.cpp @@ -915,6 +915,15 @@ HRESULT CordbAsyncStackWalk::PopulateFrame() &nextContinuation, &state)); + // Skip continuations with null DiagnosticIP. These are infrastructure + // continuations (e.g. ValueTaskContinuation) that have no user code + // associated with them and cannot be represented as a debug frame. + if (diagnosticIP == 0) + { + m_continuationAddress = nextContinuation; + continue; + } + NativeCodeFunctionData codeData; VMPTR_Module pModule; mdMethodDef methodDef;