You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cancellation inside a defer while break/continue is unwinding nested scopes may re-drop locals already dropped on that path (untested) #1986
Found reasoning through #916's fix (fix-916): when a cancellation lands inside a defer body while a break/continue is already running cleanup for nested scopes, the cancelled-return unwind re-emits drops for every scheduled local, including ones that path may already have dropped. Untested — first write the fixture (a loop with a nested scope holding a Drop value, a defer that awaits, cancellation delivered at that await during a break) under run --debug-alloc + WITH_ALLOC_NO_REUSE=1; if it double-frees, fix the unwind to emit only drops still pending on that path (MIR's path-sensitive drop state owns this, D65); if it doesn't, keep the fixture as the pin.
Activity
A cancellation inside a defer on a break/continue path drops only wha…
A cancellation inside a defer on a break/continue path drops only wha…
A cancellation inside a defer on a break/continue path drops only wha…
A cancellation inside a defer on a break/continue path drops only wha…
Cancellation: indirect callees that may suspend get the cancelled-ret…
ehartford commentedon Oct 4, 2026
Fixed on main in 8cc883a (stack #2072, ten PRs; seed-driven battery GREEN on 92add22, tree identical to main).