<?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>129498</bug_id>
          
          <creation_ts>2014-02-28 11:11:26 -0800</creation_ts>
          <short_desc>REGRESSION (r164804): svg/zoom/page/zoom-img-preserveAspectRatio-support-1.html frequently crashes</short_desc>
          <delta_ts>2014-03-03 09:18: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>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>MakingBotsRed, Regression</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Antoine Quint">graouts</assigned_to>
          <cc>graouts</cc>
    
    <cc>graouts</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>985647</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-02-28 11:11:26 -0800</bug_when>
    <thetext>svg/zoom/page/zoom-img-preserveAspectRatio-support-1.html started to flakily crash yesterday, first time in r164807. &lt;http://trac.webkit.org/r164804&gt; looks like an obvious culprit.

http://build.webkit.org/results/Apple%20MountainLion%20Debug%20WK2%20(Tests)/r164860%20(16318)/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-crash-log.txt

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebCore             	0x00000001074e06cc WTF::RefPtr&lt;WebCore::Frame&gt;::operator*() const + 12 (RefPtr.h:63)
1   com.apple.WebCore             	0x00000001074af15c WebCore::FrameView::frame() const + 28 (FrameView.h:84)
2   com.apple.WebCore             	0x0000000107cea092 WebCore::FrameView::scrollToFragment(WebCore::URL const&amp;) + 50 (FrameView.cpp:1803)
3   com.apple.WebCore             	0x00000001090bddf9 WebCore::SVGImageForContainer::setURL(WebCore::URL const&amp;) + 41 (SVGImageForContainer.cpp:60)
4   com.apple.WebCore             	0x00000001090b8acb WebCore::SVGImageCache::imageForRenderer(WebCore::RenderObject const*) + 395 (SVGImageCache.cpp:97)
5   com.apple.WebCore             	0x000000010762875c WebCore::CachedImage::imageForRenderer(WebCore::RenderObject const*) + 316 (CachedImage.cpp:213)
6   com.apple.WebCore             	0x0000000108b981f8 WebCore::RenderImageResource::image(int, int) const + 104 (RenderImageResource.cpp:95)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>985704</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-02-28 13:56:45 -0800</bug_when>
    <thetext>svg/as-background-image/background-image-preserveaspectRatio-support.html too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>985705</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2014-02-28 14:03:26 -0800</bug_when>
    <thetext>I&apos;m not managing to reproduce this on Mavericks running `Tools/Scripts/run-webkit-tests --debug svg/zoom/page/zoom-img-preserveAspectRatio-support-1.html`. Always passes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>985714</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-02-28 14:41:08 -0800</bug_when>
    <thetext>Will it reproduce for you with this invocation? I didn&apos;t try myself, as I&apos;m still on an earlier revision.

Tools/Scripts/run-webkit-tests --debug -2 --repeat-each 1000 svg/zoom/page/zoom-img-preserveAspectRatio-support.html svg/zoom/page/zoom-img-preserveAspectRatio-support-1.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>985904</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2014-03-01 01:50:22 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Will it reproduce for you with this invocation? I didn&apos;t try myself, as I&apos;m still on an earlier revision.
&gt; 
&gt; Tools/Scripts/run-webkit-tests --debug -2 --repeat-each 1000 svg/zoom/page/zoom-img-preserveAspectRatio-support.html svg/zoom/page/zoom-img-preserveAspectRatio-support-1.html

In this case I do very rare crashes. I think the crash is coming from a NULL frame when we call this line in FrameView::scrollToFragment():

    if (!url.hasFragmentIdentifier() &amp;&amp; !frame().document()-&gt;cssTarget())</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>986062</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-03-01 23:44:25 -0800</bug_when>
    <thetext>What&apos;s the next step here? Does r164804 need to be rolled out?

It&apos;s important to make the bots green again ASAP, as existing failures make it much more difficult to spot future unrelated regressions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>986118</commentid>
    <comment_count>6</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2014-03-02 09:59:25 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; What&apos;s the next step here? Does r164804 need to be rolled out?
&gt; 
&gt; It&apos;s important to make the bots green again ASAP, as existing failures make it much more difficult to spot future unrelated regressions.

We&apos;re tracking a slightly different approach to fix https://bugs.webkit.org/show_bug.cgi?id=129387 which would also prevent this crash. I hope to have a revised patch out tomorrow at the latest, but I can&apos;t promise when it&apos;d be get in the tree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>986299</commentid>
    <comment_count>7</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2014-03-03 02:04:03 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; What&apos;s the next step here? Does r164804 need to be rolled out?
&gt; &gt; 
&gt; &gt; It&apos;s important to make the bots green again ASAP, as existing failures make it much more difficult to spot future unrelated regressions.
&gt; 
&gt; We&apos;re tracking a slightly different approach to fix https://bugs.webkit.org/show_bug.cgi?id=129387 which would also prevent this crash. I hope to have a revised patch out tomorrow at the latest, but I can&apos;t promise when it&apos;d be get in the tree.

Patch that should prevent this crash is now attached to https://bugs.webkit.org/show_bug.cgi?id=129387.z</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>986315</commentid>
    <comment_count>8</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2014-03-03 03:52:41 -0800</bug_when>
    <thetext>Hopefully, https://trac.webkit.org/r164983 fixes this flakiness.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>986371</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-03-03 09:18:55 -0800</bug_when>
    <thetext>Thank you! I&apos;ll re-open if I see this happen again.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>