<?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>255103</bug_id>
          
          <creation_ts>2023-04-06 11:18:42 -0700</creation_ts>
          <short_desc>REGRESSION (iOS 16.4): WASM Out Of Memory with shared=true</short_desc>
          <delta_ts>2024-05-09 18:44:40 -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>WebAssembly</component>
          <version>Safari 16</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 16</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=272813</see_also>
          <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="Alex Bor">serebniti</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alonzakai</cc>
    
    <cc>jaffathecake</cc>
    
    <cc>mark.lam</cc>
    
    <cc>merlemitchell6779</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1947046</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Bor">serebniti</who>
    <bug_when>2023-04-06 11:18:42 -0700</bug_when>
    <thetext>We update iPhone from iOS 16.2 to 16.4 and get &quot;Out Of Memory&quot; in the console from code that was working before. We have localized the problem.

Try to put this part of code in safari iOS 16.4 console to reproduce:


      wasmMemory = new WebAssembly.Memory({
                          &quot;initial&quot;: 205520896 / 65536,
                          &quot;maximum&quot;: 2147483648 / 65536,
                          &quot;shared&quot;: true
                      });

You will get &quot;Out Of memory&quot;.

Now to set  &quot;shared&quot;: false and WebAssembly object will be created.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1947088</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-04-06 13:02:43 -0700</bug_when>
    <thetext>Thank you for the report! Which iPhone and/or iPad models is this reproducing with?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1947089</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-04-06 13:02:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/107723604&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1947236</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Bor">serebniti</who>
    <bug_when>2023-04-06 23:58:32 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #1)
&gt; Thank you for the report! Which iPhone and/or iPad models is this
&gt; reproducing with?

14 pro max</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1959874</commentid>
    <comment_count>4</comment_count>
    <who name="Jake Archibald">jaffathecake</who>
    <bug_when>2023-06-05 07:30:11 -0700</bug_when>
    <thetext>Possibly https://bugs.webkit.org/show_bug.cgi?id=250569</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2034459</commentid>
    <comment_count>5</comment_count>
    <who name="RalphSchoonover">merlemitchell6779</who>
    <bug_when>2024-05-09 18:44:40 -0700</bug_when>
    <thetext>Not sure if https://tunnelrush3.com can help or not. I will try and report the results later.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>