dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.03k stars 4.68k forks source link

Unable to run dotnet runtime on linux-musl-x86 #100223

Closed Exmirai closed 6 months ago

Exmirai commented 6 months ago

Description

I'm trying to build dotnet for i686 architecture. Unfortunately getting "coreclr_initialize failed - Error: 0x8007000e" - Out of Memory error. From docker stats plots realizing that dotnet trying to eat all memory available to container ( due to i686 architecture - only 4 gigs ) and right after hitting a limit it's throwing an error. Also during that process CPU consumption raises to 100%. Below is a plot from docker stats representing container state during coreclr initialization ( 2 peaks represents 2 attempts to run an application ). Looks like there's a kinda loop which causes coreclr to take all CPU time image I'm also tried to build dotnet using official cross image ("mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-x86") and targeting ubuntu which is also was unsuccessful

Reproduction Steps

Dockerfile i wrote to build dotnet: https://pastebin.com/J5dTbsGt

Expected behavior

Dotnet is running

Actual behavior

Getting: "coreclr_initialize failed - Error: 0x8007000e"

Details: https://pastebin.com/GXcEjMM8

Regression?

Unknown

Known Workarounds

Unknown

Configuration

Attempting to build: v8.0.3 Host OS: ubuntu: jammy Target OS: alpine-x86

Other information

No response

dotnet-policy-service[bot] commented 6 months ago

Tagging subscribers to this area: @mangod9 See info in area-owners.md if you want to be subscribed.

huoyaoyuan commented 6 months ago

Duplicate of #83509

Exmirai commented 6 months ago

So there's no way to at least overcome these behaviour?

huoyaoyuan commented 6 months ago

linux-x86 is not fully supported. It's not on the supported configuration list.

Exmirai commented 6 months ago

I know, there could be bugs. But as far as i know it should build and run normally

jkotas commented 6 months ago

Closing as duplicate of https://github.com/dotnet/runtime/issues/83509