<?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>305721</bug_id>
          
          <creation_ts>2026-01-18 04:47:13 -0800</creation_ts>
          <short_desc>Crashing in thought-to-be-unreachable FTL-generated code</short_desc>
          <delta_ts>2026-01-22 21:53:48 -0800</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>Unspecified</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>katoshi1337</reporter>
          <assigned_to name="Yusuke Suzuki">ysuzuki</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2172820</commentid>
    <comment_count>0</comment_count>
    <who name="">katoshi1337</who>
    <bug_when>2026-01-18 04:47:13 -0800</bug_when>
    <thetext>Poc.js:

let v1 = 2.0;
for (let v2 = 0; v2 &lt; 100; v2++) {
    let v3 = -1061384422;
    function f4(a5, a6, a7) {
        if (!(a5 == -4294967297)) {
        }
        a5 * a6;
        Math.abs(Math);
        v3++;
        return v1;
    }
    for (let v13 = 0; v13 &lt; 100; v13++) {
        f4(v13, v1);
    }
}
v1++;

gc();


./jsc  --thresholdForJITSoon=10 --thresholdForJITAfterWarmUp=10 --thresholdForOptimizeAft
erWarmUp=100 --thresholdForOptimizeAfterLongWarmUp=100  --thresholdForFTLOptimizeAfterWarmUp=1000 --thresholdForFTLOptimizeSoon=1000 ./poc.js 


Crashing in thought-to-be-unreachable FTL-generated code for &lt;global&gt;#BI1NYd:[0x7fffe94a07b0-&gt;0x7fffe94a0150-&gt;0x7fffeb02d988, FTLGlobal, 195 (DidTryToEnterInLoop)] at basic block #5, node @0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2172821</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-01-18 04:47:19 -0800</bug_when>
    <thetext>&lt;rdar://problem/168397840&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174200</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2026-01-22 12:44:34 -0800</bug_when>
    <thetext>This is a deterministic crash via FTL unreachable. So not security issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174205</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2026-01-22 12:56:29 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/57066</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174367</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-01-22 21:53:46 -0800</bug_when>
    <thetext>Committed 306060@main (dc60e5a7e380): &lt;https://commits.webkit.org/306060@main&gt;

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

    </bug>

</bugzilla>