<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - LLDB Linux loses connection to lldb-server unexpectedly when inferior receives SIGSTOP"
   href="https://llvm.org/bugs/show_bug.cgi?id=23264">23264</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLDB Linux loses connection to lldb-server unexpectedly when inferior receives SIGSTOP
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vince@nethacker.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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$</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>