[LLVMbugs] [Bug 6554] New: Debug generation broken. Brakes debug bootstrap on linux.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 8 22:19:18 PST 2010


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

           Summary: Debug generation broken. Brakes debug bootstrap on
                    linux.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu


$ valgrind ./clang-debug -cc1 -S -g SelectionDAGISel.ii

==27907== Invalid read of size 1
==27907==    at 0x56AE96: llvm::Value::getValueID() const (Value.h:247)
==27907==    by 0x56AF21: bool llvm::isa_impl<llvm::Instruction,
llvm::Value>(llvm::Value const&) (Value.h:338)
==27907==    by 0x577AFF: llvm::isa_impl_wrap<llvm::Instruction, llvm::Value
const, llvm::Value const>::doit(llvm::Value const&) (Casting.h:71)
==27907==    by 0x57662C: bool
llvm::isa_impl_cl<llvm::Value>::isa<llvm::Instruction>(llvm::Value const&)
(Casting.h:83)
==27907==    by 0xACF97D: bool
llvm::isa_impl_cl<llvm::Value*>::isa<llvm::Instruction>(llvm::Value*)
(Casting.h:101)
==27907==    by 0xACD702: bool llvm::isa<llvm::Instruction,
llvm::Value*>(llvm::Value* const&) (Casting.h:116)
==27907==    by 0x1372464: llvm::MDNode::getMDNode(llvm::LLVMContext&,
llvm::Value* const*, unsigned int, llvm::MDNode::FunctionLocalness, bool)
(Metadata.cpp:211)
==27907==    by 0x137262A: llvm::MDNode::get(llvm::LLVMContext&, llvm::Value*
const*, unsigned int) (Metadata.cpp:237)
==27907==    by 0x1243ED3:
llvm::DIFactory::CreateSubprogram(llvm::DIDescriptor, llvm::StringRef,
llvm::StringRef, llvm::StringRef, llvm::DIFile, unsigned int, llvm::DIType,
bool, bool, unsigned int, unsigned int, llvm::DIType, bool) (DebugInfo.cpp:925)
==27907==    by 0x5B1F40:
clang::CodeGen::CGDebugInfo::CreateCXXMemberFunction(clang::CXXMethodDecl
const*, llvm::DIFile, llvm::DICompositeType&) (CGDebugInfo.cpp:607)
==27907==    by 0x5B210C:
clang::CodeGen::CGDebugInfo::CollectCXXMemberFunctions(clang::CXXRecordDecl
const*, llvm::DIFile, llvm::SmallVectorImpl<llvm::DIDescriptor>&,
llvm::DICompositeType&) (CGDebugInfo.cpp:631)
==27907==    by 0x5B3220:
clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*, llvm::DIFile)
(CGDebugInfo.cpp:806)
==27907==  Address 0x7d8bf48 is 8 bytes inside a block of size 576 free'd
==27907==    at 0x4C24D68: free (vg_replace_malloc.c:325)
==27907==    by 0x13722DE: llvm::MDNode::destroy() (Metadata.cpp:185)
==27907==    by 0x124105C:
llvm::DIDerivedType::replaceAllUsesWith(llvm::DIDescriptor&)
(DebugInfo.cpp:279)
==27907==    by 0x5B359B:
clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*, llvm::DIFile)
(CGDebugInfo.cpp:835)
==27907==    by 0x5B474F:
clang::CodeGen::CGDebugInfo::CreateType(clang::TagType const*, llvm::DIFile)
(CGDebugInfo.cpp:1008)
==27907==    by 0x5B5B4C:
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile)
(CGDebugInfo.cpp:1233)
==27907==    by 0x5B56E1:
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile)
(CGDebugInfo.cpp:1190)
==27907==    by 0x5B12B3:
clang::CodeGen::CGDebugInfo::CollectRecordFields(clang::RecordDecl const*,
llvm::DIFile, llvm::SmallVectorImpl<llvm::DIDescriptor>&) (CGDebugInfo.cpp:461)
==27907==    by 0x5B31B1:
clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*, llvm::DIFile)
(CGDebugInfo.cpp:803)
==27907==    by 0x5B474F:
clang::CodeGen::CGDebugInfo::CreateType(clang::TagType const*, llvm::DIFile)
(CGDebugInfo.cpp:1008)
==27907==    by 0x5B5B4C:
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile)
(CGDebugInfo.cpp:1233)
==27907==    by 0x5B56E1:
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile)
(CGDebugInfo.cpp:1190)

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list