[LLVMbugs] [Bug 19930] New: SourceMgr.cpp:191: valgrind problem

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 3 01:48:48 PDT 2014


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

            Bug ID: 19930
           Summary: SourceMgr.cpp:191: valgrind problem
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12596
  --> http://llvm.org/bugs/attachment.cgi?id=12596&action=edit
C source code

I tried to compile the attached code under valgrind
with trunk dated 20140601 and it said

==17140== Conditional jump or move depends on uninitialised value(s)
==17140==    at 0x25D63DA: llvm::SourceMgr::GetMessage(llvm::SMLoc,
llvm::SourceMgr::DiagKind, llvm::Twine const&, llvm::ArrayRef<llvm::SMRange>,
llvm::ArrayRef<llvm::SMFixIt>) const (SourceMgr.cpp:191)
==17140==    by 0x25D67B6: llvm::SourceMgr::PrintMessage(llvm::raw_ostream&,
llvm::SMLoc, llvm::SourceMgr::DiagKind, llvm::Twine const&,
llvm::ArrayRef<llvm::SMRange>, llvm::ArrayRef<llvm::SMFixIt>, bool) const
(SourceMgr.cpp:218)
==17140==    by 0x25D6B34: llvm::SourceMgr::PrintMessage(llvm::SMLoc,
llvm::SourceMgr::DiagKind, llvm::Twine const&, llvm::ArrayRef<llvm::SMRange>,
llvm::ArrayRef<llvm::SMFixIt>, bool) const (SourceMgr.cpp:238)
==17140==    by 0x1EAE224: (anonymous namespace)::AsmParser::Error(llvm::SMLoc,
llvm::Twine const&, llvm::ArrayRef<llvm::SMRange>) (AsmParser.cpp:305)

SourceMgr.cpp:191 is

      if (R.Start.getPointer() > LineEnd || R.End.getPointer() < LineStart)
        continue;

-- 
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/20140603/210477e1/attachment.html>


More information about the llvm-bugs mailing list