<?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>150722</bug_id>
          
          <creation_ts>2015-10-30 11:05:52 -0700</creation_ts>
          <short_desc>Minor CGColor leaks seen on bots allocated in WebSystemBackdropLayer.mm</short_desc>
          <delta_ts>2015-10-30 12:10:07 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Joseph Pecoraro">joepeck</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>dino</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1137897</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-10-30 11:05:52 -0700</bug_when>
    <thetext>Minor CGColor leaks seen on bots allocated in WebSystemBackdropLayer.mm

* LEAK
Call stack: [thread 0x11decb300]: 
    | 0x2 
    | start 
    | main DumpRenderTreeMain.mm:30 
    | DumpRenderTreeMain(int, char const**) DumpRenderTree.mm:1430 
    | dumpRenderTree(int, char const**) DumpRenderTree.mm:1295 
    | runTestingServerLoop() DumpRenderTree.mm:1186 
    | runTest(std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; const&amp;) DumpRenderTree.mm:2036 
    | CFRunLoopRunSpecific 
    | __CFRunLoopRun 
    | __CFRunLoopDoSources0 
    | __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ 
    | MultiplexerSource::_perform(void*) 
    | MultiplexerSource::perform() 
    | RunloopBlockContext::perform() 
    | CFArrayApplyFunction 
    | RunloopBlockContext::_invoke_block(void const*, void*) 
    | ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 
    | ___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke 
    | -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] 
    | -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] 
    | __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke 
    | -[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:] WebCoreResourceHandleAsDelegate.mm:258 
    | WebCore::ResourceLoader::didFinishLoading(WebCore::ResourceHandle*, double) ResourceLoader.cpp:639 
    | WebCore::SubresourceLoader::didFinishLoading(double) SubresourceLoader.cpp:374 
    | WebCore::CachedRawResource::finishLoading(WebCore::SharedBuffer*) CachedRawResource.cpp:104 
    | WebCore::CachedResource::finishLoading(WebCore::SharedBuffer*) CachedResource.cpp:314 
    | WebCore::CachedResource::checkNotify() CachedResource.cpp:296 
    | WebCore::DocumentLoader::notifyFinished(WebCore::CachedResource*) DocumentLoader.cpp:385 
    | WebCore::DocumentLoader::finishedLoading(double) DocumentLoader.cpp:438 
    | WebCore::DocumentWriter::end() DocumentWriter.cpp:247 
    | WebCore::HTMLDocumentParser::finish() HTMLDocumentParser.cpp:452 
    | WebCore::HTMLDocumentParser::attemptToEnd() HTMLDocumentParser.cpp:424 
    | WebCore::HTMLDocumentParser::prepareToStopParsing() HTMLDocumentParser.cpp:133 
    | WebCore::HTMLDocumentParser::attemptToRunDeferredScriptsAndEnd() HTMLDocumentParser.cpp:412 
    | WebCore::HTMLDocumentParser::end() HTMLDocumentParser.cpp:403 
    | WebCore::HTMLTreeBuilder::finished() HTMLTreeBuilder.cpp:2939 
    | WebCore::HTMLConstructionSite::finishedParsing() HTMLConstructionSite.cpp:404 
    | WebCore::Document::finishedParsing() Document.cpp:4897 
    | WebCore::FrameLoader::finishedParsing() FrameLoader.cpp:758 
    | WebCore::FrameLoader::checkCompleted() FrameLoader.cpp:837 
    | WebCore::FrameLoader::checkCallImplicitClose() FrameLoader.cpp:890 
    | WebCore::Document::implicitClose() Document.cpp:2663 
    | WebCore::Document::dispatchWindowLoadEvent() Document.cpp:4067 
    | WebCore::DOMWindow::dispatchLoadEvent() DOMWindow.cpp:1884 
    | WebCore::DOMWindow::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;, WTF::PassRefPtr&lt;WebCore::EventTarget&gt;) DOMWindow.cpp:1926 
    | WebCore::EventTarget::fireEventListeners(WebCore::Event*) EventTarget.cpp:208 
    | WebCore::EventTarget::fireEventListeners(WebCore::Event*, WebCore::EventTargetData*, WTF::Vector&lt;WebCore::RegisteredEventListener, 1ul, WTF::CrashOnOverflow, 16ul&gt;&amp;) EventTarget.cpp:256 
    | WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext*, WebCore::Event*) JSEventListener.cpp:130 
    | WebCore::JSMainThreadExecState::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;) JSMainThreadExecState.h:56 
    | JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;) CallData.cpp:44 
    | JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;) CallData.cpp:39 
    | JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;) Interpreter.cpp:1024 
    | JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) JITCode.cpp:80 
    | vmEntryToJavaScript 
    | llint_entry 
    | 0x47e9f4601028 
    | WebCore::jsInternalsPrototypeFunctionLayerTreeAsText(JSC::ExecState*) JSInternals.cpp:2779 
    | WebCore::Internals::layerTreeAsText(WebCore::Document*, int&amp;) const Internals.cpp:1861 
    | WebCore::Internals::layerTreeAsText(WebCore::Document*, unsigned int, int&amp;) const Internals.cpp:1884 
    | WebCore::Frame::layerTreeAsText(unsigned int) const Frame.cpp:929 
    | WebCore::RenderLayerCompositor::layerTreeAsText(unsigned int) RenderLayerCompositor.cpp:1860 
    | WebCore::RenderLayerCompositor::flushPendingLayerChanges(bool) RenderLayerCompositor.cpp:486 
    | WebCore::GraphicsLayerCA::flushCompositingState(WebCore::FloatRect const&amp;, bool) GraphicsLayerCA.cpp:1100 
    | WebCore::GraphicsLayerCA::recursiveCommitChanges(WebCore::GraphicsLayerCA::CommitState const&amp;, WebCore::TransformState const&amp;, float, WebCore::FloatPoint const&amp;, bool) GraphicsLayerCA.cpp:1387 
    | WebCore::GraphicsLayerCA::recursiveCommitChanges(WebCore::GraphicsLayerCA::CommitState const&amp;, WebCore::TransformState const&amp;, float, WebCore::FloatPoint const&amp;, bool) GraphicsLayerCA.cpp:1387 
    | WebCore::GraphicsLayerCA::recursiveCommitChanges(WebCore::GraphicsLayerCA::CommitState const&amp;, WebCore::TransformState const&amp;, float, WebCore::FloatPoint const&amp;, bool) GraphicsLayerCA.cpp:1374 
    | WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers(WebCore::GraphicsLayerCA::CommitState&amp;, float, WebCore::FloatPoint const&amp;) GraphicsLayerCA.cpp:1496 
    | WebCore::GraphicsLayerCA::changeLayerTypeTo(WebCore::PlatformCALayer::LayerType) GraphicsLayerCA.cpp:3361 
    | WebCore::GraphicsLayerCA::createPlatformCALayer(WebCore::PlatformCALayer::LayerType, WebCore::PlatformCALayerClient*) GraphicsLayerCA.cpp:332 
    | WebCore::PlatformCALayerCocoa::create(WebCore::PlatformCALayer::LayerType, WebCore::PlatformCALayerClient*) PlatformCALayerCocoa.mm:76 
    | WebCore::PlatformCALayerCocoa::PlatformCALayerCocoa(WebCore::PlatformCALayer::LayerType, WebCore::PlatformCALayerClient*) PlatformCALayerCocoa.mm:278 
    | WebCore::PlatformCALayerCocoa::PlatformCALayerCocoa(WebCore::PlatformCALayer::LayerType, WebCore::PlatformCALayerClient*) PlatformCALayerCocoa.mm:270 
    | -[WebLightSystemBackdropLayer init] WebSystemBackdropLayer.mm:54 
    | create_color 
    | CGTypeCreateInstance 
    | _CFRuntimeCreateInstance 
    | malloc_zone_malloc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137898</commentid>
    <comment_count>1</comment_count>
      <attachid>264403</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-10-30 11:06:48 -0700</bug_when>
    <thetext>Created attachment 264403
[PATCH] Proposed Fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137916</commentid>
    <comment_count>2</comment_count>
      <attachid>264403</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-10-30 12:10:03 -0700</bug_when>
    <thetext>Comment on attachment 264403
[PATCH] Proposed Fix

Clearing flags on attachment: 264403

Committed r191804: &lt;http://trac.webkit.org/changeset/191804&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1137917</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2015-10-30 12:10:07 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>264403</attachid>
            <date>2015-10-30 11:06:48 -0700</date>
            <delta_ts>2015-10-30 12:10:03 -0700</delta_ts>
            <desc>[PATCH] Proposed Fix</desc>
            <filename>leak-1.patch</filename>
            <type>text/plain</type>
            <size>1649</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCAzMTYxNTA4Li4zNGVlNjMwIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29y
ZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTQg
QEAKKzIwMTUtMTAtMzAgIEpvc2VwaCBQZWNvcmFybyAgPHBlY29yYXJvQGFwcGxlLmNvbT4KKwor
ICAgICAgICBNaW5vciBDR0NvbG9yIGxlYWtzIHNlZW4gb24gYm90cyBhbGxvY2F0ZWQgaW4gV2Vi
U3lzdGVtQmFja2Ryb3BMYXllci5tbQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9z
aG93X2J1Zy5jZ2k/aWQ9MTUwNzIyCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BT
ISkuCisKKyAgICAgICAgKiBwbGF0Zm9ybS9ncmFwaGljcy9jYS9jb2NvYS9XZWJTeXN0ZW1CYWNr
ZHJvcExheWVyLm1tOgorICAgICAgICAoLVtXZWJMaWdodFN5c3RlbUJhY2tkcm9wTGF5ZXIgaW5p
dF0pOgorICAgICAgICAoLVtXZWJEYXJrU3lzdGVtQmFja2Ryb3BMYXllciBpbml0XSk6CisKIDIw
MTUtMTAtMjkgIEFsZXggQ2hyaXN0ZW5zZW4gIDxhY2hyaXN0ZW5zZW5Ad2Via2l0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