<?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>111613</bug_id>
          
          <creation_ts>2013-03-06 12:28:25 -0800</creation_ts>
          <short_desc>REGRESSION: Intermittent crash in SpeechSynthesis::didFinishSpeaking</short_desc>
          <delta_ts>2014-04-29 12:23:58 -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>Accessibility</component>
          <version>528+ (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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="chris fleizach">cfleizach</assigned_to>
          <cc>ap</cc>
    
    <cc>cfleizach</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dmazzoni</cc>
    
    <cc>mark.lam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>849183</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-03-06 12:28:25 -0800</bug_when>
    <thetext>CRASHING TEST: platform/mac/fast/speechsynthesis/speech-synthesis-cancel.html

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebCore             	0x0000000101952a64 WebCore::SpeechSynthesis::didFinishSpeaking(WebCore::PlatformSpeechSynthesisUtterance const*) + 4 (PlatformSpeechSynthesisUtterance.h:71)
1   libWebCoreTestSupport.dylib   	0x0000000100a03937 WebCore::PlatformSpeechSynthesizerMock::speakingFinished(WebCore::Timer&lt;WebCore::PlatformSpeechSynthesizerMock&gt;*) + 23 (PlatformSpeechSynthesizerMock.cpp:54)
2   com.apple.WebCore             	0x0000000101ab37ef WebCore::ThreadTimers::sharedTimerFiredInternal() + 175 (ThreadTimers.cpp:132)
3   com.apple.WebCore             	0x0000000101942423 WebCore::timerFired(__CFRunLoopTimer*, void*) + 51 (SharedTimerMac.mm:167)
4   com.apple.CoreFoundation      	0x00007fff92ac7da4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
5   com.apple.CoreFoundation      	0x00007fff92ac78bd __CFRunLoopDoTimer + 557
6   com.apple.CoreFoundation      	0x00007fff92aad099 __CFRunLoopRun + 1513
7   com.apple.CoreFoundation      	0x00007fff92aac6b2 CFRunLoopRunSpecific + 290
8   com.apple.Foundation          	0x00007fff87a8089e -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 268
9   DumpRenderTree                	0x000000010035a122 runTest(std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; const&amp;) + 1639 (DumpRenderTree.mm:1375)
10  DumpRenderTree                	0x00000001003598b6 dumpRenderTree(int, char const**) + 1727 (DumpRenderTree.mm:832)
11  DumpRenderTree                	0x000000010035a48b main + 86 (DumpRenderTree.mm:925)
12  libdyld.dylib                 	0x00007fff895837e1 start + 1

e.g.
http://build.webkit.org/results/Apple%20MountainLion%20Release%20WK1%20(Tests)/r144949%20(7620)/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849185</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-03-06 12:29:14 -0800</bug_when>
    <thetext>http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40ToT%20-%20webkit.org&amp;tests=platform%2Fmac%2Ffast%2Fspeechsynthesis%2Fspeech-synthesis-cancel.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849200</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-03-06 12:45:05 -0800</bug_when>
    <thetext>Added a flaky crash test expectation in http://trac.webkit.org/changeset/144965.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849838</commentid>
    <comment_count>3</comment_count>
      <attachid>191940</attachid>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2013-03-07 00:58:59 -0800</bug_when>
    <thetext>Created attachment 191940
patch

I don&apos;t think this will actually fix this, but I think it will help illuminate the problem. It does fix a similar problem when calling cancel.

I believe this problem only affects the mock synthesizer right now</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>851712</commentid>
    <comment_count>4</comment_count>
      <attachid>191940</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-03-08 22:01:45 -0800</bug_when>
    <thetext>Comment on attachment 191940
patch

rs=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>851719</commentid>
    <comment_count>5</comment_count>
      <attachid>191940</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-08 22:40:40 -0800</bug_when>
    <thetext>Comment on attachment 191940
patch

Clearing flags on attachment: 191940

Committed r145304: &lt;http://trac.webkit.org/changeset/145304&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>851720</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-08 22:40:43 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>851724</commentid>
    <comment_count>7</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2013-03-08 22:48:57 -0800</bug_when>
    <thetext>I don&apos;t think the problem is actually fixed so leaving this open to see if we hit some asserts that illuminate the problem more fully</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>854043</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2013-03-12 21:29:02 -0700</bug_when>
    <thetext>&lt;rdar://problem/13407093&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1004641</commentid>
    <comment_count>9</comment_count>
      <attachid>230305</attachid>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2014-04-28 10:34:59 -0700</bug_when>
    <thetext>Created attachment 230305
patch 2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1004691</commentid>
    <comment_count>10</comment_count>
      <attachid>230305</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2014-04-28 12:25:57 -0700</bug_when>
    <thetext>Comment on attachment 230305
patch 2

LGTM.  r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1004693</commentid>
    <comment_count>11</comment_count>
      <attachid>230305</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2014-04-28 12:30:16 -0700</bug_when>
    <thetext>Comment on attachment 230305
patch 2

View in context: https://bugs.webkit.org/attachment.cgi?id=230305&amp;action=review

&gt; Source/WebCore/ChangeLog:8
&gt; +        I think it&apos;s possible that didFinishSpeaking ends up calling directly back into start speaking, and the utterance reference

&quot;I think it&apos;s possible&quot;. Maybe verify that with assertions? Is it OK that this happens?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1004695</commentid>
    <comment_count>12</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2014-04-28 12:34:57 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; (From update of attachment 230305 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=230305&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:8
&gt; &gt; +        I think it&apos;s possible that didFinishSpeaking ends up calling directly back into start speaking, and the utterance reference
&gt; 
&gt; &quot;I think it&apos;s possible&quot;. Maybe verify that with assertions? Is it OK that this happens?

The assertion that Mark posted means that it definitely happens. My language is probably too cautious</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1004703</commentid>
    <comment_count>13</comment_count>
      <attachid>230305</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-04-28 12:57:53 -0700</bug_when>
    <thetext>Comment on attachment 230305
patch 2

Clearing flags on attachment: 230305

Committed r167899: &lt;http://trac.webkit.org/changeset/167899&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1004704</commentid>
    <comment_count>14</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-04-28 12:57:57 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1005053</commentid>
    <comment_count>15</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-04-29 12:23:58 -0700</bug_when>
    <thetext>Removed Crash/Pass expectation in &lt;http://trac.webkit.org/r167950&gt;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>191940</attachid>
            <date>2013-03-07 00:58:59 -0800</date>
            <delta_ts>2014-04-28 10:34:36 -0700</delta_ts>
            <desc>patch</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>2196</size>
            <attacher name="chris fleizach">cfleizach</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE0NTA0OCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDIy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Zvcm1TcGVlY2hT
eW50aGVzaXNVdHRlcmFuY2UmIHV0dGVyYW5jZSkKIHsKKyAgICBBU1NFUlQoIW1fdXR0ZXJhbmNl
KTsKICAgICBtX3V0dGVyYW5jZSA9ICZ1dHRlcmFuY2U7CiAgICAgY2xpZW50KCktPmRpZFN0YXJ0
U3BlYWtpbmcobV91dHRlcmFuY2UpOwogICAgIApAQCAtNzcsNiArNzksOSBAQAogICAgIAogdm9p
ZCBQbGF0Zm9ybVNwZWVjaFN5bnRoZXNpemVyTW9jazo6Y2FuY2VsKCkKIHsKKyAgICBpZiAoIW1f
dXR0ZXJhbmNlKQorICAgICAgICByZXR1cm47CisgICAgCiAgICAgbV9zcGVha2luZ0ZpbmlzaGVk
VGltZXIuc3RvcCgpOwogICAgIGNsaWVudCgpLT5zcGVha2luZ0Vycm9yT2NjdXJyZWQobV91dHRl
cmFuY2UpOwogICAgIG1fdXR0ZXJhbmNlID0gMDsK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>230305</attachid>
            <date>2014-04-28 10:34:59 -0700</date>
            <delta_ts>2014-04-28 12:57:53 -0700</delta_ts>
            <desc>patch 2</desc>
            <filename>patch2</filename>
            <type>text/plain</type>
            <size>1619</size>
            <attacher name="chris fleizach">cfleizach</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE2Nzg5MikKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBACisyMDE0LTA0LTI4ICBDaHJpcyBG
bGVpemFjaCAgPGNmbGVpemFjaEBhcHBsZS5jb20+CisKKyAgICAgICAgU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