Repository navigation
Host Activation test failures on OSX: exit code 0x86 (134) #118904
Copy link
Copy link
Closed
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabUse this to report build issues in the .NET Helix tabarea-Hostblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
Milestone
Description
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1126641
Build error leg or test failing: Microsoft.DotNet.CoreSetup.Test.HostActivation.DependencyResolution.LocalPath.Microsoft.DotNet.CoreSetup.Test.HostActivation.DependencyResolution.LocalPath.RuntimeAssemblies_SelfContained
Pull request: #118870
Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": ["osx", " Exit Code: 0x86"],
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1126641
Error message validated: [could not be formatted with string.Format]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/19/2025 8:34:05 PM UTC
Report
| Build | Definition | Test | Pull Request |
|---|---|---|---|
| 1127376 | dotnet/runtime | HostActivation.Tests.WorkItemExecution | #118889 |
| 1126641 | dotnet/runtime | HostActivation.Tests.WorkItemExecution | #118870 |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 1 | 2 | 2 |
Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 2 | 16 | 36 |
Metadata
Metadata
Assignees
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabUse this to report build issues in the .NET Helix tabarea-Hostblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
Type
Projects
- StatusShow more project fieldsNo status
Activity
AndyAyersMS commentedon Aug 20, 2025
Also seeing failures in #118902, this time no log for one an a different assertion for the other
https://dev.azure.com/dnceng-public/public/_build/results?buildId=1126817&view=ms.vss-test-web.build-test-results-tab
dotnet-policy-service commentedon Aug 20, 2025
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.
elinor-fung commentedon Aug 20, 2025
Actual issues appears to be a crash (SIGABRT) - updated the error message filter. Unfortunately, we don't have dumps because the dumps were too large to upload (dotnet/arcade#14201).
In the logs, we have the trace message from the start of
hostpolicy_init_t::init- the next expected trace message would be fromruntime/src/native/corehost/hostpolicy/hostpolicy.cpp
Line 406 in 8f1c6e8
So either somewhere in
hostpolicy_init_t::initor the first part ofcorehost_main(not much before that trace message, so likely the init).[-]Host Activation test failures on OSX[/-][+]Host Activation test failures on OSX: exit code 0x86 (134)[/+]kg commentedon Aug 21, 2025
https://dev.azure.com/dnceng-public/public/_build/results?buildId=1128917&view=logs&jobId=f9191d62-d2e5-500a-3b05-adbcf0d5b394&j=f9191d62-d2e5-500a-3b05-adbcf0d5b394&t=ab342505-af40-5f81-79b2-96469c1f8ee1 is this but wasn't captured by the error message filter for some reason, I can't tell why.
elinor-fung commentedon Sep 3, 2025
I haven't been able to repro this on my arm64 Mac.
I've been manually sending off to Helix (OSX.1200.Amd64.Open) one of the tests that hit this with a loop. With some extra logging, a trace message added after L102 is printed and a trace message added before L132 is not. It seems we're crashing after we exit the if block here:
runtime/src/native/corehost/hostpolicy/hostpolicy_init.cpp
Lines 96 to 103 in b9fbc0d
before we get to:
runtime/src/native/corehost/hostpolicy/hostpolicy_init.cpp
Line 132 in b9fbc0d
elinor-fung commentedon Sep 5, 2025
Just based on when this started happening, I tried reverting 7195086. Without that, my 'run in a loop' repro (5000 iterations of a test that intermittently fails) stops hitting this. I don't see how that change would have caused this issue though. The only thing interesting in there is
get_host_env_var(always called passing a string literal) - which I've stepped / mentally gone through a bunch of times and don't see what would be the issue:runtime/src/native/corehost/hostmisc/trace.cpp
Lines 56 to 74 in 541ac3e
elinor-fung commentedon Sep 5, 2025
Switching to appending to a
std::stringstill repros the crash:but this does not:
elinor-fung commentedon Sep 8, 2025
This stops reproing running on
OSX.13.Amd64.Openinstead ofOSX.1200.Amd64.Open(with sources from main, 10k iterations of the test). Given macOS 12 is out of support (and the helix queues are slated to be removed, so we'll need to update anyways), I'm inclined to just update the queue.Revert "Add tracing to `hostpolicy_init_t::init` (#118973)" (#119552)