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

Unable to set breaking points or run SOS commands #5311

Open
adrianoc opened this issue Mar 4, 2025 · 1 comment
Open

Unable to set breaking points or run SOS commands #5311

adrianoc opened this issue Mar 4, 2025 · 1 comment
Labels
bug Something isn't working sos
Milestone

Comments

@adrianoc
Copy link

adrianoc commented Mar 4, 2025

Description

(lldb) bpmd Program.<Main>$
Failed to load data access module, 0x80004002
Can not load or initialize libmscordaccore.so. The target runtime may not be initialized.

For more information see https://go.microsoft.com/fwlink/?linkid=2135652
bpmd Program.<Main>$  failed

Notes:

  1. If I run bpmd xxxx (no matter the value passed to it) just after launching lldb I get no output (leading to think it worked) but actually nothing happened
  2. Running sosstat (after running the application) produces the report below
(lldb) sosstatus
Target OS: LINUX Architecture: X64 ProcessId: 945958 (0xE6F26)
    #0 .NET Core runtime 8.0.1325.6609 at 00007FFFF7000000 size 006F566C index 8ebbb37976bf95ef4ac4fb471f6c46ac4dfc6617
    Runtime module path: /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.13/libcoreclr.so
        Exports:
            DotNetRuntimeInfo       : <NO SYMBOL>
            g_dacTable              : <NO SYMBOL>
            DotNetRuntimeDebugHeader: <NO SYMBOL>
SpecialDiagInfoHeader   : 00007FFFFFF10000 <NONE>
Current symbol store settings:
-> Cache: /home/adriano/.dotnet/symbolcache
-> Server: https://msdl.microsoft.com/download/symbols/ Timeout: 4 RetryCount: 0
Extensions loaded:
-> 9.0.607501+a651406e39038aef1dbc7c8097b52953284dba27 /home/adriano/.dotnet/sos/Microsoft.Diagnostics.ExtensionCommands.dll
GC memory usage for managed SOS components: 1,175,136 bytes
  1. Running setclrpath does not change anything:
(lldb) setclrpath /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.13/
Set load path for DAC/DBI to '/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.13/'
(lldb) bpmd Program.<Main>$
Failed to load data access module, 0x80004002
Can not load or initialize libmscordaccore.so. The target runtime may not be initialized.
  1. List of loaded modules:
(lldb) target modules list 
[  0] 924B3BAB-8C8E-EE35-411E-79D3D120A567-E63C70D2 0x0000555555554000 /usr/bin/dotnet 
[  1] E4DE036B-19E4-768E-7591-B596C4BE9F90-15F2D28A 0x00007ffff7fc3000 /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 
      /usr/lib/debug/.build-id/e4/de036b19e4768e7591b596c4be9f9015f2d28a.debug
[  2] 01DED5AB-A9BC-7302-03F9-478E52412661-63A868A2 0x00007ffff7fc1000 [vdso] (0x00007ffff7fc1000)
[  3] 17BF32E2-613D-C600-B367-D0F8A341669C-80AD790E 0x00007ffff7f9a000 /lib/x86_64-linux-gnu/libdl.so.2 
      /usr/lib/debug/.build-id/17/bf32e2613dc600b367d0f8a341669c80ad790e.debug
[  4] 81F46D55-3E2F-7C99-9E43-C3EEDE73A822-BC8D5D93 0x00007ffff7f95000 /lib/x86_64-linux-gnu/libpthread.so.0 
[  5] E37FE1A8-7978-3838-DE78-CBC8C80621FA-685D58A2 0x00007ffff7c00000 /lib/x86_64-linux-gnu/libstdc++.so.6 
[  6] 7D8778FC-A8EA-4621-B268-CC03662855D0-CD983439 0x00007ffff7eae000 /lib/x86_64-linux-gnu/libm.so.6 
      /usr/lib/debug/.build-id/7d/8778fca8ea4621b268cc03662855d0cd983439.debug
[  7] E3A44E0D-A9C6-E835-D293-ED8FD2882B4C-4A87130C 0x00007ffff7e8e000 /lib/x86_64-linux-gnu/libgcc_s.so.1 
[  8] CD410B71-0F0F-094C-6832-EDD95931006D-883AF48E 0x00007ffff7800000 /lib/x86_64-linux-gnu/libc.so.6 
      /usr/lib/debug/.build-id/cd/410b710f0f094c6832edd95931006d883af48e.debug
[  9] F6875AA5-625F-27D6-223B-BFD71B69E676-29F22F6A 0x00007ffff7bb1000 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.13/libhostpolicy.so 
[ 10] 8EBBB379-76BF-95EF-4AC4-FB471F6C46AC-4DFC6617 0x00007ffff7000000 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.13/libcoreclr.so 
[ 11] C3E9022A-22E9-F071-F3EE-0ABFA52F1B6D-33F3C19B 0x00007ffff7e3a000 /lib/x86_64-linux-gnu/librt.so.1 
      /usr/lib/debug/.build-id/c3/e9022a22e9f071f3ee0abfa52f1b6d33f3c19b.debug
[ 12] 55AE5391-1B50-F2C5-84DB-031CA0BA46CF-201CDEAD 0x00007ffff2c00000 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.13/libclrjit.so 
[ 13] 5BB0F731-FDB4-6FAA-E791-0CD2DF64FBC7-845B1F1E 0x00007ffff7a48000 /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.13/libSystem.Native.so 
[ 14] BEF3FF1D-70AA-DD68-AAB0-7D858A759360-C8B919AE 0x00007ffff6e05000 /lib/x86_64-linux-gnu/libicuuc.so.70 
[ 15] B1C2496D-D054-3023-C7A1-9C961BB7F3AB-C818F465 0x00007ffff0000000 /lib/x86_64-linux-gnu/libicudata.so.70 
[ 16] FF2DBCDD-92CB-E5A6-3D20-291E295D8FED-9F87D35B 0x00007fffefc00000 /lib/x86_64-linux-gnu/libicui18n.so.70 
  1. lldb output (just after start running)
lldb dotnet bin/Debug/net8.0/xxx.dll 
Current symbol store settings:
-> Cache: /home/USERNAME/.dotnet/symbolcache
-> Server: https://msdl.microsoft.com/download/symbols/ Timeout: 4 RetryCount: 0
(lldb) target create "dotnet"
Current executable set to 'dotnet' (x86_64).
(lldb) settings set -- target.run-args  "bin/Debug/net8.0/xxx.dll"
  1. dotnet --info
.NET SDK:
 Version:           8.0.406
 Commit:            73c77e847d
 Workload version:  8.0.400-manifests.47a3a0ce
 MSBuild version:   17.11.22+17752cebd

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  22.04
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /usr/share/dotnet/sdk/8.0.406/

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
 [aspire]
   Installation Source: SDK 8.0.400
   Manifest Version:    8.2.2/8.0.100
   Manifest Path:       /usr/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire/8.2.2/WorkloadManifest.json
   Install Type:        FileBased


Host:
  Version:      8.0.13
  Architecture: x64
  Commit:       eba546b0f0

.NET SDKs installed:
  8.0.406 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.13 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.13 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_ROOT       [/usr/share/dotnet]

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Other information

Does the version of Microsoft.Diagnostics.ExtensionCommands.dll needs to match the runtime version?

@adrianoc adrianoc added the bug Something isn't working label Mar 4, 2025
@tommcdon tommcdon added the sos label Mar 10, 2025
@tommcdon tommcdon added this to the 10.0.0 milestone Mar 10, 2025
@tommcdon
Copy link
Member

@mikem8361 @hoyosjs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sos
Projects
None yet
Development

No branches or pull requests

2 participants