[LLVMbugs] [Bug 16132] New: Uninitialized read in ARMDisassembler

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 24 01:45:18 PDT 2013


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

            Bug ID: 16132
           Summary: Uninitialized read in ARMDisassembler
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: eugeni.stepanov at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Running test/MC/ARM/AlignedBundling/group-bundle-arm.s test with
MemorySanitizer:

WARNING: Use of uninitialized value
    #0 0x7fa2d67b109c in llvm::MCDisassembler::DecodeStatus
llvm::decodeInstruction<unsigned int>(unsigned char const*, llvm::MCInst&,
unsigned int, unsigned long, void const*, llvm::MCSubtargetInfo const&)
build_msan/lib/Target/ARM/ARMGenDisassemblerTables.inc:12545
    #1 0x7fa2d6a3619d in (anonymous
namespace)::ARMDisassembler::getInstruction(llvm::MCInst&, unsigned long&,
llvm::MemoryObject const&, unsigned long, llvm::raw_ostream&,
llvm::raw_ostream&) const lib/Target/ARM/Disassembler/ARMDisassembler.cpp:428
    #2 0x7fa2d6233be7 in DisassembleObject(llvm::object::ObjectFile const*,
bool) tools/llvm-objdump/llvm-objdump.cpp:469
    #3 0x7fa2d6225de5 in DumpObject(llvm::object::ObjectFile const*)
tools/llvm-objdump/llvm-objdump.cpp:758
    #4 0x7fa2d622369f in DumpInput(llvm::StringRef)
tools/llvm-objdump/llvm-objdump.cpp:816
    #5 0x7fa2d62579fa in void
(*std::for_each<__gnu_cxx::__normal_iterator<std::string*,
std::vector<std::string, std::allocator<std::string> > >, void
(*)(llvm::StringRef)>(__gnu_cxx::__normal_iterator<std::string*,
std::vector<std::string, std::allocator<std::string> > >,
__gnu_cxx::__normal_iterator<std::string*, std::vector<std::string,
std::allocator<std::string> > >, void (*)(llvm::StringRef)))(llvm::StringRef)
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_algo.h:4379
    #6 0x7fa2d6221a3f in main tools/llvm-objdump/llvm-objdump.cpp:856
  Uninitialized value was created by a heap allocation
    #0 0x7fa2d62163b3 in operator new(unsigned long, std::nothrow_t const&)
build/../projects/compiler-rt/lib/msan/msan_new_delete.cc:42
    #1 0x7fa2d83a90c8 in llvm::MemoryBuffer::getNewUninitMemBuffer(unsigned
long, llvm::StringRef) lib/Support/MemoryBuffer.cpp:140
    #2 0x7fa2d83af1c5 in llvm::MemoryBuffer::getOpenFile(int, char const*,
llvm::OwningPtr<llvm::MemoryBuffer>&, unsigned long, unsigned long, long, bool)
lib/Support/MemoryBuffer.cpp:372
    #3 0x7fa2d83acf01 in llvm::MemoryBuffer::getFile(char const*,
llvm::OwningPtr<llvm::MemoryBuffer>&, long, bool)
lib/Support/MemoryBuffer.cpp:284
    #4 0x7fa2d83abbe6 in llvm::MemoryBuffer::getFile(llvm::StringRef,
llvm::OwningPtr<llvm::MemoryBuffer>&, long, bool)
lib/Support/MemoryBuffer.cpp:257
    #5 0x7fa2d83aacab in llvm::MemoryBuffer::getFileOrSTDIN(llvm::StringRef,
llvm::OwningPtr<llvm::MemoryBuffer>&, long) lib/Support/MemoryBuffer.cpp:174
    #6 0x7fa2d7e80c52 in llvm::object::createBinary(llvm::StringRef,
llvm::OwningPtr<llvm::object::Binary>&) lib/Object/Binary.cpp:100
    #7 0x7fa2d6222ca8 in DumpInput(llvm::StringRef)
tools/llvm-objdump/llvm-objdump.cpp:808
    #8 0x7fa2d62579fa in void
(*std::for_each<__gnu_cxx::__normal_iterator<std::string*,
std::vector<std::string, std::allocator<std::string> > >, void
(*)(llvm::StringRef)>(__gnu_cxx::__normal_iterator<std::string*,
std::vector<std::string, std::allocator<std::string> > >,
__gnu_cxx::__normal_iterator<std::string*, std::vector<std::string,
std::allocator<std::string> > >, void (*)(llvm::StringRef)))(llvm::StringRef)
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_algo.h:4379
    #9 0x7fa2d6221a3f in main tools/llvm-objdump/llvm-objdump.cpp:856

This started happening in the [182625, 182628] revision range.

-- 
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/20130524/0056fff6/attachment.html>


More information about the llvm-bugs mailing list