[llvm-bugs] [Bug 25101] New: Regression in Bitcode Reader caused by r247927

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 7 13:05:18 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25101

            Bug ID: 25101
           Summary: Regression in Bitcode Reader caused by r247927
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Bitcode Reader
          Assignee: unassignedbugs at nondot.org
          Reporter: tstellar at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15026
  --> https://llvm.org/bugs/attachment.cgi?id=15026&action=edit
Script to reproduce

r247927 has caused a regression where llvm-dis hits an assertion failure when
trying to disassemble bitcode that has been output by the linker: 

lib/Bitcode/Reader/BitcodeReader.cpp:4965: std::error_code
{anonymous}::BitcodeReader::findFunctionInStream(llvm::Function*,
llvm::DenseMapBase<llvm::DenseMap<llvm::Function*, long unsigned int>,
llvm::Function*, long unsigned int, llvm::DenseMapInfo<llvm::Function*>,
llvm::detail::DenseMapPair<llvm::Function*, long unsigned int> >::iterator):
Assertion `VSTOffset == 0' failed.

To reproduce place the attached files program.bc and library.bc in the same
directory has link.sh and then execute the link.sh script.

Note that program.bc was generated by LLVM 3.5, and I think library.bc was from
LLVM 3.6.

-- 
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/20151007/fa7ea8fd/attachment.html>


More information about the llvm-bugs mailing list