[llvm-bugs] [Bug 25248] New: r226467 causes crashes when parsing bitcode generated by LLVM 3.5

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 19 02:41:12 PDT 2015


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

            Bug ID: 25248
           Summary: r226467 causes crashes when parsing bitcode generated
                    by LLVM 3.5
           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 15109
  --> https://llvm.org/bugs/attachment.cgi?id=15109&action=edit
bitcode to reproduce crash

Commit r226467 causes llvm-dis to crash when parsing bitcode generated by LLVM
3.5.  Here is the backtrace:

#0 0x7f540de75b92 llvm::sys::PrintStackTrace(_IO_FILE*)
(libLLVM-3.7svn.so+0x44db92)
#1 0x7f540de73d21 SignalHandler(int) (libLLVM-3.7svn.so+0x44bd21)
#2 0x7f540d6001c0 (/lib64/libpthread.so.0+0x101c0)
#3 0x7f540e31c200 llvm::Comdat::getName() const (libLLVM-3.7svn.so+0x8f4200)
#4 0x7f540e303b21 llvm::Comdat::print(llvm::raw_ostream&) const
(libLLVM-3.7svn.so+0x8dbb21)
#5 0x7f540e30e60d llvm::AssemblyWriter::printModule(llvm::Module const*)
(libLLVM-3.7svn.so+0x8e660d)
#6 0x7f540e30f571 llvm::Module::print(llvm::raw_ostream&,
llvm::AssemblyAnnotationWriter*) const (libLLVM-3.7svn.so+0x8e7571)
#7 0x402899 main (llvm-dis+0x402899)
#8 0x7f540c5e9a65 __libc_start_main (/lib64/libc.so.6+0x21a65)
#9 0x402a39 _start (llvm-dis+0x402a39)

Attached are 2 files:

comdat-crash-3.5.bc - The bitcode which triggers the bug
comdat-crash-3.5.ll - The LLVM IR used to generate the bitcode with llvm 3.5

-- 
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/20151019/1301743a/attachment.html>


More information about the llvm-bugs mailing list