[lldb-dev] [Bug 23264] New: LLDB Linux loses connection to lldb-server unexpectedly when inferior receives SIGSTOP

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 17 00:49:16 PDT 2015


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: lldb-dev at cs.uiuc.edu
          Reporter: vince at nethacker.com
    Classification: Unclassified

vharron at tifa:~/dev/tkill$ cat stop.c
#include <signal.h>

int main()
{
  raise(SIGSTOP);
  return 138;
}

$ clang-3.5 stop.c

vharron at 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 at tifa:~/dev/tkill$ ./a.out

[1]+  Stopped                 ./a.out
vharron at tifa:~/dev/tkill$ pgrep a.out
4863
vharron at tifa:~/dev/tkill$ kill -SIGCONT 4863
vharron at tifa:~/dev/tkill$ pgrep a.out
[1]+  Exit 138                ./a.out
vharron at tifa:~/dev/tkill$

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150417/919c3844/attachment.html>


More information about the lldb-dev mailing list