[LLVMbugs] [Bug 1329] NEW: Memory corruption

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Apr 14 12:05:24 PDT 2007


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

           Summary: Memory corruption
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Support Libraries
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jeffc at jolt-lang.org


While trying to debug a different problem using Visual Studio, I encountered a
memory corruption that appears to go unnoticed on Unix:

    Debug Assertion Failed!

    Program: c:\llvm\win32\debug\opt.exe
    File: dbgdel.cpp
    Line: 52

    Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)


and the stack trace is:

     msvcr71d.dll!operator delete(void * pUserData=0x0012f100)  Line 52 + 0x51 
  C++
     msvcr71d.dll!operator delete[](void * p=0x0012f100)  Line 21 + 0x9    C++
     opt.exe!llvm::SmallPtrSetImpl::~SmallPtrSetImpl()  Line 69 + 0x17    C++
     opt.exe!llvm::SmallPtrSet<llvm::Instruction
*,16>::~SmallPtrSet<llvm::Instruction *,16>()  + 0x2b    C++
     opt.exe!llvm::SmallSet<llvm::Instruction *,16>::~SmallSet<llvm::Instruction
*,16>()  + 0x2b    C++
     opt.exe!llvm::SetVector<llvm::Instruction *,std::vector<llvm::Instruction
*,std::allocator<llvm::Instruction *> >,llvm::SmallSet<llvm::Instruction *,16>
>::~SetVector<llvm::Instruction *,std::vector<llvm::Instruction
*,std::allocator<llvm::Instruction *> >,llvm::SmallSet<llvm::Instruction *,16>
>()  + 0x59    C++
     opt.exe!`anonymous namespace'::LCSSA::visitSubloop(llvm::Loop *
L=0x00f18350)  Line 118 + 0x19    C++
     opt.exe!`anonymous namespace'::LCSSA::runOnFunction(llvm::Function &
F={...})  Line 97 + 0x17    C++
     opt.exe!llvm::FPPassManager::runOnFunction(llvm::Function & F={...})  Line
1074 + 0x15    C++
     opt.exe!CGPassManager::runOnModule(llvm::Module & M={...})  Line 109 + 0x16
   C++
     opt.exe!llvm::MPPassManager::runOnModule(llvm::Module & M={...})  Line 1142
+ 0x15    C++
     opt.exe!llvm::PassManagerImpl::run(llvm::Module & M={...})  Line 1174 +
0x10    C++
     opt.exe!llvm::PassManager::run(llvm::Module & M={...})  Line 1207    C++
     opt.exe!main(int argc=6, char * * argv=0x00325cb8)  Line 358    C++
     opt.exe!mainCRTStartup()  Line 398 + 0x11    C
     kernel32.dll!7c816fd7()    
     ntdll.dll!7c915b4f()     

The command to reproduce with the attached bytecode file is:

   opt -std-compile-opts Output/primes.linked.rbc -o Output/primes.linked.bc -f



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list