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

debugging-sos-lldb-via-core fails on RHEL 8 arm64 against .NET 8 #288

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

debugging-sos-lldb-via-core fails on RHEL 8 arm64 against .NET 8 #288

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

This test was recently re-enabled to run against .NET 8.

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/debugging-sos-lldb-via-core/test.sh with arguments 8.0.0-rc.2.23431.9 in working directory /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/debugging-sos-lldb-via-core
+ dotnet tool uninstall -g dotnet-sos
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
--------------------------------------------------------------------------------------
A tool with the package Id 'dotnet-sos' could not be found.
Tools are uninstalled using their package Id which may be different
from the tool name you use when calling the tool. You can find the tool names
and the corresponding package Ids for installed tools using the command
'dotnet tool list'.
+ true
+ dotnet tool uninstall -g dotnet-dump
A tool with the package Id 'dotnet-dump' could not be found.
Tools are uninstalled using their package Id which may be different
from the tool name you use when calling the tool. You can find the tool names
and the corresponding package Ids for installed tools using the command
'dotnet tool list'.
+ true
+ dotnet tool install -g dotnet-sos
You can invoke the tool using the following command: dotnet-sos
Tool 'dotnet-sos' (version '7.0.442301') was successfully installed.
+ dotnet tool install -g dotnet-dump
You can invoke the tool using the following command: dotnet-dump
Tool 'dotnet-dump' (version '7.0.442301') was successfully installed.
+ dotnet sos install
Installing SOS to /home/tester/.dotnet/sos
Creating installation directory...
Copying files from /home/tester/.dotnet/tools/.store/dotnet-sos/7.0.442301/dotnet-sos/7.0.442301/tools/net6.0/any/linux-arm64
Copying files from /home/tester/.dotnet/tools/.store/dotnet-sos/7.0.442301/dotnet-sos/7.0.442301/tools/net6.0/any/lib
Creating new /home/tester/.lldbinit file - LLDB will load SOS automatically at startup
SOS install succeeded
++ ../dotnet-directory --framework 8.0.0-rc.2.23431.9
+ framework_dir=/tmp/tmp.AzK2lhnJpw/.dotnet/shared/Microsoft.NETCore.App/8.0.0-rc.2.23431.9
+ test -f /tmp/tmp.AzK2lhnJpw/.dotnet/shared/Microsoft.NETCore.App/8.0.0-rc.2.23431.9/createdump
+ command -v lldb
/usr/bin/lldb
+ no_server=("/nodeReuse:false" "/p:UseSharedCompilation=false" "/p:UseRazorBuildServer=false")
+ rm -rf TestDir
+ mkdir TestDir
+ cd TestDir
+ dotnet new web
The template "ASP.NET Core Empty" was created successfully.
Processing post-creation actions...
Restoring /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/debugging-sos-lldb-via-core/TestDir/TestDir.csproj:
Determining projects to restore...
Restored /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/debugging-sos-lldb-via-core/TestDir/TestDir.csproj (in 521 ms).
Restore succeeded.
+ sed -i -e 's|.UseStartup|.UseUrls("http://localhost:5000").UseStartup|' Program.cs
+ dotnet build /nodeReuse:false /p:UseSharedCompilation=false /p:UseRazorBuildServer=false
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/debugging-sos-lldb-via-core/TestDir/TestDir.csproj]
TestDir -> /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/debugging-sos-lldb-via-core/TestDir/bin/Debug/net8.0/TestDir.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:08.36
+ run_pid=234750
+ sleep 5
+ dotnet bin/Debug/net8.0/TestDir.dll
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:5000
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/debugging-sos-lldb-via-core/TestDir
+ dotnet dump collect --output coredump.234750 --process-id 234750
+ tee run.pid
Writing full to /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/debugging-sos-lldb-via-core/TestDir/coredump.234750
[createdump] Gathering state for process 234750 dotnet
[createdump] Writing full dump to file /tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/debugging-sos-lldb-via-core/TestDir/coredump.234750
Complete
+ kill -9 234750
+ coredump=coredump.234750
+ test -f coredump.234750
+ echo '[dumpobj]'
[dumpobj]
+ lldb-core dso
+ commands=()
+ [[ 1 -ne 0 ]]
+ command=dso
+ commands+=('--one-line' "${command}")
+ shift
+ [[ 0 -ne 0 ]]
+ lldb --batch -c coredump.234750 --one-line dso
The ClrRuntime service is required by the Runtime property
/tmp/tmp.AzK2lhnJpw/dotnet-regular-tests/debugging-sos-lldb-via-core/test.sh: line 18: 234750 Killed                  dotnet bin/Debug/net*/TestDir.dll
Process Exit Code: 1

cc @omajid

@tmds
Copy link
Member Author

tmds commented Sep 8, 2023

I created an issue in the diagnostics repo for this: dotnet/diagnostics#4220.

@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