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

sosplugin is not working on ARM #10668

Closed
wfurt opened this issue Jul 12, 2018 · 7 comments
Closed

sosplugin is not working on ARM #10668

wfurt opened this issue Jul 12, 2018 · 7 comments
Assignees
Labels
arch-arm32 bug os-linux Linux OS (any supported distro)

Comments

@wfurt
Copy link
Member

wfurt commented Jul 12, 2018

I tested this in my RP3 as well as Ubuntu on Qemu. I'm not even able to get list of commands.

pi@raspberrypi:~/aa $ lldb-4.0 ../dotnet-2.1.302/dotnet -- bin/Debug/netcoreapp2.1/aa.dll
(lldb) target create "../dotnet-2.1.302/dotnet"
Current executable set to '../dotnet-2.1.302/dotnet' (arm).
(lldb) settings set -- target.run-args  "bin/Debug/netcoreapp2.1/aa.dll"
(lldb) r
Process 16576 launched: '../dotnet-2.1.302/dotnet' (arm)
Hello World!
Going to sleep!
Process 16576 stopped
* thread dotnet/coreclr#1, name = 'dotnet', stop reason = signal SIGSTOP
    frame #0: 0x76f88ce8
->  0x76f88ce8: svc    #0x0
    0x76f88cec: cmn    r0, dotnet/coreclr#4096
    0x76f88cf0: mov    r5, r0
    0x76f88cf4: ldrls  r4, [sp]
(lldb) plugin load ../dotnet-2.1.302/shared/Microsoft.NETCore.App/2.1.2/libsosplugin.so
(lldb) sos
(lldb) sos help
Stack dump:
0.	HandleCommand(command = "sos help")
Segmentation fault

I did same steps on x64 and lldb-4.0
(lldb) sos

SOS is a debugger extension DLL designed to aid in the debugging of managed
programs. Functions are listed by category, then roughly in order of
...
...

(lldb) sos help
SOS command 'help' not found /home/furt/dotnet-2.1/shared/Microsoft.NETCore.App/2.1.0/libsos.so: undefined symbol: help

@mikem8361 mikem8361 self-assigned this Jul 12, 2018
@abbotware
Copy link

abbotware commented Jul 12, 2018

FYI - Same problem I have on aarch64 using lldb-3.8(armhf) and lldb-3.9(arm64) - i installed both 32 and 64 bit on the same machine just to see if it was a 32bit vs 64bit library loading issue

@RussKeldorph
Copy link
Contributor

@echesakovMSFT

@wfurt
Copy link
Member Author

wfurt commented Jul 13, 2018

just a note that it seems to work when I build it my self. (#18827) I'm suspicious this may be build problem .

@echesakov
Copy link
Contributor

echesakov commented Jul 13, 2018

I also ended up building lldb5.0.2+sosplugin for arm myself. In my case "official" lldb couldn't even run target process with the following message error: process launch failed: Lost debug server connection.

@abbotware
Copy link

It sounds like there are issues, but is there a process to get to a known working state so I can at least get some deadlock / hang analysis done on Linux Arm32?

From what I am reading, if I do the following:

Build LLDB 5.0.2?
Build SOS Plugin? (which source version)
Build .Net Core?

on my 'target' hardware, should I have a working way to do dump analysis? (or attach to a hung process)

@wfurt
Copy link
Member Author

wfurt commented Jul 24, 2018

I simply build coreclr with what ever version of lldb you plan to use (5.0 in my case)
You do not need to build lldb it self but you need lldb-dev (or equivalent package)

Also note, that on arm32 you can use Visual Studio for remote debug.

@mikem8361
Copy link
Member

Issue moved to dotnet/diagnostics dotnet/coreclr#41 via ZenHub

@msftgits msftgits transferred this issue from dotnet/coreclr Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-arm32 bug os-linux Linux OS (any supported distro)
Projects
None yet
Development

No branches or pull requests

5 participants