[PR #9893] Work around a compiler bug w/ coroutines and exceptions #27804

Open
opened 2026-01-31 09:24:20 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/9893

State: closed
Merged: Yes


There is a bug in the compiler that we trip over when we handle the
exception generated by Package::Current inside a coroutine. It appears
to destruct an invalid instance of winrt::factory_guard_count.

Learned from the compiler folks: "coroutine frame pointer wasn't being
stored ... properly".

Fixes #9821

**Original Pull Request:** https://github.com/microsoft/terminal/pull/9893 **State:** closed **Merged:** Yes --- There is a bug in the compiler that we trip over when we handle the exception generated by Package::Current inside a coroutine. It appears to destruct an invalid instance of winrt::factory_guard_count. Learned from the compiler folks: "coroutine frame pointer wasn't being stored ... properly". Fixes #9821
claunia added the pull-request label 2026-01-31 09:24:20 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27804