[Webkit-unassigned] [Bug 68303] New: Memory leak using web SQL DB

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 16 19:23:53 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=68303

           Summary: Memory leak using web SQL DB
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: michaeln at google.com


Here's a repro case...

<script>
    setInterval (function() {
        openDatabase('leaky', '', 'Leaky', 5*1024*1024);
    }, 250);
</script>

There are two references held on Database objects that prevent them from being cleaned up prior to page close even if there are no references or pending completions in the containing script execution content.

1) The background DatabaseThread class holds a ref to each Database instance that's been open on that thread until that Database has been closed. Trouble is, they're not closed until Document shutdown time.

2) The InspectorInstrumentation holds a ref to each Database instance that's been open in InspecotorDatabaseAgent. There is no method to clear the ref for an individual Database, only a way to drop such refs for all Database instance that have been opened in the page. That clearing happens when a new Document is being committed to the Frame.

Also see http://code.google.com/p/chromium/issues/detail?id=62275

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list