<?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>227805</bug_id>
          
          <creation_ts>2021-07-08 11:11:02 -0700</creation_ts>
          <short_desc>[Mac wk2] fast/canvas/canvas-composite-image.html is a flaky crash</short_desc>
          <delta_ts>2021-07-12 19:51:27 -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>WebKit2</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=227874</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=227881</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>ayumi_kojima</reporter>
          <assigned_to>ayumi_kojima</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>dino</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>tsavell</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1775727</commentid>
    <comment_count>0</comment_count>
    <who name="">ayumi_kojima</who>
    <bug_when>2021-07-08 11:11:02 -0700</bug_when>
    <thetext>fast/canvas/canvas-composite-image.html

History: https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Fcanvas%2Fcanvas-composite-image.html

I was able to reproduce the crash with run-webkit-tests fast/canvas/canvas-composite-image.html --iterations 50 --debug -f —child-process 20

No crash log found for com.apple.WebKit.WebContent.Development:30562.

stdout:

stderr:
com.apple.WebKit.WebContent.Development terminated (pid 30562) because the process crashed
LEAK: 1 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1775728</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-07-08 11:11:55 -0700</bug_when>
    <thetext>&lt;rdar://problem/80333731&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1775731</commentid>
    <comment_count>2</comment_count>
      <attachid>433144</attachid>
    <who name="">ayumi_kojima</who>
    <bug_when>2021-07-08 11:24:36 -0700</bug_when>
    <thetext>Created attachment 433144
TestExpectations update</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1775739</commentid>
    <comment_count>3</comment_count>
      <attachid>433144</attachid>
    <who name="Truitt Savell">tsavell</who>
    <bug_when>2021-07-08 11:38:17 -0700</bug_when>
    <thetext>Comment on attachment 433144
TestExpectations update

Clearing flags on attachment: 433144

Committed r279738 (239520@main): &lt;https://commits.webkit.org/239520@main&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1775861</commentid>
    <comment_count>4</comment_count>
    <who name="">ayumi_kojima</who>
    <bug_when>2021-07-08 16:36:53 -0700</bug_when>
    <thetext>Test appears to have passed on my terminal at r278544 with run-webkit-tests fast/canvas/canvas-composite-image.html --iterations 50 --debug -f --no-timeout —child-process 20 but also got a crash log:

============

No crash log found for com.apple.WebKit.WebContent.Development:56305.

stdout:

stderr:
com.apple.WebKit.WebContent.Development terminated (pid 56305) because the process crashed
LEAK: 1 WebPageProxy

============

I tried r277000, r278000, and r278300 and it seemed to have passed at all revisions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1775890</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-07-08 18:13:35 -0700</bug_when>
    <thetext>Also happening on release builds on internal bots.

This output is produced by TestController::webProcessDidTerminate() when getting kWKProcessTerminationReasonCrash.

I looked at this test run: https://build.webkit.org/#/builders/23/builds/2729/steps/11/logs/stdio

01:18:49.635 29797 Using port &apos;mac-bigsur-wk2&apos;
01:18:49.639 29797 &quot;uname -m&quot; took 0.00s
01:18:49.639 29797 Test configuration: &lt;bigsur, x86_64, debug&gt;
01:18:49.639 29797 Placing test results in /Volumes/Data/worker/bigsur-debug-tests-wk2/build/layout-test-results
01:18:49.639 29797 Using Debug build
...
01:25:14.269 29797 worker/8 fast/canvas/canvas-color-space-display-p3-ImageData.html passed
01:25:14.539 29797 worker/8 fast/canvas/canvas-color-space-display-p3.html passed
01:25:18.010 29797 worker/8 fast/canvas/canvas-composite-alpha.html passed
01:25:19.120 29797 worker/8 fast/canvas/canvas-composite-canvas.html passed
01:25:19.267 29797 worker/8 fast/canvas/canvas-composite-fill-repaint.html passed
01:25:19.465 29797 worker/8 com.apple.WebKit.WebContent.Development crash, pid = 30562
01:25:19.485 29797 worker/8 killed pid 29896
01:26:04.494 29797 worker/8 worker/8 fast/canvas/canvas-composite-image.html crashed, (stderr lines):
01:26:04.494 29797 worker/8   com.apple.WebKit.WebContent.Development terminated (pid 30562) because the process crashed
01:26:04.494 29797 worker/8   LEAK: 1 WebPageProxy
01:26:04.495 29797 worker/8 killing driver

But looking at system logs from this time, this process was entirely idle, and in fact it was running long before run-webkit-tests started?!

% log show --start &quot;2021-07-08 00:00:00&quot; --end &quot;2021-07-08 01:27:00&quot; --info --debug | grep 30562
2021-07-08 00:06:39.305627-0700 0x354      Error       0x0                  138    7    WindowServer: (SkyLight) [com.apple.SkyLight:default] _compareTimesAndApps: error getting owner of window 779303
2021-07-08 00:26:19.305628-0700 0x48d8a89  Default     0x7f1de65            354    2    pkd: (LaunchServices) [com.apple.launchservices:default] Waiting on thread &lt;private&gt; until Launch Services database seeding is complete.
2021-07-08 00:30:05.330562-0700 0x48dcc33  Error       0x0                  19070  7    com.apple.WebKit.WebContent.Development: (SkyLight) [com.apple.SkyLight:default] 0 is not a valid connection ID.
2021-07-08 00:30:05.330562-0700 0x48dcc33  Error       0x0                  19070  7    com.apple.WebKit.WebContent.Development: (SkyLight) [com.apple.SkyLight:default] 0 is not a valid connection ID.
2021-07-08 00:30:05.330562-0700 0x48dcc33  Error       0x0                  19070  7    com.apple.WebKit.WebContent.Development: (SkyLight) [com.apple.SkyLight:default] 0 is not a valid connection ID.
2021-07-08 01:08:14.305620-0700 0x39a      Default     0x0                  143    5    loginwindow: [com.apple.loginwindow.logging:Standard] -[ApplicationManager checkInAppContext:eventData:] | ApplicationManager: App checkin failed
2021-07-08 01:08:17.305629-0700 0x354      Default     0x0                  138    7    WindowServer: (SkyLight) [com.apple.SkyLight:default] [ ConnectionDebug ] Closing conn 0x1aabd3b, PID 25937 in session 257 on console
2021-07-08 01:12:28.230562-0700 0x4910d10  Default     0x0                  105    2    launchservicesd: [com.apple.launchservices:cas] CHECKIN:0x0-0x6c043ed8 26982 com.apple.WebKit.WebContent
2021-07-08 01:24:46.298055-0700 0x491b7ed  Default     0x0                  105    2    launchservicesd: [com.apple.launchservices:cas] CHECKIN:0x0-0x6c3b724b 30562 com.apple.WebKit.WebContent
2021-07-08 01:24:46.315013-0700 0x491b9b7  Default     0x0                  30562  7    com.apple.WebKit.WebContent.Development: (SkyLight) [com.apple.SkyLight:default] Set a breakpoint at SLSLogBreak to catch errors/faults as they are logged.
2021-07-08 01:24:46.315018-0700 0x491b9b7  Error       0x0                  30562  7    com.apple.WebKit.WebContent.Development: (SkyLight) [com.apple.SkyLight:default] 0 is not a valid connection ID.
2021-07-08 01:24:46.315018-0700 0x491b9b7  Error       0x0                  30562  7    com.apple.WebKit.WebContent.Development: (SkyLight) [com.apple.SkyLight:default] 0 is not a valid connection ID.
2021-07-08 01:24:46.315018-0700 0x491b9b7  Error       0x0                  30562  7    com.apple.WebKit.WebContent.Development: (SkyLight) [com.apple.SkyLight:default] 0 is not a valid connection ID.
2021-07-08 01:24:46.315019-0700 0x491b9b7  Error       0x0                  30562  7    com.apple.WebKit.WebContent.Development: (SkyLight) [com.apple.SkyLight:default] 0 is not a valid connection ID.
2021-07-08 01:24:46.315151-0700 0x491b9b7  Error       0x0                  30562  7    com.apple.WebKit.WebContent.Development: (SkyLight) [com.apple.SkyLight:default] 0 is not a valid connection ID.
2021-07-08 01:24:46.315151-0700 0x491b9b7  Default     0x0                  30562  7    com.apple.WebKit.WebContent.Development: (SkyLight) [com.apple.SkyLight:default] Invalid Connection ID 0


So this looks spurious?

Also, there is nothing in the logs about crashing:

$ log show --start &quot;2021-07-08 01:20:00&quot; --end &quot;2021-07-08 01:27:00&quot; --info --debug | grep crash
2021-07-08 01:26:20.280306-0700 0x491aa9c  Fault       0x7f84b33            70     7    mediaremoted: (MediaServices) [com.apple.amp.MediaServices:Entitlements] Failed to retrieve application-identifier from SecTask. This typically indicates that the process is missing the application-identifier entitlement. It must match the process&apos; bundle identifier. This is a client-issue. Check the crash report for the Coalition process. PID: 0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1775891</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-07-08 18:15:09 -0700</bug_when>
    <thetext>&gt; and in fact it was running long before run-webkit-tests started?!

Never mind that part, should have looked at grep output more carefully. Still, essentially no output from the process at all.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>433144</attachid>
            <date>2021-07-08 11:24:36 -0700</date>
            <delta_ts>2021-07-08 17:50:24 -0700</delta_ts>
            <desc>TestExpectations update</desc>
            <filename>bug-227805-20210708112435.patch</filename>
            <type>text/plain</type>
            <size>1310</size>
            <attacher>ayumi_kojima</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjc5NzM2CmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu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