[LLVMdev] Memory leaks in LLVM on linux

Villmow, Micah Micah.Villmow at amd.com
Fri Jan 13 10:31:03 PST 2012


Also, this can be easily reproduced with the following command:
valgrind --tool=memcheck --show-reachable=yes --leak-check=full --track-origins=yes --leak-check=full opt -disable-opt -O0 <some random bitcode file>

Micah

From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Villmow, Micah
Sent: Friday, January 13, 2012 10:23 AM
To: Chris Lattner
Cc: LLVM Developers Mailing List
Subject: Re: [LLVMdev] Memory leaks in LLVM on linux

Chris,
 I'm using a llvm_shutdown_obj object and it calls llvm_shutdown when I delete it. Do I need to call llvm_shutdown() again afterwards? It looks to me like the static object is being created after my program exits main().

From: Chris Lattner [mailto:clattner at apple.com]
Sent: Friday, January 13, 2012 10:11 AM
To: Villmow, Micah
Cc: LLVM Developers Mailing List
Subject: Re: [LLVMdev] Memory leaks in LLVM on linux


On Jan 13, 2012, at 10:08 AM, Villmow, Micah wrote:


Are these known issues? If so, how do I free this memory?


Hi Micah,

Please try calling llvm_shutdown()

-Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120113/9cf69fe6/attachment.html>


More information about the llvm-dev mailing list