Hi,
We have got a reproduce from a customer who is running a service on Linux. He is using LLDB to attaching to the process and debug.
First issue is that, we keep on getting a lot of SIGSTOP randomly. We workaroud that with “process handle -s false SIGSTOP” then we got tons of output saying SIGSTOP stopped and restarted:
Process 13500 stopped and restarted: thread 673 received signal: SIGSTOP
Process 13500 stopped and restarted, reasons:
thread 674 received signal: SIGSTOP
thread 675 received signal: SIGSTOP
Process 13500 stopped and restarted, reasons:
thread 676 received signal: SIGSTOP
thread 677 received signal: SIGSTOP
thread 678 received signal: SIGSTOP
Process 13500 stopped and restarted: thread 679 received signal: SIGSTOP
Process 13500 stopped and restarted, reasons:
thread 680 received signal: SIGSTOP
thread 681 received signal: SIGSTOP
...
Eventually, lldb would detach with error:
exited with status = -1 (0xffffffff) lost connection
It seems that LLDB has lost connection to debugserver. I have captured gdb remote logs here which I am not familiar to decipher. I do not know how to attach the log file but the last several entries are shared here:
intern-state < 20> send packet: $p7;thread:275d1;#02
intern-state < 20> read packet: $80cfbf521e7f0000#53
intern-state < 21> send packet: $x7f1e52bfce00,200#c0
intern-state < 516> read packet: $20cebf521e....
intern-state < 21> send packet: $x7f1e88bfce00,200#c9
intern-state < 516> read packet: $20cebf881e7f0000babda33a000000000400000000000000b0d7bf881e7f000060cebf881e7f000049c9a33a00000000806d3b3b00000000806d3b3b00000000b0d7bf881e7f0000b0d7bf881e7f0000e865a15e1f7f0000e865a15e1f7f00006809c0881e7f00004006c0881e7f00004006c0881e7f00004006c0881e7f0000000000000000000000000000000000009097bfa21e7f0000e0a9895e1f7f0000c0cebf881e7f00004006c0881e7f00004006c0881e7f000000000000000000009097bfa21e7f0000e0a9895e1f7f000070cfbf881e7f000082ac895e1f7f000000000000000000004006c0881e7f00004006c0881e7f00002c7cf7f9cdad77194006c0881e7f000000000000000000009097bfa21e7f0000e0a9895e1f7f00002c7cd7facdad77192c7c4532a1017419000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0cfffffffffffff4006c0881e7f00000000000000000000dcd1925e1f7f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000#17
dbg.evt-handler < 16> send packet: $jThreadsInfo#c1
dbg.evt-handler <85322> read packet: $[{"name":"ConvStaticBalan","....
dbg.evt-handler < 21> send packet: $z0,7f1f5fa86cc0,1#c7
dbg.evt-handler < 6> read packet: $OK#9a
dbg.evt-handler < 22> send packet: $D;00000000000034bc#eb
dbg.evt-handler < 6> read packet: $OK#9a
b-remote.async> < 20> send packet: $vCont;c:p34bc.-1#0a
b-remote.async> < 7> read packet: $E1e#db
Any suggestion is appreciated. cc @clayborg, @labath
Jeffrey