<?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>69556</bug_id>
          
          <creation_ts>2011-10-06 13:43:24 -0700</creation_ts>
          <short_desc>REGRESSION (r96595): First frame in assertion backtraces is no longer labeled &quot;1&quot;</short_desc>
          <delta_ts>2011-10-06 16:01:17 -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>Web Template Framework</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Gavin Peters">gavinp</assigned_to>
          <cc>darin</cc>
    
    <cc>gavinp</cc>
    
    <cc>mitz</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>479428</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-10-06 13:43:24 -0700</bug_when>
    <thetext>Here&apos;s an assertion backtrace I got today:


ASSERTION FAILED: !structure-&gt;m_previous
Source/JavaScriptCore/runtime/Structure.cpp(236) : void JSC::Structure::materializePropertyMap(JSC::JSGlobalData &amp;)
2   0x10203207c JSC::Structure::materializePropertyMap(JSC::JSGlobalData&amp;)
3   0x101e0903c JSC::Structure::materializePropertyMapIfNecessary(JSC::JSGlobalData&amp;)
4   0x101e08e93 JSC::Structure::get(JSC::JSGlobalData&amp;, JSC::Identifier const&amp;)
5   0x101e8a984 JSC::DFG::ByteCodeParser::parseBlock(unsigned int)
6   0x101e8d70d JSC::DFG::ByteCodeParser::parse()
7   0x101e8d913 JSC::DFG::parse(JSC::DFG::Graph&amp;, JSC::JSGlobalData*, JSC::CodeBlock*)
8   0x101df4d9f JSC::DFG::compile(JSC::DFG::CompileMode, JSC::ExecState*, JSC::ExecState*, JSC::CodeBlock*, JSC::JITCode&amp;, JSC::MacroAssemblerCodePtr*)
9   0x101df4d3c JSC::DFG::tryCompileFunction(JSC::ExecState*, JSC::ExecState*, JSC::CodeBlock*, JSC::JITCode&amp;, JSC::MacroAssemblerCodePtr&amp;)
10  0x101ecf743 JSC::FunctionExecutable::compileForCallInternal(JSC::ExecState*, JSC::ScopeChainNode*, JSC::ExecState*, JSC::JITCode::JITType)
11  0x101ecee9b JSC::FunctionExecutable::compileOptimizedForCall(JSC::ExecState*, JSC::ScopeChainNode*, JSC::ExecState*)
12  0x101e650fb JSC::FunctionExecutable::compileOptimizedFor(JSC::ExecState*, JSC::ScopeChainNode*, JSC::CodeSpecializationKind)
13  0x101e624b4 JSC::FunctionCodeBlock::compileOptimized(JSC::ExecState*, JSC::ScopeChainNode*)
14  0x101f1c4fb cti_optimize_from_ret
15  0x101f25f20 jscGeneratedNativeCode
16  0x101eeb509 JSC::JITCode::execute(JSC::RegisterFile*, JSC::ExecState*, JSC::JSGlobalData*)
17  0x101ee78b0 JSC::Interpreter::execute(JSC::ProgramExecutable*, JSC::ExecState*, JSC::ScopeChainNode*, JSC::JSObject*)
18  0x101e70fba JSC::evaluate(JSC::ExecState*, JSC::ScopeChainNode*, JSC::SourceCode const&amp;, JSC::JSValue, JSC::JSValue*)
19  0x10326106d WebCore::JSMainThreadExecState::evaluate(JSC::ExecState*, JSC::ScopeChainNode*, JSC::SourceCode const&amp;, JSC::JSValue, JSC::JSValue*)
20  0x10387c51c WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&amp;, WebCore::DOMWrapperWorld*)
21  0x10387c644 WebCore::ScriptController::evaluate(WebCore::ScriptSourceCode const&amp;)
22  0x103890372 WebCore::ScriptElement::executeScript(WebCore::ScriptSourceCode const&amp;)
23  0x10388f49f WebCore::ScriptElement::prepareScript(WTF::TextPosition const&amp;, WebCore::ScriptElement::LegacyTypeSupport)
24  0x102ed1c34 WebCore::HTMLScriptRunner::runScript(WebCore::Element*, WTF::TextPosition const&amp;)
25  0x102ed1a07 WebCore::HTMLScriptRunner::execute(WTF::PassRefPtr&lt;WebCore::Element&gt;, WTF::TextPosition const&amp;)
26  0x102e63320 WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder()
27  0x102e6340b WebCore::HTMLDocumentParser::canTakeNextToken(WebCore::HTMLDocumentParser::SynchronousMode, WebCore::PumpSession&amp;)
28  0x102e62d48 WebCore::HTMLDocumentParser::pumpTokenizer(WebCore::HTMLDocumentParser::SynchronousMode)
29  0x102e629b0 WebCore::HTMLDocumentParser::pumpTokenizerIfPossible(WebCore::HTMLDocumentParser::SynchronousMode)
30  0x102e63d44 WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution()
31  0x102e64387 WebCore::HTMLDocumentParser::executeScriptsWaitingForStylesheets()
32  0x102afbb62 WebCore::Document::removePendingSheet()

Note that the first frame is labeled &quot;2&quot;. It used to be labeled &quot;1&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>479520</commentid>
    <comment_count>1</comment_count>
      <attachid>110033</attachid>
    <who name="Gavin Peters">gavinp</who>
    <bug_when>2011-10-06 14:55:28 -0700</bug_when>
    <thetext>Created attachment 110033
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>479524</commentid>
    <comment_count>2</comment_count>
      <attachid>110033</attachid>
    <who name="Gavin Peters">gavinp</who>
    <bug_when>2011-10-06 14:57:53 -0700</bug_when>
    <thetext>Comment on attachment 110033
Patch

I discussed this with gbarra, and we think also that there&apos;s some formatting changes that would benefit here.  I&apos;ll add those in a separate CL so they can be debated without fixing these regressions.  This fix was tested by adding some superfluous dump to some html elements, and running DumpRenderTree, and it is working for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>479531</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2011-10-06 15:01:08 -0700</bug_when>
    <thetext>I think it would be better to fix the long-standing bug (which I’d introduced) where the numbering starts at 1. It really ought to start at 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>479532</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2011-10-06 15:01:38 -0700</bug_when>
    <thetext>(The reason to start at 0 is that it would match other backtrace formats).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>479545</commentid>
    <comment_count>5</comment_count>
    <who name="Gavin Peters">gavinp</who>
    <bug_when>2011-10-06 15:19:59 -0700</bug_when>
    <thetext>mitz, I&apos;ll CC you on the upcoming bigger-changes-to-formatting CL.  You will be interested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>479588</commentid>
    <comment_count>6</comment_count>
      <attachid>110033</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-10-06 16:01:13 -0700</bug_when>
    <thetext>Comment on attachment 110033
Patch

Clearing flags on attachment: 110033

Committed r96869: &lt;http://trac.webkit.org/changeset/96869&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>479589</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-10-06 16:01:17 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>110033</attachid>
            <date>2011-10-06 14:55:28 -0700</date>
            <delta_ts>2011-10-06 16:01:13 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-69556-20111006175527.patch</filename>
            <type>text/plain</type>
            <size>1649</size>
            <attacher name="Gavin Peters">gavinp</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogOTY4MTMKZGlmZiAtLWdpdCBhL1NvdXJjZS9KYXZhU2NyaXB0
Q29yZS9DaGFuZ2VMb2cgYi9Tb3VyY2UvSmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCmluZGV4IGYy
NDU3NzUxMmU4ODJiNjZlZTdiOWFmNjZkNjlmN2FhMThkMmFlN2EuLmQyMThhNjkxZjkwMjVjOThi
MmM5MzI4ZmIwOGU5YWYwZGEzMzdjMmEgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9KYXZhU2NyaXB0Q29y
ZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwpAQCAtMSw1
ICsxLDE0IEBACiAyMDExLTEwLTA2ICBHYXZpbiBQZXRlcnMgIDxnYXZpbnBAY2hyb21pdW0ub3Jn
PgogCisgICAgICAgIFJFR1JFU1NJT04gKHI5NjU5NSk6IEZpcnN0IGZyYW1lIGluIGFzc2VydGlv
biBiYWNrdHJhY2VzIGlzIG5vIGxvbmdlciBsYWJlbGVkICIxIgorICAgICAgICBodHRwczovL2J1
Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9Njk1NTYKKworICAgICAgICBSZXZpZXdlZCBi
eSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICAqIHd0Zi9Bc3NlcnRpb25zLmNwcDoKKworMjAx
MS0xMC0wNiAgR2F2aW4gUGV0ZXJzICA8Z2F2aW5wQGNocm9taXVtLm9yZz4KKwogICAgICAgICBl
eHBvcnQgbmV3IHN0YWNrIGR1bXBpbmcgbWV0aG9kCiAgICAgICAgIGh0dHBzOi8vYnVncy53ZWJr
aXQub3JnL3Nob3dfYnVnLmNnaT9pZD02OTAxOAogCmRpZmYgLS1naXQgYS9Tb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