<html>
    <head>
      <base href="http://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 should have a crash handler to assist in reproducing crashes"
   href="http://llvm.org/bugs/show_bug.cgi?id=20298">20298</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLDB should have a crash handler to assist in reproducing crashes
          </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>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>rnk@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>chandlerc@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This is a relatively big feature request that I don't think will happen soon,
but it's a cool idea some I'm writing it down.

Taking inspiration from Clang, LLDB should have a crash handler that makes it
easy for users to file bug reports with reproductions.  The way this works in
Clang is that the driver process notices when the -cc1 process crashes and
automatically re-launches the -cc1 in pre-process only mode with
-frewrite-includes.  In LLDB, this might take the form of:

1. Recording all of the object files that were scanned for symbol information.
2. Recording all the commands the user wrote.
3. Make a tarball of all the files.
4. Make a shell script to unpack the tarball and launch LLDB on the user's
transcript.

I feel like there are some performance issues that would need to be worked out,
but it's an interesting idea.  For example, we should probably only do this if
the object files are small enough to reasonably package up.</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>