[LLVMbugs] [Bug 2675] New: make check failed on x86-64/linux

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Aug 13 09:14:25 PDT 2008


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

           Summary: make check failed on x86-64/linux
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: asl at math.spbu.ru
                CC: llvmbugs at cs.uiuc.edu


'make check' causes a segfaul on x86-64/linux on TOT. The 'bad' test is
Transforms/SRETPromotion/basictest.ll

valgrind reports:
==3386== Invalid read of size 8
==3386==    at 0x6B6276: llvm::Use::getNext() const (Use.h:118)
==3386==    by 0x6B71DA: llvm::value_use_iterator<llvm::User>::operator++()
(Use.h:186)
==3386==    by 0x72161F: (anonymous
namespace)::SRETPromotion::updateCallSites(llvm::Function*, llvm::Function*)
(StructRetPromotion.cpp:320)
==3386==    by 0x72214A: (anonymous
namespace)::SRETPromotion::PromoteReturn(llvm::CallGraphNode*)
(StructRetPromotion.cpp:134)
==3386==    by 0x7221D3: (anonymous
namespace)::SRETPromotion::runOnSCC(std::vector<llvm::CallGraphNode*,
std::allocator<llvm::CallGraphNode*> > const&) (StructRetPromotion.cpp:75)
==3386==    by 0x880D21: (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&)
(CallGraphSCCPass.cpp:102)
==3386==    by 0x976D1F: llvm::MPPassManager::runOnModule(llvm::Module&)
(PassManager.cpp:1367)
==3386==    by 0x9785BF: llvm::PassManagerImpl::run(llvm::Module&)
(PassManager.cpp:1441)
==3386==    by 0x978622: llvm::PassManager::run(llvm::Module&)
(PassManager.cpp:1473)
==3386==    by 0x6C46D9: main (opt.cpp:439)
==3386==  Address 0x5d44810 is 8 bytes inside a block of size 104 free'd
==3386==    at 0x4C20B8C: operator delete(void*) (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==3386==    by 0x99896F: llvm::User::operator delete(void*) (Value.cpp:386)
==3386==    by 0x9662C6: llvm::LoadInst::~LoadInst() (Instructions.h:218)
==3386==    by 0x6E5DDE: llvm::SymbolTableListTraits<llvm::Instruction,
llvm::BasicBlock>::deleteNode(llvm::Instruction*) (SymbolTableListTraits.h:55)
==3386==    by 0x6E8BD6: llvm::iplist<llvm::Instruction,
llvm::ilist_traits<llvm::Instruction>
>::erase(llvm::ilist_iterator<llvm::Instruction>) (ilist.h:407)
==3386==    by 0x956A41: llvm::Instruction::eraseFromParent()
(Instruction.cpp:68)
==3386==    by 0x721613: (anonymous
namespace)::SRETPromotion::updateCallSites(llvm::Function*, llvm::Function*)
(StructRetPromotion.cpp:324)
==3386==    by 0x72214A: (anonymous
namespace)::SRETPromotion::PromoteReturn(llvm::CallGraphNode*)
(StructRetPromotion.cpp:134)
==3386==    by 0x7221D3: (anonymous
namespace)::SRETPromotion::runOnSCC(std::vector<llvm::CallGraphNode*,
std::allocator<llvm::CallGraphNode*> > const&) (StructRetPromotion.cpp:75)
==3386==    by 0x880D21: (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&)
(CallGraphSCCPass.cpp:102)
==3386==    by 0x976D1F: llvm::MPPassManager::runOnModule(llvm::Module&)
(PassManager.cpp:1367)
==3386==    by 0x9785BF: llvm::PassManagerImpl::run(llvm::Module&)
(PassManager.cpp:1441)


-- 
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