Bug 76605

Summary: LEAK : Reg.Date() function memory leak...
Product: WebKit Reporter: ssseintr <ssseintr2>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED    
Severity: Major CC: ap, barraclough
Priority: P1    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

ssseintr
Reported 2012-01-18 23:15:36 PST
Hi All, I had found some memory leak in Date() funtion. As per my understanding, nearly 120 bytes leaked every time when load the below script. <script> str ="Date : "+new Date(); </script> This memory couldn't freed either to load next page or exit from the WebKit. Please help me to solve this problem. Regards, Vicky.
Attachments
Alexey Proskuryakov
Comment 1 2012-01-19 12:21:30 PST
Could you please provide steps to reproduce (i.e. what metric to watch for while reloading this test script)?
ssseintr
Comment 2 2012-01-20 19:46:00 PST
You can see the task manager's "mem usage". Because of its small size(typically 120 bytes for each iteration) it needs continuous reloading of below script, <script> str ="Date : "+new Date(); </script> In case of debug mode, valgrind provides the necessary metrics. Also putting traces in fastMalloc,fastFree shows this leak.
Oleg Smirnov
Comment 3 2013-01-28 22:49:58 PST
Can not reproduce this issue on latest WebKitGtk.
Note You need to log in before you can comment on or make changes to this bug.