memory leak in 9.3.11

Q&A's, tips, howto's
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

memory leak in 9.3.11

Post 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.
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post by newdep »

I found it...

its in 'net-receive-udp'

Ill post later today for the question ;-)
-- (define? (Cornflakes))

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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.

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post 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...
-- (define? (Cornflakes))

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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,

Locked