<?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>6947</bug_id>
          
          <creation_ts>2006-01-30 17:43:38 -0800</creation_ts>
          <short_desc>reproducible crash in SVG Game (due to graphics context set-up)</short_desc>
          <delta_ts>2006-07-24 10:23:25 -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>SVG</component>
          <version>420+</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>http://www.codedread.com/yastframe.php</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar, SVGHitList</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>8425</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Dave MacLachlan">dmaclach</assigned_to>
          <cc>alice.barraclough</cc>
    
    <cc>dmaclach</cc>
    
    <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30677</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-01-30 17:43:38 -0800</bug_when>
    <thetext>Reproducible SVG Crash, p2 SVG Hitlist.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30678</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-01-30 17:43:49 -0800</bug_when>
    <thetext>http://www.codedread.com/yastframe.php</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32037</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-02-10 09:30:55 -0800</bug_when>
    <thetext>Reproducible crashes, even in SVG, are P1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32245</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Kellett">a</who>
    <bug_when>2006-02-12 11:39:39 -0800</bug_when>
    <thetext>unfortunately the actual game itself cannot possibly work so it doesn&apos;t seem like a very useful test case alas... a reduced testcase would be very useful. on first glance it looks like a extreme duplicate of 6713</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36611</commentid>
    <comment_count>4</comment_count>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2006-03-16 18:11:43 -0800</bug_when>
    <thetext>&lt;rdar://problem/4481614&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39420</commentid>
    <comment_count>5</comment_count>
      <attachid>7745</attachid>
    <who name="Alexander Kellett">a</who>
    <bug_when>2006-04-16 10:37:10 -0700</bug_when>
    <thetext>Created attachment 7745
reduction</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41376</commentid>
    <comment_count>6</comment_count>
      <attachid>8132</attachid>
    <who name="">jonathanjohnsson</who>
    <bug_when>2006-05-06 00:52:16 -0700</bug_when>
    <thetext>Created attachment 8132
More reduced test case

I reduced the reduction a bit more, it still crashes every time. The difference in the crash logs are mainly in the beginning, as follows (then proceeding identical, except for some addresses):

-- first reduction --

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x000003e1

Thread 0 Crashed:
0   com.apple.CoreGraphics   	0x903c5560 CGColorTransformGetColorSpace + 52
1   libRIP.A.dylib           	0x9474d258 ripc_GetRenderingState + 88
2   libRIP.A.dylib           	0x9474c450 ripc_DrawImage + 144
3   com.apple.CoreGraphics   	0x903d9ef4 CGContextDelegateDrawImage + 76
4   com.apple.CoreGraphics   	0x9046bac4 metalDelegate_FillRectWithImages + 360
5   com.apple.CoreGraphics   	0x9046b944 CGContextDelegateFillRectWithImages + 116
6   com.apple.CoreGraphics   	0x9046b728 Private_CGContextFillRectWithImagesPrivate + 124

-- second reduction --

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000009

Thread 0 Crashed:
0   com.apple.CoreGraphics   	0x9043e514 CGContextDelegateSupportsFeature + 28
1   com.apple.CoreGraphics   	0x9046b6f0 Private_CGContextFillRectWithImagesPrivate + 68</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41377</commentid>
    <comment_count>7</comment_count>
    <who name="">jonathanjohnsson</who>
    <bug_when>2006-05-06 01:05:25 -0700</bug_when>
    <thetext>My added test case is practically identical to the test case in bug 8425 (and can be reduced to it). I don&apos;t know if that qualifies as a duplicate, someone in the know should look at it. (My reduction was iterative, slowly removing and rearranging elements, crashing every iteration.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41416</commentid>
    <comment_count>8</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-05-06 14:37:41 -0700</bug_when>
    <thetext>Yeah, I&apos;m pretty sure I know what&apos;s causing this.

Beginning a transparency layer, then swapping out the current context (in order to draw the filter content into a temporary buffer) than swapping it back in, causes the problem.  In your reduction we have &lt;g opacity=&quot;0.5&quot;&gt;&lt;g filter=&quot;url(#foo)&quot;/&gt;&lt;/g&gt; which is what is causing the crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50608</commentid>
    <comment_count>9</comment_count>
    <who name="Dave MacLachlan">dmaclach</who>
    <bug_when>2006-07-23 09:30:19 -0700</bug_when>
    <thetext>There is a patch for this attached to bug 8425</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50676</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-07-24 10:23:25 -0700</bug_when>
    <thetext>Fixed by a patch in bug 8425.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>7745</attachid>
            <date>2006-04-16 10:37:10 -0700</date>
            <delta_ts>2006-04-16 10:37:10 -0700</delta_ts>
            <desc>reduction</desc>
            <filename>yastgame.svg</filename>
            <type>image/svg+xml</type>
            <size>1274</size>
            <attacher name="Alexander Kellett">a</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8
IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3
LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPg0KPHN2ZyB4bWxucz0iaHR0
cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8x
OTk5L3hsaW5rIiBvbmxvYWQ9ImluaXQoKSI+DQo8c2NyaXB0Pg0KZnVuY3Rpb24gaW5pdCgpIHsN
CiAgIHZhciBidXR0b24gPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgic3RhcnRidXQiKTsNCiAg
IGJ1dHRvbi5zZXRBdHRyaWJ1dGUoIm9wYWNpdHkiLCAiMC41Iik7DQp9DQo8L3NjcmlwdD4NCjxk
ZWZzPg0KICAgIDxsaW5lYXJHcmFkaWVudCBpZD0iYm90dG9taGlnaCIgeDE9IjAuMCIgeTE9IjAu
MCIgeDI9IjAuMCIgeTI9IjEuMCI+DQogICAgICAgIDxzdG9wIG9mZnNldD0iMC4yIiBzdG9wLWNv
bG9yPSIjZmZmZmZmIiBzdG9wLW9wYWNpdHk9IjAuMCIvPiA8IS0tIDAuMCAtLT4NCiAgICAgICAg
PHN0b3Agb2Zmc2V0PSIxLjAiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMC42
IiAvPiA8IS0tIDAuNiAtLT4NCiAgICA8L2xpbmVhckdyYWRpZW50Pg0KICAgIDxmaWx0ZXIgaWQ9
ImdibHVyIj4NCiAgICAgICAgPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMiIgLz4NCiAg
ICA8L2ZpbHRlcj4NCiAgICA8cmVjdCBpZD0iYnV0dCIgeD0iMCIgeT0iMCIgd2lkdGg9Ijg3IiBo
ZWlnaHQ9IjQwIiByeD0iMjUiIHJ5PSIyNSIgDQogICAgICAgICAgICBmaWxsPSJpbmhlcml0IiBz
dHJva2U9Im5vbmUiIC8+DQogICAgPGcgaWQ9ImJ1dHRvbiI+DQogICAgICAgIDx1c2UgdHJhbnNm
b3JtPSJzY2FsZSgwLjgsMC40NSkgdHJhbnNsYXRlKDEyLDQ1KSIgeGxpbms6aHJlZj0iI2J1dHQi
IGZpbGw9ImJsYWNrIiBmaWx0ZXI9InVybCgjZ2JsdXIpIi8+IA0KICAgIDwvZz4NCjwvZGVmcz4N
Cg0KPGcgaWQ9ImJ1dHRvbnNwYW5lbCI+DQogICA8ZyBpZD0ic3RhcnRidXQiPg0KICAgICAgPHVz
ZSBpZD0ic3RhcnRidXRfdXNlIiB4bGluazpocmVmPSIjYnV0dG9uIiB4PSIwIiB5PSIwIiB3aWR0
aD0iMTAwIiBoZWlnaHQ9IjUwIiAvPg0KICAgICAgPHRleHQgaWQ9InN0YXJ0bGFiZWwiIHg9IjI0
IiB5PSIyOCIgZm9udC1zaXplPSIxOCIgZmlsbD0ieWVsbG93Ij5TdGFydDwvdGV4dD4NCiAgIDwv
Zz4NCjwvZz4NCg0KPC9zdmc+DQo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>8132</attachid>
            <date>2006-05-06 00:52:16 -0700</date>
            <delta_ts>2006-05-06 00:52:16 -0700</delta_ts>
            <desc>More reduced test case</desc>
            <filename>testcase2.svg</filename>
            <type>image/svg+xml</type>
            <size>492</size>
            <attacher>jonathanjohnsson</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8
IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3
LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPg0KPHN2ZyB4bWxucz0iaHR0
cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8x
OTk5L3hsaW5rIiA+DQo8ZmlsdGVyIGlkPSJnYmx1ciI+DQogICAgPGZlR2F1c3NpYW5CbHVyIC8+
DQo8L2ZpbHRlcj4NCjxnIGlkPSJzdGFydGJ1dCIgb3BhY2l0eT0iMC41Ij4NCiAgICA8Zz4NCiAg
ICAgICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9Ijg3IiBoZWlnaHQ9IjQwIiAgZmlsdGVyPSJ1
cmwoI2dibHVyKSIgLz4NCiAgICA8L2c+DQogICAgPHRleHQgIHg9IjI0IiB5PSIyOCIgZmlsbD0i
eWVsbG93Ij5TdGFydDwvdGV4dD4NCjwvZz4NCjwvc3ZnPg0K
</data>

          </attachment>
      

    </bug>

</bugzilla>