lldb trava ao abrir um dump

0

lldb-3.9 trava quando tento abrir um despejo de um aplicativo dotnet. O processo fica completamente preso, sem consumir CPU.

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

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

$ dotnet --version
2.1.403

$ 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"

O prompt nunca chega a (lldb) novamente. Eu nem tenho a chance de carregar o plugin SOS.

O aplicativo é apenas um loop infinito que imprime "Hello world" e dorme por um segundo antes de fazer o loop novamente.

UPDATE

Carrega com o lldb-3.6, mas infelizmente o lldb-3.6 tem um bug não relacionado

link

    
por Vlad 20.10.2018 / 19:39

1 resposta

0

Eu uso o 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
                                                                                                     Lock
       ID OSID ThreadOBJ           State GC Mode     GC Alloc Context                  Domain           Count Apt Exception
XXXX    1    1 0000000001674CB0  2020020 Preemptive  0000000000000000:0000000000000000 000000000171D6F0 0     Ukn
    
por 17.12.2018 / 12:08