<?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>316296</bug_id>
          
          <creation_ts>2026-06-04 01:53:03 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: pc-&gt;opcodeID() == op_call in JavaScriptCore.</short_desc>
          <delta_ts>2026-06-05 09:54:01 -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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Shu-yu Guo">syg</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>syg</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2217549</commentid>
    <comment_count>0</comment_count>
    <who name="EntryHi">entryhii</who>
    <bug_when>2026-06-04 01:53:03 -0700</bug_when>
    <thetext>Hello, I found a crash in JavaScriptCore. (commit id: 51cc3feb729804866ae63510d837f4df674bbc59)

poc.js:
```
function test() {
  var arr = [3, 4, /\u1fe8/iu];
  arr.sort(function () { arr.sort(function () {});});
}
for (var i = 0; i &lt; 10000; ++i) 
    test();
```

Reproduce:
1. Compile JavaScriptCore in Debug mode.
2.Run args: ./jsc --useConcurrentJIT=0  poc.js

Result:
ASSERTION FAILED: pc-&gt;opcodeID() == op_call
webkit/Source/JavaScriptCore/llint/LLIntSlowPaths.cpp(2851) : UGPRPair JSC::LLInt::llint_slow_path_array_sort_comparator_return(CallFrame *, EncodedJSValue)

Stack trace:
```
(lldb) bt
* thread #1, name = &apos;jsc&apos;, stop reason = signal SIGABRT
  * frame #0: 0x00007ffff56afecc libc.so.6`__pthread_kill_implementation + 268
    frame #1: 0x00007ffff565fab6 libc.so.6`raise + 22
    frame #2: 0x00007ffff56497fc libc.so.6`abort + 215
    frame #3: 0x0000555556ce4b88 jsc`::WTFCrashWithInfo((null)=2851, (null)=&quot;/data/wjm/webkit/Source/JavaScriptCore/llint/LLIntSlowPaths.cpp&quot;, (null)=&quot;UGPRPair JSC::LLInt::llint_slow_path_array_sort_comparator_return(CallFrame *, EncodedJSValue)&quot;) at Assertions.h:1022:5
    frame #4: 0x0000555557dd677e jsc`::llint_slow_path_array_sort_comparator_return(callFrame=0x00007fffffffc620, (null)=140737488340184) at LLIntSlowPaths.cpp:2851:5
    frame #5: 0x0000555557ef62bf jsc`array_sort_comparator_return_trampoline + 51
    frame #6: 0x00007fffa4e60e0b
    frame #7: 0x0000555557ed037d jsc`llint_call_javascript + 6
    frame #8: 0x000055555852da58 jsc`JSC::(this=0x00007fffe941ee60, source=0x00007fffffffd628, (null)=0x00007fffe90a0088, thisObj=0x00007fffeb06dec8)::executeProgram(const JSC::SourceCode &amp;, JSC::JSGlobalObject *, JSC::JSObject *) at Interpreter.cpp:1205:28
    frame #9: 0x00005555587a357a jsc`evaluate(globalObject=0x00007fffe90a0088, source=0x00007fffffffd628, thisValue=JSValue @ 0x00007fffffffd520, returnedException=0x00007fffffffd648) at Completion.cpp:145:37
    frame #10: 0x0000555556d880bd jsc`::runWithOptions(globalObject=0x00007fffe90a0088, options=0x0000555559b30c30, success=0x00007fffffffda9b) at jsc.cpp:3906:35
    frame #11: 0x0000555556d29a5c jsc`(this=0x00007fffffffdb6b, vm=0x00007fffe9400000, globalObject=0x00007fffe90a0088, success=0x00007fffffffda9b)::operator()(JSC::VM &amp;, GlobalObject *, bool &amp;) const at jsc.cpp:4636:13
    frame #12: 0x0000555556ceb7f8 jsc`::runJSC&lt;(lambda at webkit/Source/JavaScriptCore/jsc.cpp:4631:9)&gt;(options=0x0000555559b30c30, isWorker=false, func=0x00007fffffffdb6b) &amp;) at jsc.cpp:4422:13
    frame #13: 0x0000555556ce8d09 jsc`::jscmain(argc=12, argv=0x00007fffffffdcd8) at jsc.cpp:4629:18
    frame #14: 0x0000555556ce8aa8 jsc`main(argc=12, argv=0x00007fffffffdcd8) at jsc.cpp:3664:15
    frame #15: 0x00007ffff564a550 libc.so.6`__libc_start_call_main + 128
    frame #16: 0x00007ffff564a609 libc.so.6`__libc_start_main@@GLIBC_2.34 + 137
    frame #17: 0x0000555556ce3625 jsc`_start + 37
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2217550</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-06-04 01:53:09 -0700</bug_when>
    <thetext>&lt;rdar://problem/178704991&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2217622</commentid>
    <comment_count>2</comment_count>
    <who name="Shu-yu Guo">syg</who>
    <bug_when>2026-06-04 10:15:06 -0700</bug_when>
    <thetext>Thank you for your bug report! This is a debug assert that needs to be broadened, and not a security bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2217748</commentid>
    <comment_count>3</comment_count>
    <who name="Shu-yu Guo">syg</who>
    <bug_when>2026-06-04 15:04:34 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/66492</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2218035</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-06-05 09:53:59 -0700</bug_when>
    <thetext>Committed 314643@main (e7d51d19e065): &lt;https://commits.webkit.org/314643@main&gt;

Reviewed commits have been landed. Closing PR #66492 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>