[Webkit-unassigned] [Bug 118547] Leaking most Documents

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 12 16:54:16 PDT 2013


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





--- Comment #9 from Brady Eidson <beidson at apple.com>  2013-07-12 16:56:19 PST ---
I ran my original test in multiple web process mode.
Actually in single web process mode, it appears the Document does not leak indefinitely.  But there's still a bug:

Using some sequential test pages I put up on a server:
0x7fa32b548b40 - 1373673096.919025 - Constructing CachedResourceLoader
0x7fa32c005a00 - 1373673096.919108 - Constructing DocumentLoader ()
0x7fa32c034e00 - 1373673096.919625 - Constructing Document ()
0x7fa32e114170 - 1373673097.106312 - Constructing CachedResourceLoader
0x7fa32d00e200 - 1373673097.106356 - Constructing DocumentLoader (http://bradeeoh.com/test0.html)
0x7fa32c005a00 - 1373673097.454581 - Destroying DocumentLoader ()
0x7fa32d002000 - 1373673097.455927 - Constructing Document (http://bradeeoh.com/test0.html)
0x7fa32c034e00 - 1373673097.456086 - Destroying Document ()
0x7fa32b548b40 - 1373673097.456153 - Destroying CachedResourceLoader

---navigate---

0x7fa32e122360 - 1373673101.222555 - Constructing CachedResourceLoader
0x7fa32d00c400 - 1373673101.222602 - Constructing DocumentLoader (http://bradeeoh.com/test1.html)
0x7fa32d00e200 - 1373673101.387006 - Destroying DocumentLoader (http://bradeeoh.com/test0.html)
0x7fa32d027c00 - 1373673101.388695 - Constructing Document (http://bradeeoh.com/test1.html)

---navigate---

0x7fa32e633b50 - 1373673104.853812 - Constructing CachedResourceLoader
0x7fa32b84a000 - 1373673104.853854 - Constructing DocumentLoader (http://bradeeoh.com/test2.html)
0x7fa32d00c400 - 1373673105.019031 - Destroying DocumentLoader (http://bradeeoh.com/test1.html)
0x7fa32b850400 - 1373673105.019829 - Constructing Document (http://bradeeoh.com/test2.html)
0x7fa32d002000 - 1373673105.052540 - Destroying Document (http://bradeeoh.com/test0.html)
0x7fa32e114170 - 1373673105.052630 - Destroying CachedResourceLoader
0x7fa32d027c00 - 1373673105.052846 - Destroying Document (http://bradeeoh.com/test1.html)
0x7fa32e122360 - 1373673105.052896 - Destroying CachedResourceLoader

So while the Document for test0 isn't cleaned up after navigating to test1, it *is* cleaned up after navigating to test2.

This cycle repeats over and over.  Nav A -> Nav B -> Nav C (clean up Nav A and B).   Nav D (clean up Nav C).  Nav E -> Nav F (clean up Nav D and Nav E)
etc etc etc.

So yes, this seems like a bug for single web processes, but not a terribly tragic one.

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