[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] confusion tracking down memory leak
From: |
Andreas Rottmann |
Subject: |
Re: [Chicken-users] confusion tracking down memory leak |
Date: |
Wed, 30 Sep 2009 21:11:31 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Thomas Bushnell BSG <address@hidden> writes:
> I have a memory leak in a long-running program; I can easily provoke it.
> (It's quite complex; too complex to post here.)
>
> The program involves lots of FFI interfaces to Linux syscalls, and other
> stuff.
>
> The memory leak is *not* in Scheme; this is verified by the fact that
> (memory-statistics) while it's running shows bounded memory consumption.
>
> Yet the heap usage is growing without limit. There's bad malloc going
> on somewhere.
>
> Are there any convenient tools to try and figure out malloc usage in
> Chicken Scheme?
>
Dunno specifically about Chicken Scheme (and "convinient" ;-), but given
the fact that your leak is in C code, you might be able to make sense
from Valgrind[0] output -- for C/C++ this works great, usually.
[0] http://valgrind.org/
Regards, Rotty
--
Andreas Rottmann -- <http://rotty.yi.org/>