<?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>215841</bug_id>
          
          <creation_ts>2020-08-26 00:37:53 -0700</creation_ts>
          <short_desc>DFG ASSERTION FAILED: m_value.isNumber() in DFGAbstractValue.cpp</short_desc>
          <delta_ts>2020-08-27 11:15:04 -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>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>215894</dup_id>
          
          <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>zhunkibatu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>fpizlo</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>saam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1682929</commentid>
    <comment_count>0</comment_count>
      <attachid>407279</attachid>
    <who name="">zhunkibatu</who>
    <bug_when>2020-08-26 00:37:53 -0700</bug_when>
    <thetext>Created attachment 407279
the minimal poc

The following test case cause a assersion failure in DFGAbstractValue.cpp:


function main() {
    let arr = [1.1];
    function opt() {
        (function (main = arr[0x1000]) {}())
    }
    for (var i = 0; i &lt; 0x1000; i++)
        opt(() =&gt; 0);
}

main();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683237</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-08-26 18:09:05 -0700</bug_when>
    <thetext>DFG ASSERTION FAILED: m_value.isNumber()
./dfg/DFGAbstractValue.cpp(133) : void JSC::DFG::AbstractValue::fixTypeForRepresentation(JSC::DFG::Graph &amp;, JSC::DFG::NodeFlags, JSC::DFG::Node *)
undefined
&gt;&gt;&gt; 1   0x105130839 WTFCrash
2   0x10675fdbb WTFCrashWithInfo(int, char const*, char const*, int)
3   0x105dd6532 JSC::DFG::AbstractValue::fixTypeForRepresentation(JSC::DFG::Graph&amp;, unsigned int, JSC::DFG::Node*)
4   0x105dd6b83 JSC::DFG::AbstractValue::fixTypeForRepresentation(JSC::DFG::Graph&amp;, JSC::DFG::Node*)
5   0x105390557 JSC::DFG::AbstractInterpreter&lt;JSC::DFG::InPlaceAbstractState&gt;::setBuiltInConstant(JSC::DFG::Node*, JSC::DFG::FrozenValue)
6   0x1053905dc JSC::DFG::AbstractInterpreter&lt;JSC::DFG::InPlaceAbstractState&gt;::setConstant(JSC::DFG::Node*, JSC::DFG::FrozenValue)
7   0x105393556 JSC::DFG::AbstractInterpreter&lt;JSC::DFG::InPlaceAbstractState&gt;::executeEffects(unsigned int, JSC::DFG::Node*)::&apos;lambda&apos;(JSC::DFG::Edge&amp;, JSC::DFG::Edge&amp;)::operator()(JSC::DFG::Edge&amp;, JSC::DFG::Edge&amp;) const
8   0x105385f83 JSC::DFG::AbstractInterpreter&lt;JSC::DFG::InPlaceAbstractState&gt;::executeEffects(unsigned int, JSC::DFG::Node*)
9   0x105e9316a JSC::DFG::AbstractInterpreter&lt;JSC::DFG::InPlaceAbstractState&gt;::execute(unsigned int)
10  0x105e916d6 JSC::DFG::CFAPhase::performBlockCFA(JSC::DFG::BasicBlock*)
11  0x105e91029 JSC::DFG::CFAPhase::performForwardCFA()
12  0x105e90cd6 JSC::DFG::CFAPhase::run()
13  0x105e907c4 bool JSC::DFG::runAndLog&lt;JSC::DFG::CFAPhase&gt;(JSC::DFG::CFAPhase&amp;)
14  0x105e5d7ab bool JSC::DFG::runPhase&lt;JSC::DFG::CFAPhase&gt;(JSC::DFG::Graph&amp;)
15  0x105e5d775 JSC::DFG::performCFA(JSC::DFG::Graph&amp;)
16  0x106168aa0 JSC::DFG::Plan::compileInThreadImpl()
17  0x106167348 JSC::DFG::Plan::compileInThread(JSC::DFG::ThreadData*)
18  0x1062236de JSC::DFG::Worklist::ThreadBody::work()
19  0x105145c73 WTF::AutomaticThread::start(WTF::AbstractLocker const&amp;)::$_0::operator()() const
20  0x10514587e WTF::Detail::CallableWrapper&lt;WTF::AutomaticThread::start(WTF::AbstractLocker const&amp;)::$_0, void&gt;::call()
21  0x1051578b2 WTF::Function&lt;void ()&gt;::operator()() const
22  0x1052055c8 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*)
23  0x105211568 WTF::wtfThreadEntryPoint(void*)
24  0x7fff6a51a109 _pthread_start
25  0x7fff6a515b8b thread_start
Segmentation fault: 11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683238</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-08-26 18:09:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/67841603&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1683438</commentid>
    <comment_count>3</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2020-08-27 11:15:04 -0700</bug_when>
    <thetext>Thanks for the report. Was actually just in the process of fixing this in 215894

*** This bug has been marked as a duplicate of bug 215894 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>407279</attachid>
            <date>2020-08-26 00:37:53 -0700</date>
            <delta_ts>2020-08-26 00:37:53 -0700</delta_ts>
            <desc>the minimal poc</desc>
            <filename>poc.js</filename>
            <type>text/javascript</type>
            <size>181</size>
            <attacher>zhunkibatu</attacher>
            
              <data encoding="base64">ZnVuY3Rpb24gbWFpbigpIHsKICAgIGxldCBhcnIgPSBbMS4xXTsKICAgIGZ1bmN0aW9uIG9wdCgp
IHsKICAgICAgICAoZnVuY3Rpb24gKG1haW4gPSBhcnJbMHgxMDAwXSkge30oKSkKICAgIH0KICAg
IGZvciAodmFyIGkgPSAwOyBpIDwgMHgxMDAwOyBpKyspCiAgICAgICAgb3B0KCgpID0+IDApOwp9
CgptYWluKCk7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>