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
.NET 10: csc fails with Failed to create CoreCLR, HRESULT: 0x80070008 #120967
changed the title [-]csc fails with Failed to create CoreCLR, HRESULT: 0x80070008[/-][+].NET 10: csc fails with Failed to create CoreCLR, HRESULT: 0x80070008[/+]on Oct 22, 2025
0x80070008 seems to mean "ERROR_NOT_ENOUGH_MEMORY"
There doesn't seem to be anything interesting changed between 20.105 and 20.117 versions of the SDK (dotnet/dotnet@5aef8ea...50d7970), so I guess this might be a problem in your pipeline, like insufficient disk space on the CI machines
Thanks. Looks like some issue with the apphost then. @agocke how do we investigate further what is the failure here?
Since this seems to be macOS specific, it might be something with signing, but as I said above, there don't seem to be any interesting changes between the relevant .NET builds.
Note: confirmed with @rolfbjarne offline that renaming the csc apphost makes the build work again since it falls back to using dotnet exec csc.dll instead of the csc apphost, hence my conclusion that this is some problem with the apphost.
The OS is likely erroring out in a system call and this is flowing through a weird code path. We should try and figure out if there's a better error message we can produce.
The OS is likely erroring out in a system call and this is flowing through a weird code path. We should try and figure out if there's a better error message we can produce.
Does the OS maybe return the OOM error when the process is forbidden from allocating executable memory?
It repros with https://ci.dot.net/public/Sdk/10.0.100-rtm.25520.117/dotnet-sdk-10.0.100-osx-arm64.tar.gz but not with (the newer) https://ci.dot.net/public/Sdk/10.0.100-rtm.25523.103/dotnet-sdk-10.0.100-osx-arm64.tar.gz.
Activity
[-]csc fails with Failed to create CoreCLR, HRESULT: 0x80070008[/-][+].NET 10: csc fails with Failed to create CoreCLR, HRESULT: 0x80070008[/+]MihuBot commentedon Oct 22, 2025
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
jjonescz commentedon Oct 22, 2025
0x80070008 seems to mean "ERROR_NOT_ENOUGH_MEMORY"
There doesn't seem to be anything interesting changed between 20.105 and 20.117 versions of the SDK (dotnet/dotnet@5aef8ea...50d7970), so I guess this might be a problem in your pipeline, like insufficient disk space on the CI machines
rolfbjarne commentedon Oct 22, 2025
I can reproduce locally, and I have plenty of disk space available.
jjonescz commentedon Oct 22, 2025
Thanks. Looks like some issue with the apphost then. @agocke how do we investigate further what is the failure here?
Since this seems to be macOS specific, it might be something with signing, but as I said above, there don't seem to be any interesting changes between the relevant .NET builds.
Note: confirmed with @rolfbjarne offline that renaming the
cscapphost makes the build work again since it falls back to usingdotnet exec csc.dllinstead of thecscapphost, hence my conclusion that this is some problem with the apphost.dotnet-policy-service commentedon Oct 22, 2025
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.
vitek-karas commentedon Oct 22, 2025
Can you enable COREHOST tracing and repro it? The trace will give lot more detail on what's happening in the apphost.
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-environment-variables#corehost_trace
rolfbjarne commentedon Oct 22, 2025
host_trace.txt.zip
I executed this using the repro from the initial description:
agocke commentedon Oct 22, 2025
@AaronRobinsonMSFT can you take a first look? I don’t think we changed anything significant recently so it smells like it might be miscompilation.
agocke commentedon Oct 22, 2025
Actually if the error is “out of disk space” that sounds suspiciously like #120653
1 remaining item
AaronRobinsonMSFT commentedon Oct 22, 2025
/cc @mmitche @ellahathaway
jaredpar commentedon Oct 22, 2025
Why does lack of enitlements lead to an out of disk space error message?
agocke commentedon Oct 22, 2025
The OS is likely erroring out in a system call and this is flowing through a weird code path. We should try and figure out if there's a better error message we can produce.
agocke commentedon Oct 22, 2025
This is going to be slightly difficult to figure out because one of things we can't do without entitlements is run it under a debugger
MichalPetryka commentedon Oct 22, 2025
Does the OS maybe return the OOM error when the process is forbidden from allocating executable memory?
rolfbjarne commentedon Oct 22, 2025
You can resign an executable locally using a placeholder certificate and then you can run with lldb.
and now you should be able to run the
cscbinary with lldb (and it won't have any entitlements either).rolfbjarne commentedon Oct 23, 2025
We got a bump to 10.0.100-rtm.25521.107 a few hours ago, which worked fine!NVM, I got our PRs mixed up, it's too early in the morning here.rmarinho commentedon Oct 23, 2025
Maui hitting this too dotnet/maui#32162
When I tried to move to barid 288228
am11 commentedon Oct 23, 2025
It repros with
https://ci.dot.net/public/Sdk/10.0.100-rtm.25520.117/dotnet-sdk-10.0.100-osx-arm64.tar.gzbut not with (the newer)https://ci.dot.net/public/Sdk/10.0.100-rtm.25523.103/dotnet-sdk-10.0.100-osx-arm64.tar.gz.25520.117might be a faulty build?jjonescz commentedon Oct 23, 2025
The fix dotnet/dotnet#3052 was merged yesterday, that should explain why 25523.103 works :)