Bug 21487

Summary: JSCustomSQLTransactionCallback and associated objects leak when the storage tests are run
Product: WebKit Reporter: mitz
Component: WebCore Misc.Assignee: Dumitru Daniliuc <dumi>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: beidson, dumi, eric
Priority: P1 Keywords: InRadar, LayoutTestFailure
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   

Description mitz 2008-10-08 16:16:13 PDT
./WebKitBuild/Debug/DumpRenderTree LayoutTests/storage/*.html reports the following:

LEAK: 19 WebCoreNode
LEAK: 1 JSCustomSQLTransactionCallback
LEAK: 1 Frame
LEAK: 44 JSC::Node

The first test in the bunch, close-during-stress-test.html, is essential for the leak to happen, and running it (or even a reduced version of it) alone reproduces the leak, but running it followed by a page that waits for a while before DRT quits makes the leak go away.
Comment 1 mitz 2008-10-08 16:17:16 PDT
<rdar://problem/6279671>
Comment 2 Eric Seidel (no email) 2010-02-17 12:29:37 PST
This may be related to the crash (bug 30172) that we're seeing with storage/close-during-stress-test.html
Comment 3 Dumitru Daniliuc 2010-05-14 16:15:13 PDT
Just sync'ed to r59499 and ran WebKitBuild/Debug/DumpRenderTree LayoutTests/storage/*.html:

Leak: 89 WebCoreNode
Leak: 616 Structure

Running only close-during-stress-test.html doesn't report any leaks.

All DB bindings were refactored quite a bit in the last half a year. One of those refactorings must've fixed this problem too. Please reopen if you this leak again.