On Tue, Jul 24, 2001 at 05:39:35PM -0400, Glenn F. Maynard wrote:
> glenn 8389 0.0 51.2 84056 64444 pts/30 S Jul16 3:40 lftp
>
> That's from:
> repeat "find ; cache f"
> repeated a few hundred times. This is Debian/unstable's 2.3.11, not CVS. It
> appears to be trivially reproducable, and still exists in my CVS build.
This memory leak may be causing memleaks in my code indirectly, but I'm not sure.
Try this: create a file, containing a simple command (ie. just an echo); and
issue "repeat 0 que source filename". It'll leak like crazy.
I don't completely understand the mechanisms for freeing feeders and such (ie.
when they're freed, and the program flow around it), so I'll leave this one to
you. I'm getting memory leaks with "repeat 0 que echo hi" with my queue code,
and it's possible they share the same cause. (Yes, I fixed the obvious
leaks in the code I posted earlier.) I'm not sure, though--"repeat 0 source
file" doesn't appear to leak (and that's very similar--repeatedly setting up
a feeder.)
--
Glenn Maynard