[LLVMbugs] [Bug 21566] New: Crash when stripping debug symbols from lazily loaded module

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Nov 13 14:16:11 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21566

            Bug ID: 21566
           Summary: Crash when stripping debug symbols from lazily loaded
                    module
           Product: tools
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: extract
          Assignee: unassignedbugs at nondot.org
          Reporter: pete.cooper at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13342
  --> http://llvm.org/bugs/attachment.cgi?id=13342&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141113/749c6447/attachment.html>


More information about the llvm-bugs mailing list