This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[bash or DLL] Memory leak in childs


Hello,


I think I have found a memory leak in bash (or perhaps in DLL fork
implementation, I don't know).


Just launch the following test loop having a look at Windows Task
Manager, Page File Usage tab :

while [ 1 ]
do
test=$(echo test)
done

Memory usage is constantly growing.
Once Cygwin closed, memory is still used, not released.


Testing with the following loop does not give the issue :

while [ 1 ]
do
test=test
echo $test
done


This is why I think it is a memory leak in childs (subprocesses).

This problem makes the computer to get completely frozen, then a
reboot seems to be the only solution.
Quite problematic with daily elaborate scripts on production servers !


Could you please have a look ?

Thank you very much !

Best regards,

Benjamin

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]