Bug 264313 - Regression(270013@main) RELEASE_ASSERT(!m_count); in WebCore::Font::~Font()
Summary: Regression(270013@main) RELEASE_ASSERT(!m_count); in WebCore::Font::~Font()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-11-06 20:22 PST by Chris Dumez
Modified: 2023-11-13 08:10 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2023-11-06 20:22:25 PST
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<WTF::SingleThreadIntegralWrapper<unsigned int>, unsigned int>::~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<WTF::SingleThreadIntegralWrapper<unsigned int>, unsigned int>::~CanMakeCheckedPtrBase() + 4 (CheckedRef.h:324) [inlined]
5   WebCore       0x110f7a738 WebCore::Font::~Font() + 396 (Font.cpp:174)
6   WebCore       0x10fffbbe0 std::__1::default_delete<WebCore::Font>::operator()[abi:v160006](WebCore::Font*) const + 4 (unique_ptr.h:65) [inlined]
7   WebCore       0x10fffbbe0 WTF::RefCounted<WebCore::Font, std::__1::default_delete<WebCore::Font>>::deref() const + 40 (RefCounted.h:190) [inlined]
8   WebCore       0x10fffbbe0 WTF::Ref<WebCore::Font, WTF::RawPtrTraits<WebCore::Font>>::~Ref() + 40 (Ref.h:61) [inlined]
9   WebCore       0x10fffbbe0 WTF::Ref<WebCore::Font, WTF::RawPtrTraits<WebCore::Font>>::~Ref() + 88 (Ref.h:55)
10  WebCore       0x1119cc1b8 WTF::VectorDestructor<true, WTF::Ref<WebCore::Font, WTF::RawPtrTraits<WebCore::Font>>>::destruct(WTF::Ref<WebCore::Font, WTF::RawPtrTraits<WebCore::Font>>*, WTF::Ref<WebCore::Font, WTF::RawPtrTraits<WebCore::Font>>*) + 8 (Vector.h:70) [inlined]
11  WebCore       0x1119cc1b8 WTF::VectorTypeOperations<WTF::Ref<WebCore::Font, WTF::RawPtrTraits<WebCore::Font>>>::destruct(WTF::Ref<WebCore::Font, WTF::RawPtrTraits<WebCore::Font>>*, WTF::Ref<WebCore::Font, WTF::RawPtrTraits<WebCore::Font>>*) + 8 (Vector.h:253) [inlined]
12  WebCore       0x1119cc1b8 WTF::Vector<WTF::Ref<WebCore::Font, WTF::RawPtrTraits<WebCore::Font>>, 20ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>::~Vector() + 76 (Vector.h:766)
13  WebCore       0x1119ca66c WTF::Vector<WTF::Ref<WebCore::Font, WTF::RawPtrTraits<WebCore::Font>>, 20ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>::~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)
```
Comment 1 Chris Dumez 2023-11-06 20:22:39 PST
<rdar://117847851>
Comment 2 Chris Dumez 2023-11-06 20:27:57 PST
Pull request: https://github.com/WebKit/WebKit/pull/20082
Comment 3 EWS 2023-11-07 07:53:06 PST
Committed 270320@main (647046ce608e): <https://commits.webkit.org/270320@main>

Reviewed commits have been landed. Closing PR #20082 and removing active labels.