[llvm-dev] llvm::sys::Process::GetMallocUsage() Hangs

Andrew Santosa via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 29 23:35:17 PST 2015

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. 

    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.

LLVM Developers mailing list
llvm-dev at lists.llvm.org

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

More information about the llvm-dev mailing list