[LLVMbugs] [Bug 17978] New: Memory leak of GV -- in ARM FastISel EnableARMLongCalls

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 18 05:46:56 PST 2013


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

            Bug ID: 17978
           Summary: Memory leak of GV -- in ARM FastISel
                    EnableARMLongCalls
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: geek4civic at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

GV created in CodeGenerator is not freed. Valgrind detects it as leak.

See also;
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20131111/194340.html

==3718== 146 (120 direct, 26 indirect) bytes in 1 blocks are definitely lost in
loss record 8 of 8
==3718==    at 0x4C29C97: operator new(unsigned long) (vg_replace_malloc.c:298)
==3718==    by 0x178C128: llvm::User::operator new(unsigned long, unsigned int)
(User.cpp:60)
==3718==    by 0x8CA7E8: llvm::GlobalVariable::operator new(unsigned long)
(GlobalVariable.h:55)
==3718==    by 0xC9F6DE: (anonymous
namespace)::ARMFastISel::getLibcallReg(llvm::Twine const&)
(ARMFastISel.cpp:2252)
==3718==    by 0xC9FD1D: (anonymous
namespace)::ARMFastISel::ARMEmitLibcall(llvm::Instruction const*,
llvm::RTLIB::Libcall) (ARMFastISel.cpp:2321)
==3718==    by 0xC9D06B: (anonymous
namespace)::ARMFastISel::SelectDiv(llvm::Instruction const*, bool)
(ARMFastISel.cpp:1809)
==3718==    by 0xCA2704: (anonymous
namespace)::ARMFastISel::TargetSelectInstruction(llvm::Instruction const*)
(ARMFastISel.cpp:2932)
==3718==    by 0xFEC646: llvm::FastISel::SelectInstruction(llvm::Instruction
const*) (FastISel.cpp:856)
==3718==    by 0x10A9FDD:
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(SelectionDAGISel.cpp:1040)
==3718==    by 0x10A6BC7:
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(SelectionDAGISel.cpp:387)
==3718==    by 0x12B0C98:
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(MachineFunctionPass.cpp:33)
==3718==    by 0x17656F8: llvm::FPPassManager::runOnFunction(llvm::Function&)
(LegacyPassManager.cpp:1538)

-- 
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/20131118/4341d270/attachment.html>


More information about the llvm-bugs mailing list