<?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>276935</bug_id>
          
          <creation_ts>2024-07-23 01:29:37 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: !scope.exception() &amp;&amp; result</short_desc>
          <delta_ts>2024-07-23 12:58:03 -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>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>276027</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 name="EntryHi">entryhii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mark.lam</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2047728</commentid>
    <comment_count>0</comment_count>
    <who name="EntryHi">entryhii</who>
    <bug_when>2024-07-23 01:29:37 -0700</bug_when>
    <thetext>==============poc.js=============
class C3 {
    #a;
    constructor(a10) {
        try {
            const v11 = (&quot;f&quot;).#a;
            arguments.g = arguments;
        } catch(e26) {
            const v29 = new Float64Array(120);
            for (const v30 in v29) {
                for (let v31 = 0; v31 &lt; 5; v31++) {
                }
            }
        }
    }
}
new C3(-9.99828580875919);
new C3(&quot;f&quot;);
const v47 = new C3(C3);
==================================

Run args:
./jsc --validateOptions=true --thresholdForJITSoon=10 --thresholdForJITAfterWarmUp=10 --thresholdForOptimizeAfterWarmUp=100 --thresholdForOptimizeAfterLongWarmUp=100 --thresholdForOptimizeSoon=100 --thresholdForFTLOptimizeAfterWarmUp=1000 --thresholdForFTLOptimizeSoon=1000 --useConcurrentJIT=0 --validateBCE=true poc.js

Result:
ASSERTION FAILED: !scope.exception() &amp;&amp; result
webkit/Source/JavaScriptCore/dfg/DFGOperations.cpp(2304) : JSC::OperationReturnType&lt;JSCell *&gt; JSC::DFG::operationCreateClonedArgumentsDuringExit(JSC::VM *, JSC::InlineCallFrame *, JSC::JSFunction *, uint32_t)


Crash Stack:
  * frame #0: 0x00007ffff56afe5c libc.so.6`__pthread_kill_implementation + 268
    frame #1: 0x00007ffff565fa76 libc.so.6`raise + 22
    frame #2: 0x00007ffff56497fc libc.so.6`abort + 215
    frame #3: 0x0000000000db635a jsc`WTFCrashWithInfo((null)=2304, (null)=&quot;/data/wjm/webkit_latest/Source/JavaScriptCore/dfg/DFGOperations.cpp&quot;, (null)=&quot;JSC::OperationReturnType&lt;JSCell *&gt; JSC::DFG::operationCreateClonedArgumentsDuringExit(JSC::VM *, JSC::InlineCallFrame *, JSC::JSFunction *, uint32_t)&quot;, (null)=5798) at Assertions.h:829:5
    frame #4: 0x000000000157c0a5 jsc`::operationCreateClonedArgumentsDuringExit(vmPointer=0x00007fffa9000000, inlineCallFrame=0x0000000000000000, callee=&lt;unavailable&gt;, argumentCount=&lt;unavailable&gt;) at DFGOperations.cpp:2304:5
    frame #5: 0x00007fffaa91c44f
    frame #6: 0x000000000104fe58 jsc`llint_op_construct + 162
    frame #7: 0x000000000102e4ee jsc`llint_call_javascript + 6
    frame #8: 0x00000000020adc18 jsc`JSC::Interpreter::executeProgram(this=&lt;unavailable&gt;, source=&lt;unavailable&gt;, (null)=&lt;unavailable&gt;, thisObj=0x00007fffeb022008) at Interpreter.cpp:1145:28
    frame #9: 0x000000000251ace2 jsc`JSC::evaluate(globalObject=0x00007fffa941a088, source=&lt;unavailable&gt;, thisValue=JSValue @ 0x00007fffffffd7d0, returnedException=0x00007fffffffd9f0) at Completion.cpp:137:37
    frame #10: 0x0000000000dbb79f jsc`int runJSC&lt;jscmain(int, char**)::$_11&gt;(CommandLine const&amp;, bool, jscmain(int, char**)::$_11 const&amp;) at jsc.cpp:3777:35
    frame #11: 0x0000000000dbabdf jsc`int runJSC&lt;jscmain(int, char**)::$_11&gt;(CommandLine const&amp;, bool, jscmain(int, char**)::$_11 const&amp;) [inlined] jscmain(this=&lt;unavailable&gt;, vm=&lt;unavailable&gt;, globalObject=0x00007fffa941a088, success=0x00007fffffffd8a7)::$_11::operator()(JSC::VM&amp;, GlobalObject*, bool&amp;) const at jsc.cpp:4428:13
    frame #12: 0x0000000000dbabd2 jsc`int runJSC&lt;jscmain(int, char**)::$_11&gt;(options=0x0000000003b131b8, isWorker=false, func=&lt;unavailable&gt;)::$_11 const&amp;) at jsc.cpp:4210:13
    frame #13: 0x0000000000db8911 jsc`jscmain(argc=12, argv=0x00007fffffffdcf8) at jsc.cpp:4421:18
    frame #14: 0x0000000000db8517 jsc`main(argc=12, argv=0x00007fffffffdcf8) at jsc.cpp:3535:15
    frame #15: 0x00007ffff564a510 libc.so.6`__libc_start_call_main + 128
    frame #16: 0x00007ffff564a5c9 libc.so.6`__libc_start_main@@GLIBC_2.34 + 137
    frame #17: 0x0000000000d9b425 jsc`_start + 37</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2047837</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-07-23 11:09:55 -0700</bug_when>
    <thetext>&lt;rdar://problem/132338768&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2047861</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2024-07-23 12:58:03 -0700</bug_when>
    <thetext>Thanks, this is dupe of bug 276027.

*** This bug has been marked as a duplicate of bug 276027 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>