newLISP Fan Club

Forum => newLISP in the real world => Topic started by: newdep on May 10, 2008, 02:00:45 AM

Title: memory leak in 9.3.11
Post by: newdep on May 10, 2008, 02:00:45 AM
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.
Title:
Post by: newdep on May 10, 2008, 02:38:36 AM
I found it...



its in 'net-receive-udp'



Ill post later today for the question ;-)
Title:
Post by: Lutz on May 10, 2008, 04:35:46 AM
I can repeat that too, about 4 byte per iteration, but its nothing obvious, I will let you know when I found the problem.
Title:
Post by: newdep on May 10, 2008, 05:12:37 AM
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...
Title:
Post by: Lutz on May 10, 2008, 05:38:51 AM
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,