-
Notifications
You must be signed in to change notification settings - Fork 357
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
lldb sos error: You can run the debugger command 'setclrpath <directory>' to control the load of libmscordaccore.dylib.
#1885
Comments
I tried loading it with ClrMD and it also complaied about
I wonder if crashpad just doesn't include something needed here? |
Could you run This coredump was created by crashpad you linked into the runtime? Does it use the DAC EnumMemoryRegions to add memory to the dump? |
I doubt it does, I'll dig into it further to learn how that works.
Sounds very much like that's the case.
My goal was to provide a NuGet package with a managed API to initialize the crash handler and generate the minidump when the process is crashing. And have that minidump get uploaded to a crash reporting service. All of that is built into Would you recommend I use
Thanks for the pointers. |
Yes, it looks like the core dump is missing some memory that SOS requires. No, createdump can't be used "in-process" as is. It uses ptrace to suspend/resume and get the registers which wouldn't work in-proc without a lot of work. |
@mikem8361 I'm not planning to create a dump from the running process. I mentioned to use as a library so I can write more code in the handler (upload to the backend). I see the runtime actually runs: Might be easier to replicate this than to patch crashpad to include |
exec'ing |
Thanks again @mikem8361 |
Description
I'm trying to use
lldb
withsos
to debug a minidump created with crashpad. Everything (build, crash and debug the app) is happening on the same machine (macOS 10.15.7).I followed the steps in the docs in this repo to install sos and then to configure it and debug the dump.
Everything went well, including
(lldb) loadsymbols
(at least didn't error out).But then any other
sos
command would fail:Same for
clrthreads
and others.I can confirm I have it:
The minidump was processed by Sentry without problems:
With the stack trace of 11 threads:
i.e:
Repro
The dump:
sentry-dotnet-minidump-issue.dmp.zip
The source code is in this repo: https://github.com/getsentry/sentry-dotnet-minidump
Similar to #414
Configuration
`dotnet info`
``` ➜ osx-x64 git:(main) ✗ dotnet --info .NET SDK (reflecting any global.json): Version: 5.0.101 Commit: d05174dc5aRuntime Environment:
OS Name: Mac OS X
OS Version: 10.15
OS Platform: Darwin
RID: osx.10.15-x64
Base Path: /usr/local/share/dotnet/sdk/5.0.101/
Host (useful for support):
Version: 5.0.1
Commit: b02e13abab
.NET SDKs installed:
2.1.810 [/usr/local/share/dotnet/sdk]
3.1.402 [/usr/local/share/dotnet/sdk]
3.1.403 [/usr/local/share/dotnet/sdk]
3.1.404 [/usr/local/share/dotnet/sdk]
5.0.100-rc.1.20452.10 [/usr/local/share/dotnet/sdk]
5.0.100 [/usr/local/share/dotnet/sdk]
5.0.101 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.22 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.22 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.0-rc.1.20451.17 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.22 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.23 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.0-rc.1.20451.14 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
The text was updated successfully, but these errors were encountered: