<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 --- - Crash when stripping debug symbols from lazily loaded module"
   href="http://llvm.org/bugs/show_bug.cgi?id=21566">21566</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash when stripping debug symbols from lazily loaded module
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>extract
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>pete.cooper@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13342" name="attach_13342" title="The original C++ file">attachment 13342</a> <a href="attachment.cgi?id=13342&action=edit" title="The original C++ file">[details]</a></span>
The original C++ file

Compiling with LLVM and clang r221928, I get a crash if the attached file is
stripped of debug info while being lazily loaded.

Using llvm-extract seems to be the only want to demonstrate a lazy module
loading test right now.  If you patch llvm-extract with the attached patch,
then it will:
- Load the module lazily
- Strip the debug info
- Materialize the function.

Note that I'm calling it with
- clang++ lazy.cpp -o lazy.bc -emit-llvm -c -g
- llvm-extract -rfunc=".*foo" lazy.bc -o ext.bc

This is probably a bug in lazy materialization itself, or perhaps an
unsupported configuration.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>