-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 Hang? #37405
Comments
LLDB is hanging on amd64 on Alpine too. And it works on ARM64 in newer versions just fine. I believe it is happening either due to wrong build options being specified when building LLDB or LLDB just being broken for MIPS64. (based on my experience with problems I was hitting when trying to build LLDB 8 and 10 for arm32). Where did you get your build of LLDB? Was it from a distro package or have you built it yourself? |
Hi @janvorli Thanks for your kind response! LLDB-3.9 for ARM64 is just And LLDB-3.9 even hang with simple HelloWorld:
LLDB-8.0 for MIPS64 is @QiaoVanke rpmbuild from upstream's source. But LLDB-8.0 not hang with HelloWorld:
Thanks, |
Ah, so I have misunderstood, I have thought that LLDB 8 is hanging for MIPS64 too. |
Sorry for my poor English! LLDB-8.0 MIPS not hang with simple HelloWorld, but hang with corerun:
|
Hmm, this is strange, I've never seen a case when a C hello world would work, but .NET Core would hang under lldb. When it looks hung - does ctrl+c have any effect? |
YES, Ctrl+C works:
|
Hmm, but it doesn't break into the running code but just terminates the process. What if you set a breakpoint at "main" and run corerun, does it still hang or does it at least hit that? |
At least hit that:
But failed to break at
|
Hmm, so the only idea I have is that you could step through the code until you find the place where it hangs. I would try to set a breakpoint at coreclr_initialize, then step over the calls there as the first step. |
LLDB-6 is able to work for ARM64:
GDB is able to work for MIPS64 gdb.log LLDB-8 might hang at
Thanks, |
Hmm, I would try to use "ni" lldb command to step through the code here instruction by instruction However, I believe the problem is a bug in lldb, so another thing you could do is to build lldb with debugging symbols enabled (pass the cmake -DCMAKE_BUILD_TYPE=Debug option instead of -DCMAKE_BUILD_TYPE=Release), use it to run the app and when it hangs, use GDB to attach to the LLDB process and see if you can identify why it hung. |
Agree +1 But we might switch to use GNU toolchain after migrated to 5.x (the master) branch dotnet/coreclr#27625 Let's open source CoreCLR 3.x MIPS64 port ASAP and fix GC issue :) |
\cc @heiher |
Hi,
LLDB-8.0 is able to work for AMD64:
But LLDB-3.9 hang for ARM64:
diagnostics initial ported to MIPS64, but LLDB-8.0 is hang for MIPS64 either... GDB is able to work for ARM64 and MIPS64 #606
Please give me some hints.
Thanks,
Leslie Zhai
The text was updated successfully, but these errors were encountered: