<?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>198795</bug_id>
          
          <creation_ts>2019-06-12 11:05:33 -0700</creation_ts>
          <short_desc>API Test [Mojave+ WK2 Debug ] TestWebKitAPI.WKAttachmentTestsMac.InsertDroppedFilePromisesAsAttachments is a flaky crash</short_desc>
          <delta_ts>2020-03-03 18:28:55 -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>WebKit API</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="Shawn Roberts">sroberts</reporter>
          <assigned_to name="Brady Eidson">beidson</assigned_to>
          <cc>aestes</cc>
    
    <cc>beidson</cc>
    
    <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>jbedard</cc>
    
    <cc>keith_miller</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>saam</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1544164</commentid>
    <comment_count>0</comment_count>
    <who name="Shawn Roberts">sroberts</who>
    <bug_when>2019-06-12 11:05:33 -0700</bug_when>
    <thetext>The following API test is a flaky crash on Mojave+ WK2 Debug testers

TestWebKitAPI.WKAttachmentTestsMac.InsertDroppedFilePromisesAsAttachments

Test was added in r235137

Test appears to have been a flaky crash for quite some time now but it appears we have not noticed it.

around 6/07/2019 it started to crash more consistently and around 6/11/2019 started to crash every 3 runs or so.

https://build.webkit.org/builders/Apple%20Mojave%20Debug%20WK2%20%28Tests%29?numbuilds=200 I can see a crash back on May 31st as well. https://build.webkit.org/builders/Apple%20Mojave%20Debug%20WK2%20%28Tests%29/builds/2836/steps/run-api-tests/logs/stdio

Reproduced locally 2 ways. 

run-api-tests TestWebKitAPI.WKAttachmentTestsMac.InsertDroppedFilePromisesAsAttachments --iter 200 --debug

I can also reproduce it in guard malloc and it fails more consistently in that configuration.

I can reproduce the crash in both modes going all the way back to r235137 and it produces the same crash. I don&apos;t know if recent jsc changes in this area may have made it more consistent. 

Attaching the full crash log and the guard malloc crash log to the radar. 

0   com.apple.JavaScriptCore      	0x000000010bc798cd bmalloc::SmallLine::deref(std::__1::unique_lock&lt;bmalloc::Mutex&gt;&amp;) + 45
1   com.apple.JavaScriptCore      	0x000000010bc795fc bmalloc::Heap::derefSmallLine(std::__1::unique_lock&lt;bmalloc::Mutex&gt;&amp;, bmalloc::Object, std::__1::array&lt;bmalloc::List&lt;bmalloc::SmallPage&gt;, 112ul&gt;&amp;) + 60
2   com.apple.JavaScriptCore      	0x000000010bc79525 bmalloc::Deallocator::processObjectLog(std::__1::unique_lock&lt;bmalloc::Mutex&gt;&amp;) + 165
3   com.apple.JavaScriptCore      	0x000000010bc7976e bmalloc::Deallocator::deallocateSlowCase(void*) + 270
4   com.apple.JavaScriptCore      	0x000000010bbe3244 bmalloc::Deallocator::deallocate(void*) + 68
5   com.apple.JavaScriptCore      	0x000000010bbe31e5 bmalloc::Cache::deallocate(bmalloc::HeapKind, void*) + 165
6   com.apple.JavaScriptCore      	0x000000010bbe277b bmalloc::api::free(void*, bmalloc::HeapKind) + 27
7   com.apple.JavaScriptCore      	0x000000010bbe2757 WTF::fastFree(void*) + 23
8   com.apple.JavaScriptCore      	0x000000010bc40737 WTF::StringWrapperCFAllocator::deallocate(void*, void*) + 103</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1544165</commentid>
    <comment_count>1</comment_count>
    <who name="Shawn Roberts">sroberts</who>
    <bug_when>2019-06-12 11:06:45 -0700</bug_when>
    <thetext>Adding Wenson who created the test. Andy who made a recent change that affected Catalina, and Saam and Keith who appear to have made some changes in the past on bmalloc::SmallLine::deref and have had recent changes in this area after the test seems to have gotten more flaky?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1544166</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-06-12 11:08:34 -0700</bug_when>
    <thetext>&lt;rdar://problem/51674325&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1544170</commentid>
    <comment_count>3</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2019-06-12 11:22:28 -0700</bug_when>
    <thetext>(In reply to Shawn Roberts from comment #1)
&gt; Adding Wenson who created the test. Andy who made a recent change that
&gt; affected Catalina, and Saam and Keith who appear to have made some changes
&gt; in the past on bmalloc::SmallLine::deref and have had recent changes in this
&gt; area after the test seems to have gotten more flaky?

I don’t think this test failure is relevant to JSC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1547400</commentid>
    <comment_count>4</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2019-06-24 10:38:25 -0700</bug_when>
    <thetext>Disabled test in https://trac.webkit.org/r246739</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1615350</commentid>
    <comment_count>5</comment_count>
      <attachid>389890</attachid>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2020-02-05 15:50:55 -0800</bug_when>
    <thetext>Created attachment 389890
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1615367</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2020-02-05 16:03:31 -0800</bug_when>
    <thetext>Not against re-enabling this test, but what makes us think it&apos;s not flakey?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1615387</commentid>
    <comment_count>7</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2020-02-05 16:32:09 -0800</bug_when>
    <thetext>(In reply to Jonathan Bedard from comment #6)
&gt; Not against re-enabling this test, but what makes us think it&apos;s not flakey?

Ah, I&apos;d only put it in the radar:

&gt;I cannot reproduce with today’s trunk with the referenced command:
&gt;run-api-tests TestWebKitAPI.WKAttachmentTestsMac.InsertDroppedFilePromisesAsAttachments --iter 200 --debug
&gt;… or under guardmalloc.
&gt;
&gt;Seems like this righted itself at some point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1625342</commentid>
    <comment_count>8</comment_count>
      <attachid>389890</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-03-03 17:30:45 -0800</bug_when>
    <thetext>Comment on attachment 389890
Patch

Let&apos;s get this landed then, cq+.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1625352</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-03-03 18:28:17 -0800</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 389890:

editing/spelling/spellcheck-async-remove-frame.html bug 158401 (authors: morrita@google.com, rniwa@webkit.org, and tony@chromium.org)
The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1625353</commentid>
    <comment_count>10</comment_count>
      <attachid>389890</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-03-03 18:28:53 -0800</bug_when>
    <thetext>Comment on attachment 389890
Patch

Clearing flags on attachment: 389890

Committed r257817: &lt;https://trac.webkit.org/changeset/257817&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1625354</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2020-03-03 18:28:55 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>389890</attachid>
            <date>2020-02-05 15:50:55 -0800</date>
            <delta_ts>2020-03-03 18:28:53 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-198795-20200205155054.patch</filename>
            <type>text/plain</type>
            <size>1548</size>
            <attacher name="Brady Eidson">beidson</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjU1ODYwCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggYzEzNjAyNzZhOWM2Mzk4N2UzZTY3NjIwMjEyNzExYjIw
YzZmZTRjNS4uY2YwZjNhMjVhOWQyNDBhNzM1MGNiMDBiYzgxODJlNmI5ODY5MDRhMSAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE3
IEBACisyMDIwLTAyLTA1ICBCcmFkeSBFaWRzb24gIDxiZWlkc29uQGFwcGxlLmNvbT4KKworICAg
ICAgICBBUEkgVGVzdCBbTW9qYXZlKyBXSzIgRGVidWcgXSBUZXN0V2ViS2l0QVBJLldLQXR0YWNo
bWVudFRlc3RzTWFjLkluc2VydERyb3BwZWRGaWxlUHJvbWlzZXNBc0F0dGFjaG1lbnRzIGlzIGEg
Zmxha3kgY3Jhc2guCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNn
aT9pZD0xOTg3OTUKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAg
ICAgICBUaGlzIHRlc3QgYXBwZWFycyB0byBubyBsb25nZXIgYmUgZmxha3kuCisgICAgICAgI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