Disable runtime async feature on Apple mobile#124076
Disable runtime async feature on Apple mobile#124076kotlarmilos merged 2 commits intodotnet:mainfrom
Conversation
|
Tagging subscribers to this area: @BrzVlad, @janvorli, @kg |
There was a problem hiding this comment.
Pull request overview
This pull request attempts to disable the runtime async feature in System.Diagnostics.StackTrace tests on Apple mobile platforms by conditionally setting EnablePreviewFeatures based on the TargetsAppleMobile property. The change is in response to test failures on Apple mobile with both CoreCLR and Mono runtimes.
Changes:
- Conditionally disable
EnablePreviewFeatureson Apple mobile platforms in the test project file - Remove the
ActiveIssueattribute that was skipping the test on CoreCLR interpreter - Add tracking issue reference for the problem
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/libraries/System.Diagnostics.StackTrace/tests/System.Diagnostics.StackTrace.Tests.csproj | Adds condition to only set EnablePreviewFeatures when not targeting Apple mobile, includes tracking issue comment |
| src/libraries/System.Diagnostics.StackTrace/tests/StackTraceTests.cs | Removes ActiveIssue attribute for CoreCLR interpreter on Apple mobile |
src/libraries/System.Diagnostics.StackTrace/tests/System.Diagnostics.StackTrace.Tests.csproj
Outdated
Show resolved
Hide resolved
|
This week I've started seeing some intermittent crashes on macOS arm64 in libraries tests that were not present approximately a week ago. It used to be stable before. So there is definitely some new issue. |
|
I am looking into it |
|
I have not examined the dump, but if this is limited to runtime-async runs as you say then this is what I expect based on my local testing. My changes expose an issue with the DiagnosticIP: #124044 (comment) I can change the code to fail gracefully here and see if that resolves the issue - or at least allows for non-diagnostic related tests to run. #124089 |
|
@rcj1 at least one of the failures I get consistently now is an incorrect object reference, I am not getting an assert on invalid codeinfo. |
Is the interpreter enabled here? Debug or release? Could you share the build where this is happening or a dump? |
|
Also relevant for MacOS arm64 is this issue, if you are seeing a crash on nativeAOT with runtime-async enabled - #124015 |
It is with interpreting everything (DOTNET_ReadyToRun=0 DOTNET_TieredCompilation=0 DOTNET_InterpMode=3), checked build of runtime, release build of libraries. The issue I've mentioned (Microsoft.Extensions.Http.Tests ) actually seems to go quite a long time back, I have likely missed it somehow. I wasn't able to find out yet when we started to hit it, I've tried to go about two weeks into the past and it still happened. It always fails with this on top of the stack, it is executing this in the interpreter: And the failure is an access violation here: I'll check the other one failing I can see, that one fails intermittently. |
|
Ok, the other actually fails due to the codeinfo not being valid, it is the |
|
@rcj1 I've just found that the other issue - the Microsoft.Extensions.Http.Tests one went away after a clean rebuild of the runtime. |
Description
This PR disables runtime async feature on Apple mobile due to #124044.