<?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>255715</bug_id>
          
          <creation_ts>2023-04-20 02:22:01 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: edge-&gt;hasResult() in DFG::{anonymous}::Validate::validate()</short_desc>
          <delta_ts>2025-05-23 17:43:43 -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>WORKSFORME</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>xiangwei1895</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>1949991</commentid>
    <comment_count>0</comment_count>
    <who name="">xiangwei1895</who>
    <bug_when>2023-04-20 02:22:01 -0700</bug_when>
    <thetext>## JavaScriptCore Version
dd75c5c12d617264cfc1e26a70c94591e4eb67c1

## Build 
Ubuntu 20.04.2 LTS (Linux 5.15.0-67-generic x86_64)

## Testcase and  Execution steps

```
function f0() {
      for (let i = 0; i &lt; 1e5; i++) {;}  
}
v0 = {value: 0};
function f1() {
	var v1 = Object.defineProperties([0], {0: v0});
	for ( _  in v1) {
	    f0(v1[i]);
	    ++v1[ f1 (i in v1)  ];
	    if (i === &quot;0&quot;)
		Object.defineProperties(v1, {0: v0});
	}
}
for (var i = 0; i &lt; 1e5; ++i)
	f1();
```
./bin/jsc  testcase.js

## Output

At D@178 -&gt; Check:Untyped:Kill:D@76: validation failed: edge-&gt;hasResult() (/home/WebKit/Source/JavaScriptCore/dfg/DFGValidate.cpp:156).

At time of failure:

       54: DFG for f1#&lt;no-hash&gt;:[0x62d0000d48e0-&gt;0x62d0000d4340-&gt;0x62d000069880, DFGFunctionCall, 276 (DidTryToEnterInLoop)]:
       54:   Fixpoint state: FixpointConverged; Form: SSA; Unification state: GloballyUnified; Ref count state: ExactRefCount
       54:   Argument formats for entrypoint index: 0 : FlushedJSValue

     0 54: Block #0 (bc#0): (OSR target)
     0 54:   Execution count: 1.000000
        ……


ASSERTION FAILED: edge-&gt;hasResult()
/home/WebKit/Source/JavaScriptCore/dfg/DFGValidate.cpp(156) : void JSC::DFG::{anonymous}::Validate::validate()
Aborted</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950665</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-04-23 14:34:07 -0700</bug_when>
    <thetext>&lt;rdar://problem/108430274&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2119465</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2025-05-23 17:42:20 -0700</bug_when>
    <thetext>It seems that this no longer reproduces.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>