Skip to content

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Sep 22, 2025

Fixes #119925

This was latent bug in NativeAOT that got exposed by initializing COM eagerly on finalizer thread (#113194).

@jkotas jkotas changed the title Add NativeAOT smoke tests for resetting apartment state [NativeAOT] Fix resetting apartment state Sep 22, 2025
@jkotas
Copy link
Member Author

jkotas commented Sep 22, 2025

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Sep 22, 2025

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Sep 22, 2025

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Sep 22, 2025

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas jkotas marked this pull request as ready for review September 22, 2025 18:50
@jkotas
Copy link
Member Author

jkotas commented Sep 22, 2025

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Sep 22, 2025

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

jkotas and others added 2 commits September 22, 2025 14:40
@jkotas
Copy link
Member Author

jkotas commented Sep 22, 2025

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Sep 23, 2025

/azp run runtime-nativeaot-outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Sep 23, 2025

/ba-g deadletter

@jkotas jkotas merged commit 9d1b163 into dotnet:main Sep 23, 2025
145 of 151 checks passed
@jkotas
Copy link
Member Author

jkotas commented Sep 23, 2025

/backport to release/10.0

Copy link
Contributor

Started backporting to release/10.0: https://github.com/dotnet/runtime/actions/runs/17947906540

@jkotas jkotas deleted the reset-apartment branch September 23, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NET10: AOT => Failed to set the specified COM apartment state. Current apartment state 'MTA'.
3 participants