Andrew Santosa via llvm-dev
2015-Dec-30 04:47 UTC
[llvm-dev] llvm::sys::Process::GetMallocUsage() Hangs
Dear All, I am currently modifying KLEE for my research, which calls llvm::sys::Process::GetMallocUsage() todisplay some statistics before terminating. However, today I discovered that the call to this functionno longer returns. I am using LLVM 3.4.2. Would anyone has any idea on what I should be looking into? Thank you in advance. Best,Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151230/76b93d95/attachment.html>
Andrew Santosa via llvm-dev
2015-Dec-30 07:35 UTC
[llvm-dev] llvm::sys::Process::GetMallocUsage() Hangs
The cause seems to have been an allocation of array of pointers using new: VersionedValue **argumentValuesList = new VersionedValue *[numArgs]; The problem disappeared after I replaced the array of pointers with std::vector of pointers. Best,Andrew On Wednesday, 30 December 2015, 12:47, Andrew Santosa via llvm-dev <llvm-dev at lists.llvm.org> wrote: Dear All, I am currently modifying KLEE for my research, which calls llvm::sys::Process::GetMallocUsage() todisplay some statistics before terminating. However, today I discovered that the call to this functionno longer returns. I am using LLVM 3.4.2. Would anyone has any idea on what I should be looking into? Thank you in advance. Best,Andrew _______________________________________________ LLVM Developers mailing list llvm-dev at lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151230/b19ef8ad/attachment.html>