https://llvm.org/bugs/show_bug.cgi?id=23264
Bug ID: 23264
Summary: LLDB Linux loses connection to lldb-server
unexpectedly when inferior receives SIGSTOP
Product: lldb
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
vharron@tifa:~/dev/tkill$ cat stop.c
#include <signal.h>
int main()
{
raise(SIGSTOP);
return 138;
}
$ clang-3.5 stop.c
vharron@tifa:~/dev/tkill$ ~/ll/tot/eclipse/bin/lldb
(lldb) file a.out
Current executable set to 'a.out' (x86_64).
(lldb) run
Process 4774 launched: '/usr/local/google/home/vharron/dev/tkill/a.out'
(x86_64)
Process 4774 exited with status = -1 (0xffffffff) lost connection
(lldb)
OSX Behavior (for reference)
vharron-macbookpro:tkill vharron$ lldb a.out
(lldb) target create "a.out"
Current executable set to 'a.out' (x86_64).
(lldb) run
Process 76565 launched: '/Users/vharron/dev/tkill/a.out' (x86_64)
Process 76565 stopped
* thread #1: tid = 0x6d418, 0x00007fff82b9c292 libsystem_kernel.dylib`__kill +
10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fff82b9c292 libsystem_kernel.dylib`__kill + 10
libsystem_kernel.dylib`__kill + 10:
-> 0x7fff82b9c292: jae 0x7fff82b9c29c ; __kill + 20
0x7fff82b9c294: movq %rax, %rdi
0x7fff82b9c297: jmp 0x7fff82b99175 ; cerror_nocancel
0x7fff82b9c29c: retq
(lldb) cont
Process 76565 resuming
Process 76565 exited with status = 138 (0x0000008a)
(lldb)
Bash behavior:
vharron@tifa:~/dev/tkill$ ./a.out
[1]+ Stopped ./a.out
vharron@tifa:~/dev/tkill$ pgrep a.out
4863
vharron@tifa:~/dev/tkill$ kill -SIGCONT 4863
vharron@tifa:~/dev/tkill$ pgrep a.out
[1]+ Exit 138 ./a.out
vharron@tifa:~/dev/tkill$
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev