<?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>264313</bug_id>
          
          <creation_ts>2023-11-06 20:22:25 -0800</creation_ts>
          <short_desc>Regression(270013@main) RELEASE_ASSERT(!m_count); in WebCore::Font::~Font()</short_desc>
          <delta_ts>2023-11-13 08:10:11 -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>Text</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=264744</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="Chris Dumez">cdumez</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>mmaxfield</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1990418</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-11-06 20:22:25 -0800</bug_when>
    <thetext>RELEASE_ASSERT(!m_count); in WebCore::Font::~Font():
```
Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   WebCore       0x1102b5574 WTFCrashWithInfo(int, char const*, char const*, int) + 20 (Assertions.h:778)
1   WebCore       0x1119cd328 WTF::CanMakeCheckedPtrBase&lt;WTF::SingleThreadIntegralWrapper&lt;unsigned int&gt;, unsigned int&gt;::~CanMakeCheckedPtrBase() + 28 (CheckedRef.h:324) [inlined]
2   WebCore       0x1119cd328 WebCore::Font::~Font() (.cold.2) + 40 (Font.cpp:174)
3   WebCore       0x110f7a738 compilerFenceForCrash() + 4 (Assertions.h:802) [inlined]
4   WebCore       0x110f7a738 WTF::CanMakeCheckedPtrBase&lt;WTF::SingleThreadIntegralWrapper&lt;unsigned int&gt;, unsigned int&gt;::~CanMakeCheckedPtrBase() + 4 (CheckedRef.h:324) [inlined]
5   WebCore       0x110f7a738 WebCore::Font::~Font() + 396 (Font.cpp:174)
6   WebCore       0x10fffbbe0 std::__1::default_delete&lt;WebCore::Font&gt;::operator()[abi:v160006](WebCore::Font*) const + 4 (unique_ptr.h:65) [inlined]
7   WebCore       0x10fffbbe0 WTF::RefCounted&lt;WebCore::Font, std::__1::default_delete&lt;WebCore::Font&gt;&gt;::deref() const + 40 (RefCounted.h:190) [inlined]
8   WebCore       0x10fffbbe0 WTF::Ref&lt;WebCore::Font, WTF::RawPtrTraits&lt;WebCore::Font&gt;&gt;::~Ref() + 40 (Ref.h:61) [inlined]
9   WebCore       0x10fffbbe0 WTF::Ref&lt;WebCore::Font, WTF::RawPtrTraits&lt;WebCore::Font&gt;&gt;::~Ref() + 88 (Ref.h:55)
10  WebCore       0x1119cc1b8 WTF::VectorDestructor&lt;true, WTF::Ref&lt;WebCore::Font, WTF::RawPtrTraits&lt;WebCore::Font&gt;&gt;&gt;::destruct(WTF::Ref&lt;WebCore::Font, WTF::RawPtrTraits&lt;WebCore::Font&gt;&gt;*, WTF::Ref&lt;WebCore::Font, WTF::RawPtrTraits&lt;WebCore::Font&gt;&gt;*) + 8 (Vector.h:70) [inlined]
11  WebCore       0x1119cc1b8 WTF::VectorTypeOperations&lt;WTF::Ref&lt;WebCore::Font, WTF::RawPtrTraits&lt;WebCore::Font&gt;&gt;&gt;::destruct(WTF::Ref&lt;WebCore::Font, WTF::RawPtrTraits&lt;WebCore::Font&gt;&gt;*, WTF::Ref&lt;WebCore::Font, WTF::RawPtrTraits&lt;WebCore::Font&gt;&gt;*) + 8 (Vector.h:253) [inlined]
12  WebCore       0x1119cc1b8 WTF::Vector&lt;WTF::Ref&lt;WebCore::Font, WTF::RawPtrTraits&lt;WebCore::Font&gt;&gt;, 20ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;::~Vector() + 76 (Vector.h:766)
13  WebCore       0x1119ca66c WTF::Vector&lt;WTF::Ref&lt;WebCore::Font, WTF::RawPtrTraits&lt;WebCore::Font&gt;&gt;, 20ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;::~Vector() + 8 (Vector.h:764) [inlined]
14  WebCore       0x1119ca66c WebCore::FontCache::purgeInactiveFontData(unsigned int) + 284 (FontCache.cpp:318)
15  WebCore       0x110efe59c WebCore::ThreadTimers::sharedTimerFiredInternal() + 204 (ThreadTimers.cpp:125)
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1990419</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-11-06 20:22:39 -0800</bug_when>
    <thetext>&lt;rdar://117847851&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1990420</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-11-06 20:27:57 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/20082</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1990529</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-11-07 07:53:06 -0800</bug_when>
    <thetext>Committed 270320@main (647046ce608e): &lt;https://commits.webkit.org/270320@main&gt;

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

    </bug>

</bugzilla>