<?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>180790</bug_id>
          
          <creation_ts>2017-12-13 18:10:48 -0800</creation_ts>
          <short_desc>logVMFailure should not simulate crash on iOS</short_desc>
          <delta_ts>2020-11-04 10:29:41 -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>bmalloc</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=218571</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="Saam Barati">saam</reporter>
          <assigned_to name="Saam Barati">saam</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>jfbastien</cc>
    
    <cc>keith_miller</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1381443</commentid>
    <comment_count>0</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-12-13 18:10:48 -0800</bug_when>
    <thetext>Reasons I don&apos;t think we should do this:
1. Gigacage will often fail
2. I think user controlled allocations in JS may bottom out in tryVMAllocate. Since the allocation size is often user controlled, and JS gracefully handles tryVMAllocate failing, and throws an OOM, it seems weird to consider this a crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381472</commentid>
    <comment_count>1</comment_count>
      <attachid>329313</attachid>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-12-13 19:47:50 -0800</bug_when>
    <thetext>Created attachment 329313
patch

I will wait for feedback from Dave before landing since we were talking about it offline already.

An alternative patch could be to just log if the allocation is under some threshold, say 1MB or 10MB.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381674</commentid>
    <comment_count>2</comment_count>
      <attachid>329313</attachid>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2017-12-14 10:47:51 -0800</bug_when>
    <thetext>Comment on attachment 329313
patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381675</commentid>
    <comment_count>3</comment_count>
      <attachid>329313</attachid>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2017-12-14 10:49:34 -0800</bug_when>
    <thetext>Comment on attachment 329313
patch

Do we want to log a failure on MacOS still?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381677</commentid>
    <comment_count>4</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-12-14 10:51:22 -0800</bug_when>
    <thetext>(In reply to Keith Miller from comment #3)
&gt; Comment on attachment 329313 [details]
&gt; patch
&gt; 
&gt; Do we want to log a failure on MacOS still?

Logging only does things for iOS. Also, I&apos;m not convinced we ever want to log if this is a user controlled input.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381690</commentid>
    <comment_count>5</comment_count>
      <attachid>329313</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-12-14 11:10:58 -0800</bug_when>
    <thetext>Comment on attachment 329313
patch

Clearing flags on attachment: 329313

Committed r225912: &lt;https://trac.webkit.org/changeset/225912&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381691</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-12-14 11:10:59 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1381692</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-12-14 11:11:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/36052852&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>329313</attachid>
            <date>2017-12-13 19:47:50 -0800</date>
            <delta_ts>2017-12-14 11:10:58 -0800</delta_ts>
            <desc>patch</desc>
            <filename>c-backup.diff</filename>
            <type>text/plain</type>
            <size>1370</size>
            <attacher name="Saam Barati">saam</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9ibWFsbG9jL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvYm1h
bGxvYy9DaGFuZ2VMb2cJKHJldmlzaW9uIDIyNTg5MCkKKysrIFNvdXJjZS9ibWFsbG9jL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBACisyMDE3LTEyLTEzICBTYWFtIEJh
cmF0aSAgPHNiYXJhdGlAYXBwbGUuY29tPgorCisgICAgICAgIGxvZ1ZNRmFpbHVyZSBzaG91bGQg
bm90IHNpbXVsYXRlIGNyYXNoIG9uIGlPUworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9y
Zy9zaG93X2J1Zy5jZ2k/aWQ9MTgwNzkwCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChP
T1BTISkuCisKKyAgICAgICAgVGhlIEdpZ2FjYWdlIGFsbG9jYXRpb24gb24gaU9TIGlzIGV4cGVj
dGVkIHRvIGZhaWwgaW4gY2VydGFpbiBjaXJjdW1zdGFuY2VzLiAKKyAgICAgICAgTGV0J3Mgb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