lldb-3.9 hangs when I try to open a dump from a dotnet application. The process gets completely stuck, without consuming CPU.

$ gdb -v
GNU gdb (Ubuntu 8.1-0ubuntu3)

$ lldb-3.9 -v
lldb version 3.9.1 ( revision )

$ dotnet --version

$ sudo gcore 27247
[New LWP 27248]
[New LWP 27249]
[New LWP 27250]
[New LWP 27251]
[New LWP 27252]
[New LWP 27253]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f6c157d8ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7ffff444dcd0, expected=0, futex_word=0x1cb3468) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
142 ../sysdeps/unix/sysv/linux/futex-internal.h: No such file or directory.
warning: target file /proc/27247/cmdline contained unexpected null characters
Saved corefile core.27247

$ ll core.27247 
-rw-r--r-- 1 root root 2571743080 oct 20 19:17 core.27247

$ sudo lldb-3.9 `which dotnet` -c core.27247 -d
(lldb) target create "/usr/bin/dotnet" --core "core.27247"

The prompt never gets to (lldb) ever again. I do not even have the chance to load SOS plugin.

The application is just a infinite loop that prints "Hello world" and sleeps for one second before looping again.


It loads with lldb-3.6, but unfortunately lldb-3.6 has an unrelated bug



I use lldb-4.0

yartat@TATARENKO:/mnt/e/Working/Dumps$ lldb-4.0 $(which dotnet) --core ./player-authentication.dump
(lldb) target create "/usr/bin/dotnet" --core "./player-authentication.dump"
Core file '/mnt/e/Working/Dumps/./player-authentication.dump' (x86_64) was loaded.
(lldb) plugin load /usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.6/libsosplugin.so
(lldb) setclrpath /usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.6
Set load path for sos/dac/dbi to '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.6/'
(lldb) clrthread
ThreadCount:      77
UnstartedThread:  0
BackgroundThread: 75
PendingThread:    0
DeadThread:       1
Hosted Runtime:   no
       ID OSID ThreadOBJ           State GC Mode     GC Alloc Context                  Domain           Count Apt Exception
XXXX    1    1 0000000001674CB0  2020020 Preemptive  0000000000000000:0000000000000000 000000000171D6F0 0     Ukn

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.