<?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>13757</bug_id>
          
          <creation_ts>2007-05-16 20:18:30 -0700</creation_ts>
          <short_desc>REGRESSION: Leaks seen on buildbot after r21497</short_desc>
          <delta_ts>2007-05-25 16:08:23 -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>Page Loading</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Geoffrey Garen">ggaren</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9805</commentid>
    <comment_count>0</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2007-05-16 20:18:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/5209536&gt;

* SUMMARY
Buildbot says they started with this check-in, but it&apos;s not terribly accurate:

Changed by: beidson
Changed at: Wed 16 May 2007 10:11:44
Revision: 21497

Changed files:

/LayoutTests/ChangeLog
/LayoutTests/http/tests/misc/multipart-expected.txt
/LayoutTests/http/tests/misc/multipart.html
/LayoutTests/http/tests/misc/resources/1x1-blue.png
/LayoutTests/http/tests/misc/resources/multipart.php
/WebCore/ChangeLog
/WebCore/loader/ResourceLoader.cpp
Comments:
LayoutTests:

        Reviewed by Brady

        - test for http://bugs.webkit.org/show_bug.cgi?id=13360
          REGRESSION: Crash closing live web cam viewer page

        * http/tests/misc/multipart-expected.txt: Added.
        * http/tests/misc/multipart.html: Added.
        * http/tests/misc/resources/1x1-blue.png: Added.
        * http/tests/misc/resources/multipart.php: Added.

WebCore:

        Reviewed by Brady

        - fix http://bugs.webkit.org/show_bug.cgi?id=13360
          REGRESSION: Crash closing live web cam viewer page

        Test: http/tests/misc/multipart.html

        * loader/ResourceLoader.cpp:
        (WebCore::ResourceLoader::didFail): Avoid calling didFailToLoad() if
        didFinishLoad() has already been called (when the first part of a
        multipart resource arrived).
        (WebCore::ResourceLoader::didCancel): Ditto.

* RESULTS
Process 22325: 70651 nodes malloced for 27978 KB
Process 22325: 5 leaks for 128 total leaked bytes.
Leak: 0x05723be0  size=32	instance of &apos;NSConcreteMutableData&apos;	
	0xa293f038 0x00000000 0x00000009 0x00000010 	...8............
	0x0574d920 0x00000000 0x00000000 0x00000000 	.t. ............
	Call stack: [thread 11]: | 0x0 | _pthread_body | forkThreadForFunction | +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] | CFRunLoopRunSpecific | __CFRunLoopRun | __CFRunLoopDoSources0 | _CFStreamSignalEventSynch | readStreamCallback2 | -[NSConnectionHTTPURLProtocol performHTTPHeaderRead] | -[NSConnectionHTTPURLProtocol setResponseHeaderUsingHTTPResponse:] | -[NSHTTPURLProtocol setResponseHeader:] | -[NSString(NSStringOtherEncodings) dataUsingEncoding:allowLossyConversion:] | NSAllocateObject | _internal_class_createInstanceFromZone 
Leak: 0x0574e630  size=16	
	0x00000000 0x00000000 0x00000000 0x00004000 	..............@.
	Call stack: [thread 3ba7]: | 0x3 | start | _start | main | dumpRenderTree | runTest | -[NSRunLoop runMode:beforeDate:] | CFRunLoopRunSpecific | __CFRunLoopRun | __CFRunLoopDoSources0 | _sendCallbacks | -[NSURLConnection(NSURLConnectionInternal) _sendCallbacks] | -[NSURLConnection(NSURLConnectionInternal) _flushQueuedData] | -[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:] | WebCore::ResourceLoader::didReceiveResponse(WebCore::ResourceHandle*, WebCore::ResourceResponse const&amp;) | WebCore::SubresourceLoader::didReceiveResponse(WebCore::ResourceResponse const&amp;) | WebCore::ResourceLoader::didReceiveResponse(WebCore::ResourceResponse const&amp;) | WebCore::FrameLoader::didReceiveResponse(WebCore::ResourceLoader*, WebCore::ResourceResponse const&amp;) | WebCore::ProgressTracker::incrementProgress(unsigned long, WebCore::ResourceResponse const&amp;) | operator new(unsigned long) | WTF::fastMalloc(unsigned long) 
Leak: 0x0574d920  size=16	
	0x2d2d6375 0x74486572 0x656c7380 0x00010001 	--cutHerels.....
	Call stack: [thread bfffea6c]: | 0x0 | _pthread_body | forkThreadForFunction | +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] | CFRunLoopRunSpecific | __CFRunLoopRun | __CFRunLoopDoSources0 | _CFStreamSignalEventSynch | readStreamCallback2 | -[NSConnectionHTTPURLProtocol performHTTPHeaderRead] | -[NSConnectionHTTPURLProtocol setResponseHeaderUsingHTTPResponse:] | -[NSHTTPURLProtocol setResponseHeader:] | -[NSString(NSStringOtherEncodings) dataUsingEncoding:allowLossyConversion:] | -[NSMutableData initWithLength:] | -[NSConcreteMutableData setLength:] | _setupBytes 
Leak: 0x006f5860  size=16	
	0x00000000 0x0000005b 0x00000000 0x00004000 	.......[......@.
	Call stack: [thread 3ba7]: | 0x3 | start | _start | main | dumpRenderTree | runTest | -[NSRunLoop runMode:beforeDate:] | CFRunLoopRunSpecific | __CFRunLoopRun | __CFRunLoopDoSources0 | _sendCallbacks | -[NSURLConnection(NSURLConnectionInternal) _sendCallbacks] | -[NSURLConnection(NSURLConnectionInternal) _flushQueuedData] | -[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:] | WebCore::ResourceLoader::didReceiveResponse(WebCore::ResourceHandle*, WebCore::ResourceResponse const&amp;) | WebCore::SubresourceLoader::didReceiveResponse(WebCore::ResourceResponse const&amp;) | WebCore::ResourceLoader::didReceiveResponse(WebCore::ResourceResponse const&amp;) | WebCore::FrameLoader::didReceiveResponse(WebCore::ResourceLoader*, WebCore::ResourceResponse const&amp;) | WebCore::ProgressTracker::incrementProgress(unsigned long, WebCore::ResourceResponse const&amp;) | operator new(unsigned long) | WTF::fastMalloc(unsigned long) 
1 leaks excluded (not printed)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9787</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-05-16 23:34:29 -0700</bug_when>
    <thetext>I built r21496, checked out the test from r21497, commented out the window.stop() line and executed &apos;run-webkit-tests --leaks http/tests/misc&apos;. It reported two of the leaks, namely those under incrementProgress(). By disabling the multipart test and running the https/tests/misc tests again I quasi-confirmed that those two leaks occurred in that test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9706</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-05-17 10:22:00 -0700</bug_when>
    <thetext>The leaks under incrementProgress() appear to be easy to fix, but they are a side effect of a bigger problem, which is that multipart resources&apos; progress is tracked after the first part is loaded. It appears to be a regression from shipping Safari. As I&apos;ve mentioned somewhere else, in TOT the progress bar never completes while the multipart resource is loading, but on the other hand the Activity panel does not show its size increasing.

I have not looked into the other leaks yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9707</commentid>
    <comment_count>3</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2007-05-17 10:26:08 -0700</bug_when>
    <thetext>Interesting to note that the first few bot cycles after I landed the patch, only those 2 were reported.  

I really need to fix the multipart-progress thing.  Have we been able to place blame in a revision yet?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9470</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-05-21 13:08:05 -0700</bug_when>
    <thetext>*** Bug 13799 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9095</commentid>
    <comment_count>5</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2007-05-25 16:08:23 -0700</bug_when>
    <thetext>Committed revision 21782.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>