Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NETSDKE2E][ARM64].net9preview4sdk can't be used on ARM64OS. #102056

Closed
v-ainigao opened this issue May 6, 2024 · 27 comments
Closed

[NETSDKE2E][ARM64].net9preview4sdk can't be used on ARM64OS. #102056

v-ainigao opened this issue May 6, 2024 · 27 comments

Comments

@v-ainigao
Copy link

v-ainigao commented May 6, 2024

Build:
9.0.100-preview.4.24253.11

Repro steps:
1.Install .net9 preview4 SDK on arm64.
2.run dotnet --info on CLI.

Expected Result:
dotnet --info can be displayed normally and the project can be created without any problems.

Actual Result:
dotnet --info is not fully loaded and the project can't build and run.
image
image
image

@dotnet-issue-labeler dotnet-issue-labeler bot added area-Infrastructure untriaged New issue has not been triaged by the area owner labels May 6, 2024
@v-ainigao
Copy link
Author

This memory dump file has been placed in this path. \mlangfs1\public\v-aini\arm64dump.zip

@v-ainigao v-ainigao changed the title [NETSDKE2E][ARM64].net9.0preview4sdk can't be used on ARM64OS. [NETSDKE2E][ARM64].net9preview4sdk can't be used on ARM64OS. May 6, 2024
@v-ainigao
Copy link
Author

Installing some workloads can be successful.
dotnet workload install maui --skip-manifest-update
image
dotnet workload install wasm-tools
image
But the dotnet workload list will also get stuck.
image

@v-ainigao
Copy link
Author

v-ainigao commented May 7, 2024

This issue also repro's on arm64OS with .net9preview5SDK(9.0.100-preview.5.24256.12) installed.
image
The project can be created successfully, but it does not jump to the next line.
image
However, it took a long time and the build is still in progress
image

@richaverma1 Hi richa, can you help me take a look?

@LoopedBard3
Copy link
Member

LoopedBard3 commented May 8, 2024

Hello, my team is also seeing this hang after ".Net workloads installed:" is printed when running dotnet --info on our windows arm64 machines. The latest failure we have seen has been with .NET SDK version: 9.0.100-preview.5.24257.6 with the last working version being 9.0.100-preview.4.24215.2. We are seeing this hang specifically on Windows ARM64 devices, or Linux ARM64 devices are still running as expected.

@LoopedBard3
Copy link
Member

@ViktorHofer, do you happen to know the correct person/group to cc for this? I suspect it to be under the area src/CLI, but am having trouble figuring out which group to choose based on the CODEOWNERS file. Thanks!

@mangod9
Copy link
Member

mangod9 commented May 9, 2024

we are trying to investigate. @LoopedBard3, are you able to get things work after setting DOTNET_LegacyExceptionHandling=1 ?

@LoopedBard3
Copy link
Member

Yes, that seems to fix the issue.

@mangod9
Copy link
Member

mangod9 commented May 9, 2024

ok good to know, believe there has been a fix recently for it: #101971

@Forgind
Copy link
Member

Forgind commented May 9, 2024

@mangod9,
Should this be moved over the runtime repo then?

@mangod9 mangod9 transferred this issue from dotnet/sdk May 9, 2024
@mangod9 mangod9 added area-ExceptionHandling-coreclr and removed area-Infrastructure untriaged New issue has not been triaged by the area owner labels May 9, 2024
@mangod9 mangod9 added this to the 9.0.0 milestone May 9, 2024
@mangod9
Copy link
Member

mangod9 commented May 9, 2024

yeah moved over now.

@mangod9
Copy link
Member

mangod9 commented May 10, 2024

We have made a temporary fix to disable new EH on win arm64 in Main and Preview4. @LoopedBard3 , could you please check that the latest build from Main resolves the issue for you? Thanks

@v-ainigao
Copy link
Author

This issue still repro's in the latest net9preview4sdk.
SDK version:9.0.100-preview.4.24258.4(runtime-9.0.0-preview.4.24252.19)
image
image

@mangod9
Copy link
Member

mangod9 commented May 11, 2024

Looks like the fix is in runtime-9.0.0-preview.4.24260.3, which has this commit: #102060.

@Zheng-Li01
Copy link
Member

Yes, the fixed worked in the 9.0.0-preview.4.24260.3 build on Arm machine.

image

@mangod9
Copy link
Member

mangod9 commented May 13, 2024

Ok great, thanks for confirming. We will keep the issue open till a permanent fix is done.

@v-ainigao
Copy link
Author

Ok great, thanks for confirming. We will keep the issue open till a permanent fix is done.

This issue has been fixed in ARM64OS.
image
But x64sdk crashes on arm64OS still repro.
Related bugs: #100425 (comment)
image

@LoopedBard3
Copy link
Member

LoopedBard3 commented May 13, 2024

We have made a temporary fix to disable new EH on win arm64 in Main and Preview4. @LoopedBard3 , could you please check that the latest build from Main resolves the issue for you? Thanks

@mangod9 We are still seeing this hang without the envvar. The version tested was .NET SDK version 9.0.100-preview.5.24262.2 (latest daily on channel 9.0).

@mangod9
Copy link
Member

mangod9 commented May 13, 2024

Is this native arm64 or are you running x64 ?

@LoopedBard3
Copy link
Member

LoopedBard3 commented May 13, 2024

Do you mean the machine or the binaries? The machine is native arm64. If binaries, is there a good way to verify which is being used? It should be arm64 as I used -Architecture arm64 and the zip files end with win-arm64.zip.

@v-ainigao
Copy link
Author

This problem still recurs on the latest net9preview5.
SDK version:9.0.100-preview.5.24262.2(runtime-9.0.0-preview.5.24256.1)
dotnet --info
image
dotnet new console
image

@LoopedBard3
Copy link
Member

@mangod9 do you know if this is likely to be resolved for the preview 5 sdk in the short term? (This week). I am trying to determine if it is worth it to use the legacy EH envvar workaround to get some perf runs this week or if this will be fixed shortly so we can do backfill testing. Thanks!

@mangod9
Copy link
Member

mangod9 commented May 15, 2024

The workaround should already be in place, I am guessing the SDK build you were trying has not picked up the latest runtime bits. Also a permanent fix should be checked in today too.

@v-ainigao
Copy link
Author

Today we are still seeing this hang. The version tested was .NET SDK version 9.0.100-preview.5.24265.9 (latest daily on channel 9.0).
image

@LoopedBard3
Copy link
Member

It seems the PR flow to update the runtime pulled down with the latest SDK version has been stuck for a bit, dotnet/installer#19711, which is likely why the latest 9.0 daily is still not seeing the runtime workaround or fix taking affect. This means the runtime will also need to be updated in the installer with the fix for it to show.

@LoopedBard3
Copy link
Member

Our runs are succeeding again after the dotnet/installer#19711 PR went in, though not sure if the installer includes the full fix for this issue or if it is using the workaround still.

@v-ainigao
Copy link
Author

This issue has been fixed in the .net9preview5SDK on ARM64OS.
image

@mangod9
Copy link
Member

mangod9 commented May 23, 2024

Great, closing it now.

@mangod9 mangod9 closed this as completed May 23, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants