[llvm-bugs] [Bug 25240] New: [Polly] isl_ctx not freed: memory leak in new domain construction
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Oct 18 12:58:15 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=25240
Bug ID: 25240
Summary: [Polly] isl_ctx not freed: memory leak in new domain
construction
Product: Projects
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Polly
Assignee: polly-dev at googlegroups.com
Reporter: tobias at grosser.es
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 15100
--> https://llvm.org/bugs/attachment.cgi?id=15100&action=edit
Test case
With r250655 I get the following error when calling 'polly-opt -polly-scops':
/home/grosser/Projects/polly/git/tools/polly/lib/External/isl/isl_ctx.c:245:
isl_ctx freed, but some objects still reference it
The relevant valgrind trace is:
==7281== at 0x4C2DC90: calloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==7281== by 0x1826AF25: isl_calloc_or_die (isl_ctx.c:67)
==7281== by 0x182EA272: isl_schedule_from_schedule_tree (isl_schedule.c:51)
==7281== by 0x182EA332: isl_schedule_from_domain (isl_schedule.c:79)
==7281== by 0x18159DBE: polly::Scop::buildSchedule(llvm::Region*,
llvm::DenseMap<llvm::Loop*, std::pair<isl_schedule*, unsigned int>,
llvm::DenseMapInfo<llvm::Loop*>, llvm::detail::DenseMapPair<llvm::Loop*,
std::pair<isl_schedule*, unsigned int> > >&) (ScopInfo.cpp:3080)
==7281== by 0x181596F7: polly::Scop::init(llvm::AAResults&)
(ScopInfo.cpp:2379)
==7281== by 0x1815F4DE: polly::ScopInfo::buildScop(llvm::Region&,
llvm::DominatorTree&) (ScopInfo.cpp:3549)
==7281== by 0x1815FA6D: polly::ScopInfo::runOnRegion(llvm::Region*,
llvm::RGPassManager&) (ScopInfo.cpp:3603)
==7281== by 0x102BCABD: llvm::RGPassManager::runOnFunction(llvm::Function&)
(RegionPass.cpp:99)
==7281== by 0x11729C6E: llvm::FPPassManager::runOnFunction(llvm::Function&)
(LegacyPassManager.cpp:1521)
==7281== by 0x11729F84: llvm::FPPassManager::runOnModule(llvm::Module&)
(LegacyPassManager.cpp:1542)
==7281== by 0x1172A719: (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&)
(LegacyPassManager.cpp:1598)
==7281== by 0x1172A245: llvm::legacy::PassManagerImpl::run(llvm::Module&)
(LegacyPassManager.cpp:1701)
==7281== by 0x1172AC30: llvm::legacy::PassManager::run(llvm::Module&)
(LegacyPassManager.cpp:1732)
==7281== by 0x44B6DF: main (opt.cpp:599)
--
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/20151018/aaaaba5f/attachment.html>
More information about the llvm-bugs
mailing list