<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 --- - test runner timeout does not work properly when inferior itself spawns children and shares file handles"
   href="https://llvm.org/bugs/show_bug.cgi?id=25002">25002</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>test runner timeout does not work properly when inferior itself spawns children and shares file handles
          </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>All
          </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@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>todd.fiala@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Discovered during:
<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - TestAttachDenied.py timing out on Linux"
   href="show_bug.cgi?id=24993">https://llvm.org/bugs/show_bug.cgi?id=24993</a>

I'll need to not trust the inferior's stdout/stderr pipe liveness to mean that
the child process is still alive. It could be dead, with its own children
keeping the pipes open.  I've got a positive test case of this not working
right:
* spawn child (P1)
* have child spawn another child (C1), sharing stdout/stderr/stdin.
* C1 never returns (loops forever)
* P1 immediately exits

At this point, the test runner should recognize that the process it launched
(P1) has completed.   Currently it does not.  Worse yet, in my test, it never
exits the run_with_timeout() call (i.e. the timeout isn't occurring.)

Fixing this now.</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>