<?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>273411</bug_id>
          
          <creation_ts>2024-04-29 09:49:09 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: !behaviors.containsAny({ Behavior::Break, Behavior::Continue })</short_desc>
          <delta_ts>2024-05-13 03:37: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>WebGPU</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</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>wgslfuzz</reporter>
          <assigned_to name="Tadeu Zagallo">tzagallo</assigned_to>
          <cc>heycam</cc>
    
    <cc>mwyrzykowski</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2031902</commentid>
    <comment_count>0</comment_count>
    <who name="">wgslfuzz</who>
    <bug_when>2024-04-29 09:49:09 -0700</bug_when>
    <thetext>On git commit e9acc98eb155a5d5a45ea8fb4e763ff4cede6eb0, compiling the attached shader program with `./wgslfuzz shader.wgsl f` triggers an assertion violation.

```
fn f() { if floor { break; } }
```


#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=&lt;optimized out&gt;) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=&lt;optimized out&gt;) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=&lt;optimized out&gt;, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3  0x00007f5d278bb8e6 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4  0x00007f5d2789f8b7 in __GI_abort () at ./stdlib/abort.c:79
#5  0x000055919dbcea30 in WTFCrashWithInfo () at WTF/Headers/wtf/Assertions.h:862
#6  0x000055919dfe471c in WGSL::TypeChecker::visit (this=0x7f5d25b01620, function=...) at Source/WebGPU/WGSL/TypeCheck.cpp:727
#7  0x000055919e0a2971 in WGSL::AST::Visitor::checkErrorAndVisit&lt;WGSL::AST::Declaration&gt; (this=0x7f5d25b01620, x=...) at Source/WebGPU/WGSL/AST/ASTVisitor.h:135
#8  WGSL::AST::Visitor::visit (this=0x7f5d25b01620, shaderModule=...) at Source/WebGPU/WGSL/AST/ASTVisitor.cpp:51
#9  0x000055919dfd9fd2 in WGSL::TypeChecker::check (this=0x7f5d25b01620) at Source/WebGPU/WGSL/TypeCheck.cpp:439
#10 0x000055919e018f60 in WGSL::typeCheck (shaderModule=...) at Source/WebGPU/WGSL/TypeCheck.cpp:2449
#11 0x000055919e08cca1 in WGSL::staticCheck(WTF::String const&amp;, std::optional&lt;WGSL::SourceMap&gt; const&amp;, WGSL::Configuration const&amp;)::$_2::operator()() const (this=&lt;optimized out&gt;)
    at Source/WebGPU/WGSL/WGSL.cpp:76
#12 WGSL::staticCheck (wgsl=..., configuration=...) at Source/WebGPU/WGSL/WGSL.cpp:76
#13 0x000055919e08b13d in runWGSL (options=...) at Source/WebGPU/WGSL/wgslc.cpp:122
#14 main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at Source/WebGPU/WGSL/wgslc.cpp:164</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2032294</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-04-30 12:09:08 -0700</bug_when>
    <thetext>&lt;rdar://problem/127310621&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034571</commentid>
    <comment_count>2</comment_count>
    <who name="Tadeu Zagallo">tzagallo</who>
    <bug_when>2024-05-10 10:34:31 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/28396</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034881</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-05-13 03:37:50 -0700</bug_when>
    <thetext>Committed 278681@main (2e8bbb15e393): &lt;https://commits.webkit.org/278681@main&gt;

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

    </bug>

</bugzilla>