Page 1 of 1

memory leak in 9.3.11

Posted: Sat May 10, 2008 9:00 am
by newdep
Hi lutz,

Im using Linux 9.3.11 and it seems there is a memory leak,
Though I cant find it yet.. ( happens on OpenBSD too.. )

The application boosted from 3K memory to 113 MB within 20 hours..
While its doing nothing..(on Openbsd with 3 hours to 20 Mb)

Ill post you the code if you want to have a look..


my suspicion goes to net-receive-udp and net-send-udp..
But i cant confirm it yet,..

Norman.

Posted: Sat May 10, 2008 9:38 am
by newdep
I found it...

its in 'net-receive-udp'

Ill post later today for the question ;-)

Posted: Sat May 10, 2008 11:35 am
by Lutz
I can repeat that too, about 4 byte per iteration, but its nothing obvious, I will let you know when I found the problem.

Posted: Sat May 10, 2008 12:12 pm
by newdep
aaa oke ..good...

I use this when it happens...

(while ...
(set 'data (net-receive-udp 12345 50000 5000000))

(net-send-udp remote 12345 (string "data"))))

)



with this .. it does not happen... controlled net-send-udp


(while ...
(set 'data (net-receive-udp 12345 50000 5000000))

(and (>= (- (apply date-value (now)) timer) 5)
(net-send-udp FOS_REMOTE FOS_AGT_PORT (string "data"))))
)




if you need more hints let me know...

Posted: Sat May 10, 2008 12:38 pm
by Lutz
This is fixed in for 9.3.12, due today or tomorrow. If you need it now let me know.

ps: i sent you a private message with the location for preview newlisp-9.3.12.tgz,