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 #41

Closed
mikem8361 opened this issue Jul 30, 2018 · 1 comment
Closed

sosplugin is not working on ARM #41

mikem8361 opened this issue Jul 30, 2018 · 1 comment
Assignees
Milestone

Comments

@mikem8361
Copy link
Member

@wfurt commented on Thu 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 #1, name = 'dotnet', stop reason = signal SIGSTOP
    frame #0: 0x76f88ce8
->  0x76f88ce8: svc    #0x0
    0x76f88cec: cmn    r0, #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


---

@abbotware commented on [Thu Jul 12 2018](https://github.com/dotnet/coreclr/issues/18889#issuecomment-404672814)

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 commented on [Thu Jul 12 2018](https://github.com/dotnet/coreclr/issues/18889#issuecomment-404718273)

@echesakovMSFT 

---

@wfurt commented on [Thu Jul 12 2018](https://github.com/dotnet/coreclr/issues/18889#issuecomment-404730466)

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

---

@echesakovMSFT commented on [Fri Jul 13 2018](https://github.com/dotnet/coreclr/issues/18889#issuecomment-404870130)

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 commented on [Tue Jul 24 2018](https://github.com/dotnet/coreclr/issues/18889#issuecomment-407495386)

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 commented on [Tue Jul 24 2018](https://github.com/dotnet/coreclr/issues/18889#issuecomment-407499242)

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 mikem8361 self-assigned this Jul 30, 2018
@mikem8361 mikem8361 added this to the Future milestone Jan 8, 2019
@mikem8361
Copy link
Member Author

We have tested sos/sosplugin with internal lldb version 9.0 that has some fixes from the lldb master. SOS tests pass.

@ghost ghost locked as resolved and limited conversation to collaborators Jun 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant