<?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>69286</bug_id>
          
          <creation_ts>2011-10-03 13:25:02 -0700</creation_ts>
          <short_desc>Infinite recursion in RenderSVGResourceContainer::markAllClientsForInvalidation &lt;-&gt; RenderSVGResourcePattern::removeAllClientsFromCache</short_desc>
          <delta_ts>2011-11-10 13:20:55 -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>71384</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Horton">thorton</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>477188</commentid>
    <comment_count>0</comment_count>
      <attachid>109516</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2011-10-03 13:25:02 -0700</bug_when>
    <thetext>Created attachment 109516
reduced repro

&lt;rdar://problem/10213026&gt;

Seems to be a cycle between RenderSVGResourceContainer::markAllClientsForInvalidation &lt;-&gt; RenderSVGResourcePattern::removeAllClientsFromCache

#98140 0x00000001022b14ba in WebCore::RenderSVGResourcePattern::removeAllClientsFromCache (this=0x108b383e8, markForInvalidation=true) at RenderSVGResourcePattern.cpp:60
#98141 0x00000001022b14ec in non-virtual thunk to WebCore::RenderSVGResourcePattern::removeAllClientsFromCache(bool) () at RenderSVGResourcePattern.cpp:61
#98142 0x00000001022a7bb9 in WebCore::RenderSVGResourceContainer::markAllClientsForInvalidation (this=0x108b340b8, mode=WebCore::RenderSVGResourceContainer::RepaintInvalidation) at RenderSVGResourceContainer.cpp:114
#98143 0x00000001022b14ba in WebCore::RenderSVGResourcePattern::removeAllClientsFromCache (this=0x108b340b8, markForInvalidation=true) at RenderSVGResourcePattern.cpp:60
#98144 0x00000001022b14ec in non-virtual thunk to WebCore::RenderSVGResourcePattern::removeAllClientsFromCache(bool) () at RenderSVGResourcePattern.cpp:61
#98145 0x00000001022a7bb9 in WebCore::RenderSVGResourceContainer::markAllClientsForInvalidation (this=0x108b48e58, mode=WebCore::RenderSVGResourceContainer::RepaintInvalidation) at RenderSVGResourceContainer.cpp:114
#98146 0x00000001022b14ba in WebCore::RenderSVGResourcePattern::removeAllClientsFromCache (this=0x108b48e58, markForInvalidation=true) at RenderSVGResourcePattern.cpp:60
#98147 0x00000001022b14ec in non-virtual thunk to WebCore::RenderSVGResourcePattern::removeAllClientsFromCache(bool) () at RenderSVGResourcePattern.cpp:61
#98148 0x00000001022a1e36 in WebCore::RenderSVGResource::markForLayoutAndParentResourceInvalidation (object=0x108b37998, needsLayout=false) at RenderSVGResource.cpp:162
#98149 0x000000010229d5d4 in WebCore::SVGResourcesCache::clientStyleChanged (renderer=0x108b37998, diff=WebCore::StyleDifferenceLayout, newStyle=0x108b12110) at SVGResourcesCache.cpp:136
#98150 0x00000001022a47b6 in WebCore::RenderSVGModelObject::styleDidChange (this=0x108b37998, diff=WebCore::StyleDifferenceLayout, oldStyle=0x108b374c0) at RenderSVGModelObject.cpp:100
#98151 0x0000000102270993 in WebCore::RenderObject::setStyle (this=0x108b37998, style=@0x7fff5fbfcf00) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/rendering/RenderObject.cpp:1722
#98152 0x00000001022700eb in WebCore::RenderObject::setAnimatableStyle (this=0x108b37998, style=@0x7fff5fbfcf40) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/rendering/RenderObject.cpp:1635
#98153 0x0000000102081af3 in WebCore::Node::setRenderStyle (this=0x108b49120, s=@0x7fff5fbfd088) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/dom/Node.cpp:1502
#98154 0x00000001017545c9 in WebCore::Element::recalcStyle (this=0x108b49120, change=WebCore::Node::Force) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/dom/Element.cpp:1114
#98155 0x0000000101754a5f in WebCore::Element::recalcStyle (this=0x10a9189a0, change=WebCore::Node::Force) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/dom/Element.cpp:1157
#98156 0x0000000101754a5f in WebCore::Element::recalcStyle (this=0x108b3b0f0, change=WebCore::Node::Force) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/dom/Element.cpp:1157
#98157 0x0000000101754a5f in WebCore::Element::recalcStyle (this=0x108b1c510, change=WebCore::Node::Force) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/dom/Element.cpp:1157
#98158 0x0000000101587ca1 in WebCore::Document::recalcStyle (this=0x109014c00, change=WebCore::Node::Force) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/dom/Document.cpp:1564
#98159 0x0000000101589230 in WebCore::Document::styleSelectorChanged (this=0x109014c00, updateFlag=WebCore::RecalcStyleImmediately) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/dom/Document.cpp:2910
#98160 0x00000001026b1f26 in WebCore::XMLDocumentParser::end (this=0x108b18280) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/xml/parser/XMLDocumentParser.cpp:206
#98161 0x00000001026b200a in WebCore::XMLDocumentParser::finish (this=0x108b18280) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/xml/parser/XMLDocumentParser.cpp:225
#98162 0x00000001015e8a5a in WebCore::DocumentWriter::endIfNotLoadingMainResource (this=0x10d005b70) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/loader/DocumentWriter.cpp:235
#98163 0x00000001015e8080 in WebCore::DocumentWriter::end (this=0x10d005b70) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/loader/DocumentWriter.cpp:214
#98164 0x00000001015c816b in WebCore::DocumentLoader::finishedLoading (this=0x10d005a00) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/loader/DocumentLoader.cpp:284
#98165 0x000000010181bdb1 in WebCore::FrameLoader::finishedLoading (this=0x10d000cd8) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/loader/FrameLoader.cpp:2084
#98166 0x000000010200c25b in WebCore::MainResourceLoader::didFinishLoading (this=0x10d003800, finishTime=0) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/loader/MainResourceLoader.cpp:476
#98167 0x000000010237eefc in WebCore::ResourceLoader::didFinishLoading (this=0x10d003800, finishTime=0) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/loader/ResourceLoader.cpp:451
#98168 0x000000010237b765 in -[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:] (self=0x10c238510, _cmd=0x7fff9053f24c, connection=0x108a0be50) at /Volumes/Data/Shared/src/WebKit/OpenSource/Source/WebCore/platform/network/mac/ResourceHandleMac.mm:873</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>478036</commentid>
    <comment_count>1</comment_count>
      <attachid>109711</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2011-10-04 16:01:47 -0700</bug_when>
    <thetext>Created attachment 109711
further reduction (no JS)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>500202</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2011-11-10 13:20:55 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 71384 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>109516</attachid>
            <date>2011-10-03 13:25:02 -0700</date>
            <delta_ts>2011-10-04 16:01:47 -0700</delta_ts>
            <desc>reduced repro</desc>
            <filename>0-reduced.svg</filename>
            <type>image/svg+xml</type>
            <size>409</size>
            <attacher name="Tim Horton">thorton</attacher>
            
              <data encoding="base64">PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8ZGVmcz4KICAgIDxwYXR0
ZXJuIGlkPSJhIj4KICAgICAgICA8cmVjdCBmaWxsPSJ1cmwoI2IpIi8+CiAgICA8L3BhdHRlcm4+
CiAgICA8cGF0dGVybiBpZD0iYiI+CiAgICAgICAgPHJlY3QgZmlsbD0idXJsKCNjKSIvPgogICAg
PC9wYXR0ZXJuPgogICAgPHBhdHRlcm4gaWQ9ImMiIC8+CjwvZGVmcz4KCjxyZWN0IGlkPSJyIiBm
aWxsPSJ1cmwoI2EpIi8+Cgo8c2NyaXB0Pgp2YXIgcmFuZ2UgPSBkb2N1bWVudC5jcmVhdGVSYW5n
ZSgpOwpyYW5nZS5zZWxlY3ROb2RlKGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJyIikpOwpyYW5n
ZS5zdXJyb3VuZENvbnRlbnRzKGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJjIikpOwo8L3Njcmlw
dD4KPC9zdmc+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>109711</attachid>
            <date>2011-10-04 16:01:47 -0700</date>
            <delta_ts>2011-10-04 16:01:47 -0700</delta_ts>
            <desc>further reduction (no JS)</desc>
            <filename>0-furtherreduced.svg</filename>
            <type>image/svg+xml</type>
            <size>220</size>
            <attacher name="Tim Horton">thorton</attacher>
            
              <data encoding="base64">PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0dGVybiBpZD0iYSI+
CiAgICA8cmVjdCBmaWxsPSJ1cmwoI2IpIi8+CjwvcGF0dGVybj4KPHBhdHRlcm4gaWQ9ImIiPgog
ICAgPHJlY3QgZmlsbD0idXJsKCNjKSIvPgo8L3BhdHRlcm4+CjxwYXR0ZXJuIGlkPSJjIj4KICAg
IDxyZWN0IGlkPSJyIiBmaWxsPSJ1cmwoI2EpIi8+CjwvcGF0dGVybj4KPC9zdmc+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>