Huge memory leak, probably related to making new processes

Tue Oct 2 19:29:00 GMT 2007

Try executing:

find -exec echo {} \;

Simple command. This one, however, leaks at about 5kB/s. I tried the

find|xargs echo

This one didn't appear to leak, but then I tried this one:

find|xargs -n 1 echo

This also leaked at around the same rate. Then I tried the following:

while [ $COUNTER -lt 123456 ]; do echo $COUNTER; let COUNTER=$COUNTER+1;

This one did not leak, making me believe that this is related to new process
execution. I tried this:

while [ $COUNTER -lt 123456 ]; do (echo $COUNTER); let COUNTER=$COUNTER+1;

and it started leaking pretty fast (maybe 4kB/s).

I searched for this, but I couldn't find anything useful (or I couldn't find
any good search queries). A few questions: 
- Is this a bug or am I just wrong in part or the whole of the above?
- If so, is there a way to prevent or circumvent this?
- Again, if it is a bug, is there a way to free this memory somehow without
restarting the computer (or anything involving closing all/majority of
applications, like logout)? It appears that no process "owns" this memory,
but it is disappearing (i.e. true leak), so a simple taskkill is not a

View this message in context:
Sent from the Cygwin Users mailing list archive at

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list