<?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>246942</bug_id>
          
          <creation_ts>2022-10-24 05:43:03 -0700</creation_ts>
          <short_desc>Trace trap in JIT-compiled code</short_desc>
          <delta_ts>2022-11-01 13:48:52 -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>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 name="Samuel Groß">saelo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>d_degazio</cc>
    
    <cc>mark.lam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1907771</commentid>
    <comment_count>0</comment_count>
    <who name="Samuel Groß">saelo</who>
    <bug_when>2022-10-24 05:43:03 -0700</bug_when>
    <thetext>The following sample triggers a SIGTRAP in JSC built from latest HEAD in debug configuration:

    function main() {
    let v0 = -256;
    do {
        function v2(v3,v4,v5) {
            const v6 = eval;
            const v8 = 16 / v5;
            function v9(v10,v11) {
                try {
                    const v12 = v9();
                } catch(v13) {
                    const v14 = [];
                    const v15 = [];
                    const v16 = v15.__proto__;
                    const v17 = v14.values;
                    const v19 = {&quot;set&quot;:v17};
                    const v21 = Object.defineProperty(v16,1,v19);
                    function v22(v23,v24) {
                        const v25 = [];
                        let {&quot;__proto__&quot;:v26,&quot;constructor&quot;:v27,&quot;length&quot;:v28,} = v25;
                        const v29 = v26 || v22;
                        const v30 = v27();
                        const v31 = v30.push(v25);
                        const v32 = v30.push(v29);
                    }
                    const v33 = v22();
                } finally {
                }
            }
            const v34 = v9();
            let v35 = [v8];
            const v36 = --v35;
            const v37 = v0++;
        }
        const v38 = &quot;bigint&quot;;
        const v39 = v2();
    } while (v0 !== 8);
    gc();
    }
    main();
    // CRASH INFO
    // ==========
    // TERMSIG: 5
    // STDERR:
    // STDOUT:
    // ARGS: ./jsc/jsc --validateOptions=true --thresholdForJITSoon=10 --thresholdForJITAfterWarmUp=10 --thresholdForOptimizeAfterWarmUp=100 --thresholdForOptimizeAfterLongWarmUp=100 --thresholdForOptimizeSoon=100 --thresholdForFTLOptimizeAfterWarmUp=1000 --thresholdForFTLOptimizeSoon=1000

The crash happens in JIT-compiled code, so this may be a sign of a condition that was not expected to happen by the compiler. As this may have security implications, I&apos;m filing this as a security issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1907772</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-10-24 05:43:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/101496803&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1909395</commentid>
    <comment_count>2</comment_count>
    <who name="David Degazio">d_degazio</who>
    <bug_when>2022-10-31 13:15:49 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/5973</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1909621</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-01 13:48:50 -0700</bug_when>
    <thetext>Committed 256197@main (5faa0d3ac693): &lt;https://commits.webkit.org/256197@main&gt;

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

    </bug>

</bugzilla>