<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>24877</bug_id>
          
          <creation_ts>2009-03-26 22:43:05 -0700</creation_ts>
          <short_desc>REGRESSION: Leaks from ApplicationCache code running http/tests/appcache/non-html.xhtml</short_desc>
          <delta_ts>2009-08-21 17:01:10 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>darin</cc>
    
    <cc>ggaren</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>115496</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-03-26 22:43:05 -0700</bug_when>
    <thetext>http://build.webkit.org/results/trunk-mac-intel-debug/6379/DumpRenderTree-leaks.txt

ApplicationCache, ApplicationCacheGroup, ApplicationCacheStorage

Might be from the marking changes today, but I kinda doubt it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115498</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-03-26 23:05:01 -0700</bug_when>
    <thetext>Might be related to this crash seen running the storage tests:
ASSERTION FAILED: isMainThread() || m_emptyString-&gt;hasOneRef()
(/Stuff/Projects/WebKit/WebCore/platform/ThreadGlobalData.cpp:97 WebCore::ThreadGlobalData::~ThreadGlobalData())</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115503</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-03-27 00:05:07 -0700</bug_when>
    <thetext>bdash notes that these occurred at least as early as last thursday:
http://build.webkit.org/builders/trunk-mac-intel-debug/builds/6300</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115504</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-03-27 00:08:16 -0700</bug_when>
    <thetext>http://build.webkit.org/builders/trunk-mac-intel-debug/builds/6296
Seems to be the first build to show the regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115505</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-03-27 00:20:09 -0700</bug_when>
    <thetext>It&apos;s possible these could have started appearing around a bot upgrade, since earlier leaks, like:
http://build.webkit.org/results/trunk-mac-intel-debug/6285/DumpRenderTree-leaks.txt
show at least a loader-related leak.  A bot upgrade could have changed CFNetwork or the leaks tool.

The changes in 6296 don&apos;t look very related:
http://build.webkit.org/builders/trunk-mac-intel-debug/builds/6296</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115506</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-03-27 00:31:00 -0700</bug_when>
    <thetext>Found a culprit:

running http/tests/appcache/non-html.xhtml -&gt;         http/tests/appcache/non-html.xhtml -&gt; succeeded
 ? checking for leaks in DumpRenderTree
 - no leaks found
LEAK: 27 WebCoreNode
LEAK: 1 CachedResource

run-webkit-tests --leaks http/tests/appcache/non-html.xhtml

will reproduce at least one of the sets of leaks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115507</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-03-27 00:35:51 -0700</bug_when>
    <thetext>I&apos;ve verified that http/tests/appcache/non-html.xhtml is the *only* leaking ApplicationCache test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115508</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-03-27 00:39:59 -0700</bug_when>
    <thetext>Actually, I&quot;m wrong.  The case I reproduced with http/tests/appcache/non-html.xhtml only spits out LEAK message, not stacks from the leaks tool.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115509</commentid>
    <comment_count>8</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-03-27 00:43:02 -0700</bug_when>
    <thetext>http/tests/appcache/non-html.xhtml was added as part of:
http://trac.webkit.org/changeset/40401
I&apos;ve not yet tested that revision to see if it shows leaks then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>142036</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-08-21 16:08:14 -0700</bug_when>
    <thetext>The LEAK message is red herring - the CachedResource isn&apos;t deleted because DRT doesn&apos;t destroy its last document.

Looking at leaks for current ToT, I only see a bunch coming from CFNetwork (under XMLHttpRequest).

There are certainly leaks on appcache tests, but it&apos;s not clear whether they are WebKit or CFNetwork issue. I used to think that they were the latter, but bdash found some evidence to the contrary. I&apos;m investigating that now, but it seems to be a separate issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>142041</commentid>
    <comment_count>10</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-08-21 16:19:06 -0700</bug_when>
    <thetext>I don&apos;t wish to argue about the closing of the bug.  Just with this statement:

&quot;The LEAK message is red herring - the CachedResource isn&apos;t deleted because DRT
doesn&apos;t destroy its last document.&quot;

Do we still see LEAK messages from this code?  If so, we need to either fix the LEAK messages to not print, fix the leaks, or fix DRT to not trigger them. :)  Leak counts are useless if not expected to be 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>142052</commentid>
    <comment_count>11</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-08-21 17:01:10 -0700</bug_when>
    <thetext>Yes, improving DRT would be good - the LEAK messages are still there. In other news, I&apos;m preparing a patch that fixes all leaks (not LEAKS) on appcache tests for me.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>