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

createdump-aspnet fails on RHEL 8 arm64 against .NET 8 #287

Closed
tmds opened this issue Sep 1, 2023 · 2 comments
Closed

createdump-aspnet fails on RHEL 8 arm64 against .NET 8 #287

tmds opened this issue Sep 1, 2023 · 2 comments
Assignees
Labels
8.0 .NET 8

Comments

@tmds
Copy link
Member

tmds commented Sep 1, 2023

On RHEL 8 arm64 this test is failing, while it is passing on other combinations, including RHEL 9 arm64.

Log:

: Executing /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/createdump-aspnet/test.sh with arguments 8.0.0-rc.2.23431.9 in working directory /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/createdump-aspnet
+ IFS=.-
+ read -ra VERSION_SPLIT
+ version=8.0
+ dotnet new web --force
Welcome to .NET 8.0!
---------------------
SDK Version: 8.0.100-rc.2.23451.1
----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate view the instructions: https://aka.ms/dotnet-https-linux
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
The template "ASP.NET Core Empty" was created successfully.
Processing post-creation actions...
Restoring /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/createdump-aspnet/createdump-aspnet.csproj:
Determining projects to restore...
Restored /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/createdump-aspnet/createdump-aspnet.csproj (in 851 ms).
Restore succeeded.
+ sed -i -e 's|.UseStartup|.UseUrls("http://localhost:5000").UseStartup|' Program.cs
+ dotnet build -p:UseRazorBuildServer=false -p:UseSharedCompilation=false /m:1
MSBuild version 17.8.0-preview-23431-02+3c910ba83 for .NET
Determining projects to restore...
All projects are up-to-date for restore.
/tmp/tmp.AzK2lhnJpw/.dotnet/sdk/8.0.100-rc.2.23451.1/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(3115): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/createdump-aspnet/createdump-aspnet.csproj]
createdump-aspnet -> /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/createdump-aspnet/bin/Debug/net8.0/createdump-aspnet.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:08.37
+ sleep 5
+ dotnet run --no-build --no-restore
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:5170
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
Content root path: /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/createdump-aspnet
+ root_pid=234356
+ mapfile -t pids
++ pgrep -P 234356
+ pids+=("${root_pid}")
+ failed=0
++++ command -v dotnet
+++ readlink -f /tmp/tmp.AzK2lhnJpw/.dotnet/dotnet
++ dirname /tmp/tmp.AzK2lhnJpw/.dotnet/dotnet
+ dotnet_home=/tmp/tmp.AzK2lhnJpw/.dotnet
+ for pid in "${pids[@]}"
++ pwd
+ /tmp/tmp.AzK2lhnJpw/.dotnet/shared/Microsoft.NETCore.App/8.0.0-rc.2.23431.9/createdump -f /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/createdump-aspnet/coredump.%d 234369
[createdump] Gathering state for process 234369 createdump-aspn
[createdump] Writing minidump with heap to file /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/createdump-aspnet/coredump.234369
/tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/createdump-aspnet/test.sh: line 29: 234413 Segmentation fault      (core dumped) "${dotnet_home}"/shared/Microsoft.NETCore.App/"${version}"*/createdump -f "$(pwd)"/'coredump.%d' "${pid}"
+ echo 'createdump failed'
+ failed=1
+ for pid in "${pids[@]}"
createdump failed
++ pwd
+ /tmp/tmp.AzK2lhnJpw/.dotnet/shared/Microsoft.NETCore.App/8.0.0-rc.2.23431.9/createdump -f /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/createdump-aspnet/coredump.%d 234356
[createdump] Gathering state for process 234356 dotnet
[createdump] Writing minidump with heap to file /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/createdump-aspnet/coredump.234356
/tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/createdump-aspnet/test.sh: line 29: 234417 Segmentation fault      (core dumped) "${dotnet_home}"/shared/Microsoft.NETCore.App/"${version}"*/createdump -f "$(pwd)"/'coredump.%d' "${pid}"
+ echo 'createdump failed'
+ failed=1
+ for pid in "${pids[@]}"
createdump failed
+ kill -s SIGTERM 234369
+ for pid in "${pids[@]}"
+ kill -s SIGTERM 234356
+ sleep 1
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
+ for pid in "${pids[@]}"
+ ps -p 234369
PID TTY          TIME CMD
+ for pid in "${pids[@]}"
+ ps -p 234356
PID TTY          TIME CMD
+ '[' 1 -eq 1 ']'
+ echo 'FAIL: createdump failed'
+ exit 1
FAIL: createdump failed
Process Exit Code: 1

cc @omajid

@tmds
Copy link
Member Author

tmds commented Sep 11, 2023

Investigated and created an issue upstream: dotnet/runtime#91864.

@tmds tmds self-assigned this Sep 12, 2023
@omajid omajid added the 8.0 .NET 8 label Sep 18, 2023
@tmds
Copy link
Member Author

tmds commented Sep 19, 2023

Fixed by dotnet/runtime#91953.

@tmds tmds closed this as completed Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.0 .NET 8
Projects
None yet
Development

No branches or pull requests

2 participants