redhat-developer / dotnet-regular-tests

.NET Core tests for .NET Bunny (RHEL & Fedora RPM tests)
MIT License
8 stars 13 forks source link

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

Closed tmds closed 1 year ago

tmds commented 1 year ago

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 commented 1 year ago

Investigated and created an issue upstream: https://github.com/dotnet/runtime/issues/91864.

tmds commented 1 year ago

Fixed by https://github.com/dotnet/runtime/pull/91953.