<?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>69293</bug_id>
          
          <creation_ts>2011-10-03 14:51:44 -0700</creation_ts>
          <short_desc>JSC ASSERT Opening the Web Inspector</short_desc>
          <delta_ts>2011-10-03 18:36:31 -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>JavaScriptCore</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>barraclough</cc>
    
    <cc>fpizlo</cc>
    
    <cc>joepeck</cc>
    
    <cc>oliver</cc>
    
    <cc>sam</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>477257</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2011-10-03 14:51:44 -0700</bug_when>
    <thetext>ASSERT added in r96527 &lt;trac.webkit.org/r96527&gt;:
&lt;http://webkit.org/b/69235&gt; DFG should speculate more aggressively on obvious cases on polymorphic get_by_id

On ToT r96537 I&apos;m seeing the following ASSERT when opening the web inspector:

    ASSERTION FAILED: !contains(structure)
    /Volumes/Data/Code/webkit-open-source/Source/JavaScriptCore/dfg/DFGStructureSet.h(48) : void JSC::DFG::StructureSet::add(JSC::Structure *)
    1   JSC::DFG::StructureSet::add(JSC::Structure*)
    2   JSC::DFG::ByteCodeParser::parseBlock(unsigned int)
    3   JSC::DFG::ByteCodeParser::parse()
    4   JSC::DFG::parse(JSC::DFG::Graph&amp;, JSC::JSGlobalData*, JSC::CodeBlock*)
    5   JSC::DFG::compile(JSC::DFG::CompileMode, JSC::ExecState*, JSC::ExecState*, JSC::CodeBlock*, JSC::JITCode&amp;, JSC::MacroAssemblerCodePtr*)
    6   JSC::DFG::tryCompileFunction(JSC::ExecState*, JSC::ExecState*, JSC::CodeBlock*, JSC::JITCode&amp;, JSC::MacroAssemblerCodePtr&amp;)
    7   JSC::FunctionExecutable::compileForCallInternal(JSC::ExecState*, JSC::ScopeChainNode*, JSC::ExecState*, JSC::JITCode::JITType)
    8   JSC::FunctionExecutable::compileOptimizedForCall(JSC::ExecState*, JSC::ScopeChainNode*, JSC::ExecState*)
    9   JSC::FunctionExecutable::compileOptimizedFor(JSC::ExecState*, JSC::ScopeChainNode*, JSC::CodeSpecializationKind)
    10  JSC::FunctionCodeBlock::compileOptimized(JSC::ExecState*, JSC::ScopeChainNode*)
    11  cti_optimize_from_ret
    12  jscGeneratedNativeCode
    13  JSC::JITCode::execute(JSC::RegisterFile*, JSC::ExecState*, JSC::JSGlobalData*)
    14  JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)
    15  JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)
    16  JSC::JSObject::put(JSC::ExecState*, JSC::Identifier const&amp;, JSC::JSValue, JSC::PutPropertySlot&amp;)
    17  JSC::JSValue::put(JSC::ExecState*, JSC::Identifier const&amp;, JSC::JSValue, JSC::PutPropertySlot&amp;)
    18  cti_op_put_by_id_generic
    19  jscGeneratedNativeCode
    20  JSC::JITCode::execute(JSC::RegisterFile*, JSC::ExecState*, JSC::JSGlobalData*)
    21  JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)
    22  JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)
    23  JSC::JSObject::put(JSC::ExecState*, JSC::Identifier const&amp;, JSC::JSValue, JSC::PutPropertySlot&amp;)
    24  JSC::JSValue::put(JSC::ExecState*, JSC::Identifier const&amp;, JSC::JSValue, JSC::PutPropertySlot&amp;)
    25  cti_op_put_by_id
    26  jscGeneratedNativeCode
    27  JSC::JITCode::execute(JSC::RegisterFile*, JSC::ExecState*, JSC::JSGlobalData*)
    28  JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)
    29  JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)
    30  WebCore::JSMainThreadExecState::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)
    31  WebCore::ScheduledAction::executeFunctionInContext(JSC::JSGlobalObject*, JSC::JSValue, WebCore::ScriptExecutionContext*)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>477270</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2011-10-03 15:03:49 -0700</bug_when>
    <thetext>I am also seeing this when running the tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>477277</commentid>
    <comment_count>2</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-10-03 15:14:55 -0700</bug_when>
    <thetext>I&apos;m on it...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>477371</commentid>
    <comment_count>3</comment_count>
      <attachid>109559</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-10-03 17:27:23 -0700</bug_when>
    <thetext>Created attachment 109559
the patch

This fixes the test regressions, and the Web Inspector works for me, with this fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>477395</commentid>
    <comment_count>4</comment_count>
      <attachid>109559</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-10-03 18:36:27 -0700</bug_when>
    <thetext>Comment on attachment 109559
the patch

Clearing flags on attachment: 109559

Committed r96564: &lt;http://trac.webkit.org/changeset/96564&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>477396</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-10-03 18:36:31 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>109559</attachid>
            <date>2011-10-03 17:27:23 -0700</date>
            <delta_ts>2011-10-03 18:36:26 -0700</delta_ts>
            <desc>the patch</desc>
            <filename>fixwebinspector_patch_1.diff</filename>
            <type>text/plain</type>
            <size>1446</size>
            <attacher name="Filip Pizlo">fpizlo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gOTY1NjApCisrKyBTb3VyY2Uv
SmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTYgQEAK
KzIwMTEtMTAtMDMgIEZpbGlwIFBpemxvICA8ZnBpemxvQGFwcGxlLmNvbT4KKworICA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AgICAgICAgICAgIFN0cnVjdHVyZSogc3RydWN0dXJlID0gbGlzdC0+bGlz
dFtpXS5iYXNlLmdldCgpOworICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHN0cnVjdHVyZVNl
dC5jb250YWlucyhzdHJ1Y3R1cmUpKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRp
bnVlOworICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICBz
aXplX3QgbXlPZmZzZXQgPSBzdHJ1Y3R1cmUtPmdldCgqbV9nbG9iYWxEYXRhLCBpZGVudGlmaWVy
KTsKICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICBpZiAobXlP
ZmZzZXQgPT0gbm90Rm91bmQpIHsK
</data>

          </attachment>
      

    </bug>

</bugzilla>