<?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>52013</bug_id>
          
          <creation_ts>2011-01-06 13:35:56 -0800</creation_ts>
          <short_desc>REGRESSION (r74663): ASSERTION FAILED: m_tokenizer-&gt;lineNumber() == line.zeroBasedInt()</short_desc>
          <delta_ts>2011-01-06 23:18:12 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.macnn.com</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar, Regression</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>51311</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>aestes</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>joone</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tonyg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>330382</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-01-06 13:35:56 -0800</bug_when>
    <thetext>When I load http://www.macnn.com, I this this assertion:
ASSERTION FAILED: m_tokenizer-&gt;lineNumber() == line.zeroBasedInt() 

at

(gdb) bt
#0  0x00000001033d6fc8 in WebCore::HTMLDocumentParser::textPosition (this=0x12c89b000) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/html/parser/HTMLDocumentParser.cpp:413
#1  0x0000000103445bcd in WebCore::HTMLTreeBuilder::processScriptStartTag (this=0x10b3a6db0, token=@0x7fff5fbfd580) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/html/parser/HTMLTreeBuilder.cpp:2780
#2  0x000000010344e6d2 in WebCore::HTMLTreeBuilder::processStartTagForInHead (this=0x10b3a6db0, token=@0x7fff5fbfd580) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/html/parser/HTMLTreeBuilder.cpp:2743
#3  0x000000010344f4c2 in WebCore::HTMLTreeBuilder::processStartTagForInBody (this=0x10b3a6db0, token=@0x7fff5fbfd580) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/html/parser/HTMLTreeBuilder.cpp:733
#4  0x0000000103448521 in WebCore::HTMLTreeBuilder::processStartTag (this=0x10b3a6db0, token=@0x7fff5fbfd580) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/html/parser/HTMLTreeBuilder.cpp:1212
#5  0x0000000103447d55 in WebCore::HTMLTreeBuilder::processToken (this=0x10b3a6db0, token=@0x7fff5fbfd580) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/html/parser/HTMLTreeBuilder.cpp:471
#6  0x000000010345115c in WebCore::HTMLTreeBuilder::constructTreeFromAtomicToken (this=0x10b3a6db0, token=@0x7fff5fbfd580) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/html/parser/HTMLTreeBuilder.cpp:452
#7  0x0000000103451236 in WebCore::HTMLTreeBuilder::constructTreeFromToken (this=0x10b3a6db0, rawToken=@0x12c89b0b0) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/html/parser/HTMLTreeBuilder.cpp:447
#8  0x00000001033d7621 in WebCore::HTMLDocumentParser::pumpTokenizer (this=0x12c89b000, mode=WebCore::HTMLDocumentParser::AllowYield) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/html/parser/HTMLDocumentParser.cpp:232
#9  0x00000001033d7938 in WebCore::HTMLDocumentParser::pumpTokenizerIfPossible (this=0x12c89b000, mode=WebCore::HTMLDocumentParser::AllowYield) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/html/parser/HTMLDocumentParser.cpp:169
#10 0x00000001033d79ef in WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution (this=0x12c89b000) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/html/parser/HTMLDocumentParser.cpp:429
#11 0x00000001033d7d19 in WebCore::HTMLDocumentParser::notifyFinished (this=0x12c89b000, cachedResource=0x130469460) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/html/parser/HTMLDocumentParser.cpp:474
#12 0x0000000102ffa0c0 in WebCore::CachedScript::checkNotify (this=0x130469460) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/loader/cache/CachedScript.cpp:100
#13 0x0000000102ffa1d2 in WebCore::CachedScript::data (this=0x130469460, data=@0x7fff5fbfd760, allDataReceived=true) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/loader/cache/CachedScript.cpp:90
#14 0x0000000102ff919f in WebCore::CachedResourceRequest::didFinishLoading (this=0x13049c250, loader=0x13049ae50) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/loader/cache/CachedResourceRequest.cpp:159
#15 0x0000000103ae0086 in WebCore::SubresourceLoader::didFinishLoading (this=0x13049ae50, finishTime=0) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/loader/SubresourceLoader.cpp:181
#16 0x0000000103a22eb4 in WebCore::ResourceLoader::didFinishLoading (this=0x13049ae50, finishTime=0) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/loader/ResourceLoader.cpp:437
#17 0x0000000103a1e341 in -[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:] (self=0x130491aa0, _cmd=0x7fff87d54b96, connection=0x130498a60) at /Volumes/InternalData/Development/webkit/OpenSource/WebCore/platform/network/mac/ResourceHandleMac.mm:924
#18 0x00007fff87c2e728 in _NSURLConnectionDidFinishLoading ()
#19 0x00007fff81edb2ac in URLConnectionClient::_clientDidFinishLoading ()
#20 0x00007fff81f409c6 in URLConnectionClient::ClientConnectionEventQueue::processAllEventsAndConsumePayload ()
#21 0x00007fff81f40c32 in URLConnectionClient::ClientConnectionEventQueue::processAllEventsAndConsumePayload ()
#22 0x00007fff81ec7979 in URLConnectionClient::processEvents ()
#23 0x00007fff81ec7754 in MultiplexerSource::perform ()
#24 0x00007fff804b2401 in __CFRunLoopDoSources0 ()
#25 0x00007fff804b05f9 in __CFRunLoopRun ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330499</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-01-06 15:31:46 -0800</bug_when>
    <thetext>I has the repro.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330537</commentid>
    <comment_count>2</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-01-06 16:29:03 -0800</bug_when>
    <thetext>*** Bug 52033 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330538</commentid>
    <comment_count>3</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2011-01-06 16:30:08 -0800</bug_when>
    <thetext>&lt;rdar://problem/8821575&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330550</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-01-06 16:47:18 -0800</bug_when>
    <thetext>I&apos;ve reproed the wikipedia version too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330570</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-01-06 17:28:22 -0800</bug_when>
    <thetext>Reduced test case:

&lt;script&gt;document.writeln(&quot;\n&quot;);
&lt;/script&gt;&lt;script&gt;&lt;/script&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330572</commentid>
    <comment_count>6</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-01-06 17:36:53 -0800</bug_when>
    <thetext>&lt;script&gt;document.writeln(&quot;\n&quot;);
document.writeln(&quot;\n&quot;);
document.writeln(&quot;\n&quot;);
document.writeln(&quot;\n&quot;);
document.writeln(&quot;\n&quot;);
document.writeln(&quot;\n&quot;);
document.writeln(&quot;\n&quot;);
&lt;/script&gt;&lt;script&gt;&lt;/script&gt;

makes the line numbers off by arbitrary amounts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330574</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-01-06 17:44:11 -0800</bug_when>
    <thetext>Someone fingered this as the commit that caused it: http://trac.webkit.org/changeset/74663</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330575</commentid>
    <comment_count>8</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-01-06 17:49:17 -0800</bug_when>
    <thetext>Yep.  I think I see the bug.  Building/testing fix now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330582</commentid>
    <comment_count>9</comment_count>
      <attachid>78194</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-01-06 17:56:51 -0800</bug_when>
    <thetext>Created attachment 78194
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330639</commentid>
    <comment_count>10</comment_count>
      <attachid>78194</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-01-06 21:14:44 -0800</bug_when>
    <thetext>Comment on attachment 78194
Patch

Clearing flags on attachment: 78194

Committed r75228: &lt;http://trac.webkit.org/changeset/75228&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330640</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-01-06 21:14:51 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>78194</attachid>
            <date>2011-01-06 17:56:51 -0800</date>
            <delta_ts>2011-01-06 21:14:44 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-52013-20110106175650.patch</filename>
            <type>text/plain</type>
            <size>3334</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA3NTIxNSkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTggQEAKKzIwMTEtMDEtMDYgIEFkYW0gQmFydGggIDxhYmFydGhAd2Via2l0Lm9y
Zz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBSRUdS
RVNTSU9OIChyNzQ2NjMpOiBBU1NFUlRJT04gRkFJTEVEOiBtX3Rva2VuaXplci0+bGluZU51bWJl
cigpID09IGxpbmUuemVyb0Jhc2VkSW50KCkKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5v
cmcvc2hvd19idWcuY2dpP2lkPTUyMDEzCisKKyAgICAgICAgV2hlbiBleGNsdWRpbmcgbGluZSBu
dW1iZXJzIGZvciBjb21wb3NpdGUgc3RyaW5ncywgd2UgZm9yZ290IHRvIGV4Y2x1ZGUKKyAgICAg
ICAgdGhlIGxpbmUgbnVtYmVyIGZvciB0aGUgY3VycmVudCBzdHJpbmchCisKKyAgICAgICAgVGVz
dDogZmFzdC9wYXJzZXIvbGluZS1udW1iZXItY29tcG9zaXRlLXNlZ21lbnRlZC1zdHJpbmcuaHRt
bAorCisgICAgICAgICogcGxhdGZ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b24gMCkKQEAgLTAsMCArMSw3IEBACis8c2NyaXB0
PmRvY3VtZW50LndyaXRlbG4oIlxuIik7Cis8L3NjcmlwdD48c2NyaXB0Pjwvc2NyaXB0PgorVGhp
cyB0ZXN0IHBhc3NlcyBpZiBpdCBkb2Vzbid0IHRyaWdnZXIgYW4gQVNTRVJULgorPHNjcmlwdD4K
K2lmICh3aW5kb3cubGF5b3V0VGVzdENvbnRyb2xsZXIpCisgICAgbGF5b3V0VGVzdENvbnRyb2xs
ZXIuZHVtcEFzVGV4dCgpOworPC9zY3JpcHQ+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>