<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:ki.stfu@gmail.com" title="Ilia <ki.stfu@gmail.com>"> <span class="fn">Ilia</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Some lldb-server tests become zombies"
   href="https://llvm.org/bugs/show_bug.cgi?id=23181">bug 23181</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>ki.stfu@gmail.com, lldb-dev@cs.uiuc.edu
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Some lldb-server tests become zombies"
   href="https://llvm.org/bugs/show_bug.cgi?id=23181#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Some lldb-server tests become zombies"
   href="https://llvm.org/bugs/show_bug.cgi?id=23181">bug 23181</a>
              from <span class="vcard"><a class="email" href="mailto:ki.stfu@gmail.com" title="Ilia <ki.stfu@gmail.com>"> <span class="fn">Ilia</span></a>
</span></b>
        <pre>Also, the
RegisterCommandsTestCase.test_convenience_registers_16bit_with_process_attach
test leaves a zombie process.

Prof:
1. Apply the following patch:
```
$ svn diff
Index: test/unittest2/case.py
===================================================================
--- test/unittest2/case.py      (revision 234750)
+++ test/unittest2/case.py      (working copy)
@@ -330,6 +330,9 @@
                 startTestRun()

         self._resultForDoCleanups = result
+
+        import os
+        os.system("echo before '%s' = `ps x | grep Z | grep a.out | wc -l`" %
self.__str__())
         result.startTest(self)

         testMethod = getattr(self, self._testMethodName)
@@ -396,6 +399,7 @@
                 stopTestRun = getattr(result, 'stopTestRun', None)
                 if stopTestRun is not None:
                     stopTestRun()
+        os.system("echo after '%s' = `ps x | grep Z | grep a.out | wc -l`" %
self.__str__())

     def doCleanups(self):
         """Execute all cleanup functions. Normally called for you after
```
2. run all tests: ./dotest.py --executable $INSTALLDIR/bin/lldb
1>$INSTALLDIR/test_out.log 2>&1
3. analyze test_out.log:
```
before test_convenience_registers (TestRegisters.RegisterCommandsTestCase) =
452
.after test_convenience_registers (TestRegisters.RegisterCommandsTestCase) =
452
before test_convenience_registers_16bit_with_process_attach
(TestRegisters.RegisterCommandsTestCase) = 452
.after test_convenience_registers_16bit_with_process_attach
(TestRegisters.RegisterCommandsTestCase) = 453
before test_convenience_registers_with_process_attach
(TestRegisters.RegisterCommandsTestCase) = 453
.after test_convenience_registers_with_process_attach
(TestRegisters.RegisterCommandsTestCase) = 453
```</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>