<?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>106709</bug_id>
          
          <creation_ts>2013-01-11 15:32:55 -0800</creation_ts>
          <short_desc>SVGFontElement is leaked</short_desc>
          <delta_ts>2013-01-17 08:58:29 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>66438</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>106716</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Stephen Chenney">schenney</assigned_to>
          <cc>eric</cc>
    
    <cc>pdr</cc>
    
    <cc>psolanki</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>805681</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-01-11 15:32:55 -0800</bug_when>
    <thetext>Looking at the leaks bot output, roughly 26% of leaks seem to come from SVGFontElement:

http://build.webkit.org/LeaksViewer/?url=%2Fresults%2FApple%20MountainLion%20%28Leaks%29%2Fr139478%20%282325%29%2F</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>805683</commentid>
    <comment_count>1</comment_count>
    <who name="Pratik Solanki">psolanki</who>
    <bug_when>2013-01-11 15:34:26 -0800</bug_when>
    <thetext>Here&apos;s an example callstack

	Call stack: [thread 0x7fff72b57180]: 
		start 
		main DumpRenderTree.mm:932 
		dumpRenderTree(int, char const**) DumpRenderTree.mm:894 
		runTestingServerLoop() DumpRenderTree.mm:847 
		runTest(std::__1::basic_string&amp;lt;char, std::__1::char_traits&amp;lt;char&amp;gt;, std::__1::allocator&amp;lt;char&amp;gt; &amp;gt; const&amp;amp;) DumpRenderTree.mm:1382 
		-[NSRunLoop(NSRunLoop) runMode:beforeDate:] 
		CFRunLoopRunSpecific 
		__CFRunLoopRun 
		__CFRunLoopDoSources0 
		__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ 
		MultiplexerSource::perform() 
		RunloopBlockContext::perform() 
		CFArrayApplyFunction 
		__block_global_1 
		___withDelegateAsync_block_invoke_0 
		___delegate_didReceiveDataArray_block_invoke_0 
		_NSURLConnectionDidReceiveData_LengthReceived 
		-[NSURLConnectionInternal _withActiveConnectionAndDelegate:] 
		-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] 
		__65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke_0 
		-[WebCoreResourceHandleAsDelegate connection:didReceiveData:lengthReceived:] ResourceHandleMac.mm:785 
		WebCore::ResourceLoader::didReceiveData(WebCore::ResourceHandle*, char const*, int, int) ResourceLoader.cpp:452 
		WebCore::SubresourceLoader::didReceiveData(char const*, int, long long, bool) SubresourceLoader.cpp:226 
		WebCore::SubresourceLoader::sendDataToResource(char const*, int) SubresourceLoader.cpp:253 
		WebCore::CachedRawResource::data(WTF::PassRefPtr&amp;lt;WebCore::ResourceBuffer&amp;gt;, bool) CachedRawResource.cpp:70 
		WebCore::MainResourceLoader::dataReceived(WebCore::CachedResource*, char const*, int) MainResourceLoader.cpp:515 
		WebCore::DocumentLoader::receivedData(char const*, int) DocumentLoader.cpp:388 
		WebCore::DocumentLoader::commitLoad(char const*, int) DocumentLoader.cpp:319 
		WebFrameLoaderClient::committedLoad(WebCore::DocumentLoader*, char const*, int) WebFrameLoaderClient.mm:846 
		-[WebDataSource(WebInternal) _receivedData:] WebDataSource.mm:215 
		-[WebHTMLRepresentation receivedData:withDataSource:] WebHTMLRepresentation.mm:186 
		-[WebFrame(WebInternal) _commitData:] WebFrame.mm:826 
		WebCore::DocumentLoader::commitData(char const*, unsigned long) DocumentLoader.cpp:357 
		WebCore::DocumentWriter::addData(char const*, unsigned long) DocumentWriter.cpp:222 
		WebCore::DecodedDataDocumentParser::appendBytes(WebCore::DocumentWriter*, char const*, unsigned long) DecodedDataDocumentParser.cpp:50 
		WebCore::HTMLDocumentParser::append(WebCore::SegmentedString const&amp;amp;) HTMLDocumentParser.cpp:370 
		WebCore::HTMLDocumentParser::pumpTokenizerIfPossible(WebCore::HTMLDocumentParser::SynchronousMode) HTMLDocumentParser.cpp:181 
		WebCore::HTMLDocumentParser::pumpTokenizer(WebCore::HTMLDocumentParser::SynchronousMode) HTMLDocumentParser.cpp:277 
		WebCore::HTMLTreeBuilder::constructTreeFromToken(WebCore::HTMLToken&amp;amp;) HTMLTreeBuilder.cpp:379 
		WebCore::HTMLTreeBuilder::constructTreeFromAtomicToken(WebCore::AtomicHTMLToken*) HTMLTreeBuilder.cpp:396 
		WebCore::HTMLTreeBuilder::processTokenInForeignContent(WebCore::AtomicHTMLToken*) HTMLTreeBuilder.cpp:2853 
		WebCore::HTMLConstructionSite::insertForeignElement(WebCore::AtomicHTMLToken*, WTF::AtomicString const&amp;amp;) HTMLConstructionSite.cpp:458 
		WebCore::HTMLConstructionSite::createElement(WebCore::AtomicHTMLToken*, WTF::AtomicString const&amp;amp;) HTMLConstructionSite.cpp:513 
		WebCore::Document::createElement(WebCore::QualifiedName const&amp;amp;, bool) Document.cpp:1109 
		WebCore::SVGElementFactory::createSVGElement(WebCore::QualifiedName const&amp;amp;, WebCore::Document*, bool) SVGElementFactory.cpp:640 
		WebCore::fontConstructor(WebCore::QualifiedName const&amp;amp;, WebCore::Document*, bool) SVGElementFactory.cpp:339 
		WebCore::SVGFontElement::create(WebCore::QualifiedName const&amp;amp;, WebCore::Document*) SVGFontElement.cpp:58 
		WTF::fastMalloc(unsigned long) FastMalloc.cpp:274 
		malloc 
		malloc_zone_malloc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>809370</commentid>
    <comment_count>2</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2013-01-17 08:58:29 -0800</bug_when>
    <thetext>Duplicate of https://bugs.webkit.org/show_bug.cgi?id=66438

*** This bug has been marked as a duplicate of bug 66438 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>