memory leak in 9.3.11

Started by newdep, May 10, 2008, 02:00:45 AM

Previous topic - Next topic

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

#1
I found it...



its in 'net-receive-udp'



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

Lutz

#2
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

#3
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

#4
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,