[Wine] Memory Leak when using winsock.shutdown ?

priamos wineforum-user at winehq.org
Tue Mar 31 13:05:23 CDT 2009


I'm using Wine 1.0 on Puppy Linux 3.01

I wrote an application with a http-server and a socket-server for windows 
and I like to use this on linux. (Delphi with Indy components)

My application works fine on windows without any memory leak.

But running with wine the VmRSS-value is permanently increased.

I use following bash-script to check this:


Code:
while true; do    cat /proc/"`pidof tcpc`"/status|grep -E "VmRSS";sleep 5; done



Result:
VmRSS:      4084 kB
VmRSS:      4084 kB
VmRSS:      4084 kB
VmRSS:      4084 kB
VmRSS:      4104 kB
VmRSS:      4104 kB
VmRSS:      4108 kB
VmRSS:      4108 kB
VmRSS:      4108 kB
VmRSS:      4108 kB
VmRSS:      4108 kB
VmRSS:      4112 kB
VmRSS:      4112 kB
....
If I stop the http-requests of the client-application the VmRSS-growth of 
my server-application stops too.

I found, that opening and closing of a tcp-socket is the cause of memory growth.

I detected that the api-function (used by indy components)

 winsock.shutdown(FLastsocket,1);
is the cause of the memory leak.
   
All other functions of my application work fine.

Is there any solution ?







More information about the wine-users mailing list