<?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>282003</bug_id>
          
          <creation_ts>2024-10-23 13:54:59 -0700</creation_ts>
          <short_desc>REGRESSION(285507@main?): [ macOS iOS Debug ] ASSERTION FAILED: showCount == hideCount in virtual WebCore::MockPaymentCoordinator result of crash in ApplePay</short_desc>
          <delta_ts>2024-10-24 09:41:02 -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>New Bugs</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="Marta Darbinyan">darbinyan</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <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>2070192</commentid>
    <comment_count>0</comment_count>
    <who name="Marta Darbinyan">darbinyan</who>
    <bug_when>2024-10-23 13:54:59 -0700</bug_when>
    <thetext>The following tests are appearing false-positive flaky tests in Sequoia EWS. Suspecting it&apos;s regressed after 285507@main since the tests started crashing with assertion after this change. In post-commit the tests are flaky crash in iOS and macOS as well.

Effected tests in EWS:
http/tests/ssl/applepay/ApplePayRequestShippingContactV3.https.html
http/tests/ssl/applepay/ApplePayShippingAddressChangeEventErrors.https.html
http/tests/ssl/applepay/ApplePayRequestShippingContact.https.html
http/tests/paymentrequest/ApplePayModifier-multiTokenContexts.https.html
http/tests/paymentrequest/payment-response-complete-method.https.html
http/tests/paymentrequest/payment-response-payerEmail-attribute.https.html
http/tests/paymentrequest/ApplePayModifier-deferredPaymentRequest.https.html
http/tests/paymentrequest/payment-response-methodName-attribute.https.html
http/tests/paymentrequest/updateWith-displayItems.https.html


stderr:
ASSERTION FAILED: showCount == hideCount
/Volumes/Data/worker/Apple-Sonoma-Debug-Build/build/Source/WebCore/testing/MockPaymentCoordinator.cpp(103) : virtual WebCore::MockPaymentCoordinator::~MockPaymentCoordinator()
1   0x4dcf8126c WebCore::MockPaymentCoordinator::~MockPaymentCoordinator()
2   0x4dcf81565 WebCore::MockPaymentCoordinator::~MockPaymentCoordinator()
3   0x4dcf81589 WebCore::MockPaymentCoordinator::~MockPaymentCoordinator()
4   0x585ea600f std::__1::default_delete&lt;WebCore::PaymentCoordinatorClient&gt;::operator()[abi:sn170006](WebCore::PaymentCoordinatorClient*) const
5   0x585ea5fcc std::__1::unique_ptr&lt;WebCore::PaymentCoordinatorClient, std::__1::default_delete&lt;WebCore::PaymentCoordinatorClient&gt;&gt;::reset[abi:sn170006](WebCore::PaymentCoordinatorClient*)
6   0x585ea5f69 std::__1::unique_ptr&lt;WebCore::PaymentCoordinatorClient, std::__1::default_delete&lt;WebCore::PaymentCoordinatorClient&gt;&gt;::~unique_ptr[abi:sn170006]()
7   0x585ea5f45 std::__1::unique_ptr&lt;WebCore::PaymentCoordinatorClient, std::__1::default_delete&lt;WebCore::PaymentCoordinatorClient&gt;&gt;::~unique_ptr[abi:sn170006]()
8   0x585ea5f25 WTF::UniqueRef&lt;WebCore::PaymentCoordinatorClient&gt;::~UniqueRef()
9   0x585e9a115 WTF::UniqueRef&lt;WebCore::PaymentCoordinatorClient&gt;::~UniqueRef()
10  0x585e9a0ca WebCore::PaymentCoordinator::~PaymentCoordinator()
11  0x585e9a165 WebCore::PaymentCoordinator::~PaymentCoordinator()
12  0x4dcae2ef5 WTF::RefCounted&lt;WebCore::PaymentCoordinator&gt;::deref() const
13  0x4dcae2ea9 WTF::RefCountedAndCanMakeWeakPtr&lt;WebCore::PaymentCoordinator&gt;::deref() const
14  0x4dcf838a1 WebCore::MockPaymentCoordinator::deref() const
15  0x4dcebacce WTF::DefaultRefDerefTraits&lt;WebCore::MockPaymentCoordinator&gt;::derefIfNotNull(WebCore::MockPaymentCoordinator*)
16  0x4dcebac69 WTF::Ref&lt;WebCore::MockPaymentCoordinator, WTF::RawPtrTraits&lt;WebCore::MockPaymentCoordinator&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::MockPaymentCoordinator&gt;&gt;::~Ref()
17  0x4dceb24b5 WTF::Ref&lt;WebCore::MockPaymentCoordinator, WTF::RawPtrTraits&lt;WebCore::MockPaymentCoordinator&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::MockPaymentCoordinator&gt;&gt;::~Ref()
18  0x4dcebac09 WebCore::JSDOMWrapper&lt;WebCore::MockPaymentCoordinator, WTF::RawPtrTraits&lt;WebCore::MockPaymentCoordinator&gt;&gt;::~JSDOMWrapper()
19  0x4dcebabe5 WebCore::JSMockPaymentCoordinator::~JSMockPaymentCoordinator()
20  0x4dceb0025 WebCore::JSMockPaymentCoordinator::~JSMockPaymentCoordinator()
21  0x4dceafc4d WebCore::JSMockPaymentCoordinator::destroy(JSC::JSCell*)
22  0x4e899b137 JSC::JSDestructibleObjectDestroyFunc::operator()(JSC::VM&amp;, JSC::JSCell*) const
23  0x4e899b105 JSC::JSDestructibleObjectHeapCellType::destroy(JSC::VM&amp;, JSC::JSCell*) const
24  0x4e82fc26a JSC::Subspace::destroy(JSC::VM&amp;, JSC::JSCell*)
25  0x4e82f12c1 JSC::PreciseAllocation::sweep()
26  0x4e82d588d JSC::MarkedSpace::sweepPreciseAllocations()
27  0x4e821ca30 JSC::Heap::sweepInFinalize()
28  0x4e821c640 JSC::Heap::finalize()
29  0x4e821be02 JSC::Heap::handleNeedFinalize(unsigned int)
30  0x4e821ad04 JSC::Heap::handleNeedFinalize()
31  0x4e8216f4a JSC::Heap::finishChangingPhase(JSC::GCConductor)
com.apple.WebKit.WebContent.Development terminated (pid 81892) for reason: crash
LEAK: 2 WebPageProxy

History:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=http%2Ftests%2Fpaymentrequest%2FApplePayModifier-deferredPaymentRequest.https.html&amp;test=http%2Ftests%2Fpaymentrequest%2Fpayment-response-complete-method.https.html&amp;test=http%2Ftests%2Fpaymentrequest%2Fpayment-response-payerEmail-attribute.https.html&amp;test=http%2Ftests%2Fssl%2Fapplepay%2FApplePayRequestShippingContact.https.html&amp;test=http%2Ftests%2Fssl%2Fapplepay%2FApplePayRequestShippingContactV3.https.html&amp;test=http%2Ftests%2Fssl%2Fapplepay%2FApplePayShippingAddressChangeEventErrors.https.html&amp;test=http%2Ftests%2Fpaymentrequest%2FApplePayPaymentCompleteDetails-orderDetails.https.html&amp;test=http%2Ftests%2Fpaymentrequest%2Fpayment-response-methodName-attribute.https.html&amp;test=http%2Ftests%2Fpaymentrequest%2FupdateWith-displayItems.https.html&amp;flavor=wk2&amp;style=debug


Test Results:
https://build.webkit.org/results/Apple-Sequoia-Debug-AppleSilicon-WK2-Tests/285255@main%20(76)/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2070193</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-10-23 13:55:32 -0700</bug_when>
    <thetext>&lt;rdar://problem/138506302&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2070199</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-10-23 14:31:28 -0700</bug_when>
    <thetext>Test gardening commit 285622@main (d4171c21f236): &lt;https://commits.webkit.org/285622@main&gt;

Reviewed commits have been landed. Closing PR #35647 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2070294</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2024-10-23 22:45:49 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/35666</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2070370</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-10-24 09:40:59 -0700</bug_when>
    <thetext>Committed 285653@main (3376205b5d9b): &lt;https://commits.webkit.org/285653@main&gt;

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

    </bug>

</bugzilla>