[LLVMbugs] [Bug 1686] New: llc -march= arm reads from freed memory on 2007-01-19-InfiniteLoop.ll

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Sep 19 10:30:17 PDT 2007


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

           Summary: llc -march=arm reads from freed memory on 2007-01-19-
                    InfiniteLoop.ll
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu


Running test/CodeGen/ARM/2007-01-19-InfiniteLoop.ll shows llc reading
from freed memory:

==19601==    at 0x8369D9A:
llvm::ilist_traits<llvm::MachineInstr>::getPrev(llvm::MachineInstr*)
...
==19601==  Address 0x437850c is 20 bytes inside a block of size 32 free'd
==19601==    at 0x4022166: operator delete(void*) (vg_replace_malloc.c:336)
==19601==    by 0x837598A: llvm::iplist<llvm::MachineInstr,
llvm::ilist_traits<llvm::MachineInstr>
>::erase(llvm::ilist_iterator<llvm::MachineInstr>) (ilist:368)
==19601==    by 0x83759B9:
llvm::MachineBasicBlock::erase(llvm::ilist_iterator<llvm::MachineInstr>)

To reproduce:

llvm-as 2007-01-19-InfiniteLoop.ll -o - | valgrind --tool=memcheck llc
-march=arm -mattr=+v6,+vfp2 -o 2007-01-19-InfiniteLoop.s -f


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