<?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>110546</bug_id>
          
          <creation_ts>2013-02-21 19:42:42 -0800</creation_ts>
          <short_desc>ASSERTION FAILED: m_tokenizer.isInDataState() in WebCore::HTMLDocumentParser::pumpTokenizer</short_desc>
          <delta_ts>2023-02-22 15:22:45 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Tony Gentilcore">tonyg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>dino</cc>
    
    <cc>eric</cc>
    
    <cc>kadam</cc>
    
    <cc>rhodovan.u-szeged</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>839153</commentid>
    <comment_count>0</comment_count>
      <attachid>189664</attachid>
    <who name="Tony Gentilcore">tonyg</who>
    <bug_when>2013-02-21 19:42:42 -0800</bug_when>
    <thetext>Created attachment 189664
Test case

Write half of an entity and a beforeload handler and the other half in the script itself. See test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>839724</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-02-22 10:41:07 -0800</bug_when>
    <thetext>I assume this affects both the main thread parser and the background parser?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>839728</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2013-02-22 10:48:07 -0800</bug_when>
    <thetext>Yeah.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>847867</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2013-03-05 11:41:59 -0800</bug_when>
    <thetext>*** Bug 111449 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849409</commentid>
    <comment_count>4</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2013-03-06 16:07:01 -0800</bug_when>
    <thetext>From the dupe &quot;The appropriate thing is to mark the test as expected to crash until we fix that bug.&quot;

Really? This is causing a crash on four ports. It seems like we should rollout
https://bugs.webkit.org/show_bug.cgi?id=111365
http://trac.webkit.org/changeset/144714

rather than wait for a fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849414</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-06 16:09:40 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; From the dupe &quot;The appropriate thing is to mark the test as expected to crash until we fix that bug.&quot;
&gt; 
&gt; Really? This is causing a crash on four ports. It seems like we should rollout
&gt; https://bugs.webkit.org/show_bug.cgi?id=111365
&gt; http://trac.webkit.org/changeset/144714
&gt; 
&gt; rather than wait for a fix.

That change just added a test for this which was a known bug already.  As noted in comment 2, this was an existing bug in the main-thread parser.  We shouldn&apos;t have added a test w/o updating the Debug expectations to expect the ASSERT. :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849422</commentid>
    <comment_count>6</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2013-03-06 16:16:02 -0800</bug_when>
    <thetext>(In reply to comment #5)

&gt; That change just added a test for this which was a known bug already.  As noted in comment 2, this was an existing bug in the main-thread parser.  We shouldn&apos;t have added a test w/o updating the Debug expectations to expect the ASSERT. :(

Got it. I added it to the Mac expectations https://trac.webkit.org/r144996

(I should learn how to do it for all debug builds)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849439</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-06 16:30:32 -0800</bug_when>
    <thetext>webkit.org/b/110546 [ Debug ] fast/parser/document-write-fighting-eof.html [ Crash ] 

Is probably the line we should have added to LayoutTests/TestExpectations</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>849440</commentid>
    <comment_count>8</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-06 16:30:51 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; webkit.org/b/110546 [ Debug ] fast/parser/document-write-fighting-eof.html [ Crash ] 
&gt; 
&gt; Is probably the line we should have added to LayoutTests/TestExpectations

Again, apologies for the disruption.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853093</commentid>
    <comment_count>9</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-11 23:01:41 -0700</bug_when>
    <thetext>I happened to fix this for the threaded parser as part of bug 112069.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>854066</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-03-12 22:52:52 -0700</bug_when>
    <thetext>*** Bug 112216 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>854423</commentid>
    <comment_count>11</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2013-03-13 11:18:20 -0700</bug_when>
    <thetext>This assertion is continually happening on the bots. For that reason, it should be fixed or removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>854447</commentid>
    <comment_count>12</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2013-03-13 11:55:15 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; This assertion is continually happening on the bots. For that reason, it should be fixed or removed.

My understanding is that this ASSERT is hit by one test.  I would recommend marking the test as expected to crash in DEBUG.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>854461</commentid>
    <comment_count>13</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-13 12:13:22 -0700</bug_when>
    <thetext>http://trac.webkit.org/browser/trunk/LayoutTests/fast/parser/document-write-fighting-eof.html
Should be the only test to hit this ASSERT.
There is a second test which will be added in bug 112069.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>854497</commentid>
    <comment_count>14</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2013-03-13 12:48:50 -0700</bug_when>
    <thetext>Making the test an expected CRASH doesn&apos;t avoid the test bot slowdown associated with generating a crash log, which is what I&apos;m trying to avoid. Perhaps I should just skip the test in debug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>854643</commentid>
    <comment_count>15</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-13 14:35:34 -0700</bug_when>
    <thetext>(In reply to comment #14)
&gt; Making the test an expected CRASH doesn&apos;t avoid the test bot slowdown associated with generating a crash log, which is what I&apos;m trying to avoid. Perhaps I should just skip the test in debug.

Sorry, I forgot about how slow CrashReporter can be.  You&apos;re right, many platforms probably just want to Skip tests which are expected to Crash.  We can just mark these as Skip in debug, that seems fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1173669</commentid>
    <comment_count>16</comment_count>
    <who name="Renata Hodovan">rhodovan.u-szeged</who>
    <bug_when>2016-03-11 02:08:16 -0800</bug_when>
    <thetext>*** Bug 135599 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1935993</commentid>
    <comment_count>17</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-02-22 15:22:45 -0800</bug_when>
    <thetext>I am not able to reproduce this assert failure in WebKit ToT build of 260689@main using MiniBrowser WK2 window.

Do we need to track it further?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>189664</attachid>
            <date>2013-02-21 19:42:42 -0800</date>
            <delta_ts>2013-02-21 19:42:42 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>write-entity-before-load.html</filename>
            <type>text/html</type>
            <size>185</size>
            <attacher name="Tony Gentilcore">tonyg</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KaWYgKHdpbmRvdy50ZXN0UnVubmVyKQogICAgdGVzdFJ1bm5lci5kdW1wQXNUZXh0
KCk7Cjwvc2NyaXB0PgoKPHNjcmlwdAogICAgb25iZWZvcmVsb2FkPSJkb2N1bWVudC53cml0ZSgn
JnF1JykiCiAgICBzcmM9ImRhdGE6dGV4dC9qYXZhc2NyaXB0LGRvY3VtZW50LndyaXRlKCdvdDsn
KSI+Cjwvc2NyaXB0Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>