Bug 222251 - [GTK] random assertion failure: ~ContentRuleListStore → ~WorkQueue → Seconds::Seconds → ASSERTION FAILED: !m_end
Summary: [GTK] random assertion failure: ~ContentRuleListStore → ~WorkQueue → Seconds...
Status: RESOLVED DUPLICATE of bug 221115
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-21 13:33 PST by Fujii Hironori
Modified: 2021-02-21 13:38 PST (History)
1 user (show)

See Also:


Attachments
fixed-to-nonfixed-crash-log.txt (62.76 KB, text/plain)
2021-02-21 13:34 PST, Fujii Hironori
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2021-02-21 13:33:21 PST
[GTK] random assertion failure:  ~ContentRuleListStore → ~WorkQueue → Seconds::Seconds → ASSERTION FAILED: !m_end

GTK port Debug builds are observing a random assertion failure in WTF::Seconds::Seconds.
For example, 

https://build.webkit.org/results/GTK-Linux-64-bit-Debug-Tests/r273210%20(166)/results.html
compositing/contents-opaque/fixed-to-nonfixed.html

STDERR: ASSERTION FAILED: !m_end
STDERR: ../../Source/WTF/wtf/Deque.h(261) : void WTF::Deque<T, inlineCapacity>::checkValidity() const [with T = WTF::Function<void()>; long unsigned int inlineCapacity = 0]
STDERR: 1   0x56372479db47 WTFCrash
STDERR: 2   0x5637244b0e58 WTF::Seconds::Seconds(double)
STDERR: 3   0x5637247c56ae WTF::Deque<WTF::Function<void ()>, 0ul>::checkValidity() const
STDERR: 4   0x5637247c5d55 void WTF::Deque<WTF::Function<void ()>, 0ul>::append<WTF::Function<void ()> >(WTF::Function<void ()>&&)
STDERR: 5   0x5637247c5170 WTF::Deque<WTF::Function<void ()>, 0ul>::append(WTF::Function<void ()>&&)
STDERR: 6   0x5637247c402b WTF::RunLoop::dispatch(WTF::Function<void ()>&&)
STDERR: 7   0x7fad86cf4ca7 WTF::WorkQueue::platformInvalidate()
STDERR: 8   0x7fad86caff82 WTF::WorkQueue::~WorkQueue()
STDERR: 9   0x7fad86caffaa WTF::WorkQueue::~WorkQueue()
STDERR: 10  0x5637247c5296 WTF::ThreadSafeRefCounted<WTF::FunctionDispatcher, (WTF::DestructionThread)0>::deref() const::{lambda()#1}::operator()() const
STDERR: 11  0x5637247c52dd WTF::ThreadSafeRefCounted<WTF::FunctionDispatcher, (WTF::DestructionThread)0>::deref() const
STDERR: 12  0x7fad959917c6 WTF::Ref<WTF::WorkQueue, WTF::RawPtrTraits<WTF::WorkQueue> >::~Ref()
STDERR: 13  0x7fad9611afa2 API::ContentRuleListStore::~ContentRuleListStore()
STDERR: 14  0x7fad9611afda API::ContentRuleListStore::~ContentRuleListStore()
STDERR: 15  0x7fad951b3da4 WTF::ThreadSafeRefCounted<API::Object, (WTF::DestructionThread)0>::deref() const::{lambda()#1}::operator()() const
STDERR: 16  0x7fad951b3deb WTF::ThreadSafeRefCounted<API::Object, (WTF::DestructionThread)0>::deref() const
STDERR: 17  0x7fad95ec11a2 WKRelease
STDERR: 18  0x5637244d4c00 /app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner(+0x3bfc00) [0x5637244d4c00]
STDERR: 19  0x5637244be8fe /app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner(+0x3a98fe) [0x5637244be8fe]
STDERR: 20  0x5637244bcd4f /app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner(+0x3a7d4f) [0x5637244bcd4f]
STDERR: 21  0x5637244f0e79 /app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner(+0x3dbe79) [0x5637244f0e79]
STDERR: 22  0x5637244bebaa /app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner(+0x3a9baa) [0x5637244bebaa]
STDERR: 23  0x5637244bedc1 /app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner(+0x3a9dc1) [0x5637244bedc1]
STDERR: 24  0x5637244bee16 /app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner(+0x3a9e16) [0x5637244bee16]
STDERR: 25  0x5637244b955e /app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner(+0x3a455e) [0x5637244b955e]
STDERR: 26  0x56372451db55 /app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner(+0x408b55) [0x56372451db55]
STDERR: 27  0x7fad7e55f062 __libc_start_main
STDERR: 28  0x5637244b061e /app/webkit/WebKitBuild/Debug/bin/WebKitTestRunner(+0x39b61e) [0x5637244b061e]

Thread 1 (Thread 0x7fad7d622100 (LWP 1427)):
#0  WTFCrash() () at ../../Source/WTF/wtf/Assertions.cpp:295
#1  0x00005637244b0e58 in CRASH_WITH_INFO(...) () at DerivedSources/ForwardingHeaders/wtf/Assertions.h:713
#2  0x00005637247c56ae in WTF::Deque<WTF::Function<void ()>, 0ul>::checkValidity() const (this=0x7fad64674040) at ../../Source/WTF/wtf/Deque.h:261
#3  0x00005637247c5d55 in WTF::Deque<WTF::Function<void ()>, 0ul>::append<WTF::Function<void ()> >(WTF::Function<void ()>&&) (this=0x7fad64674040, value=...) at ../../Source/WTF/wtf/Deque.h:481
#4  0x00005637247c5170 in WTF::Deque<WTF::Function<void ()>, 0ul>::append(WTF::Function<void ()>&&) (this=0x7fad64674040, value=...) at ../../Source/WTF/wtf/Deque.h:89
#5  0x00005637247c402b in WTF::RunLoop::dispatch(WTF::Function<void ()>&&) (this=0x7fad64674000, function=...) at ../../Source/WTF/wtf/RunLoop.cpp:146
#6  0x00007fad86cf4ca7 in WTF::WorkQueue::platformInvalidate() (this=0x7fad64675fd8) at ../../Source/WTF/wtf/generic/WorkQueueGeneric.cpp:51
#7  0x00007fad86caff82 in WTF::WorkQueue::~WorkQueue() (this=0x7fad64675fd8, __in_chrg=<optimized out>) at ../../Source/WTF/wtf/WorkQueue.cpp:54
#8  0x00007fad86caffaa in WTF::WorkQueue::~WorkQueue() (this=0x7fad64675fd8, __in_chrg=<optimized out>) at ../../Source/WTF/wtf/WorkQueue.cpp:55
#9  0x00005637247c5296 in WTF::ThreadSafeRefCounted<WTF::FunctionDispatcher, (WTF::DestructionThread)0>::deref() const::{lambda()#1}::operator()() const (this=0x7ffda118a950) at ../../Source/WTF/wtf/ThreadSafeRefCounted.h:117
#10 0x00005637247c52dd in WTF::ThreadSafeRefCounted<WTF::FunctionDispatcher, (WTF::DestructionThread)0>::deref() const (this=0x7fad64675fe0) at ../../Source/WTF/wtf/ThreadSafeRefCounted.h:135
#11 0x00007fad959917c6 in WTF::Ref<WTF::WorkQueue, WTF::RawPtrTraits<WTF::WorkQueue> >::~Ref() (this=0x7fad646e3e18, __in_chrg=<optimized out>) at DerivedSources/ForwardingHeaders/wtf/Ref.h:61
#12 0x00007fad9611afa2 in API::ContentRuleListStore::~ContentRuleListStore() (this=0x7fad646e3e00, __in_chrg=<optimized out>) at ../../Source/WebKit/UIProcess/API/APIContentRuleListStore.cpp:96
#13 0x00007fad9611afda in API::ContentRuleListStore::~ContentRuleListStore() (this=0x7fad646e3e00, __in_chrg=<optimized out>) at ../../Source/WebKit/UIProcess/API/APIContentRuleListStore.cpp:98
#14 0x00007fad951b3da4 in WTF::ThreadSafeRefCounted<API::Object, (WTF::DestructionThread)0>::deref() const::{lambda()#1}::operator()() const (this=0x7ffda118aa00) at DerivedSources/ForwardingHeaders/wtf/ThreadSafeRefCounted.h:117
#15 0x00007fad951b3deb in WTF::ThreadSafeRefCounted<API::Object, (WTF::DestructionThread)0>::deref() const (this=0x7fad646e3e08) at DerivedSources/ForwardingHeaders/wtf/ThreadSafeRefCounted.h:135
#16 0x00007fad95ec11a2 in WKRelease(WKTypeRef) (typeRef=0x7fad646e3e00) at ../../Source/WebKit/Shared/API/c/WKType.cpp:46
#17 0x00005637244d4c00 in WebKit::WKRetainPtr<OpaqueWKUserContentExtensionStore const*>::~WKRetainPtr() (this=0x7ffda118aa88, __in_chrg=<optimized out>) at ../../Source/WebKit/UIProcess/API/cpp/WKRetainPtr.h:77
#18 0x00005637244be8fe in WTR::TestController::resetContentExtensions() (this=0x7ffda118b770) at ../../Tools/WebKitTestRunner/TestController.cpp:1444
#19 0x00005637244bcd4f in WTR::TestController::resetStateToConsistentValues(WTR::TestOptions const&, WTR::TestController::ResetStage) (this=0x7ffda118b770, options=..., resetStage=WTR::TestController::ResetStage::AfterTest) at ../../Tools/WebKitTestRunner/TestController.cpp:1060
#20 0x00005637244f0e79 in WTR::TestInvocation::invoke() (this=0x7fad644fd340) at ../../Tools/WebKitTestRunner/TestInvocation.cpp:180
#21 0x00005637244bebaa in WTR::TestController::runTest(char const*) (this=0x7ffda118b770, inputLine=0x7ffda118aed0 "/app/webkit/LayoutTests/compositing/contents-opaque/filter.html'--timeout'30000") at ../../Tools/WebKitTestRunner/TestController.cpp:1493
#22 0x00005637244bedc1 in WTR::TestController::runTestingServerLoop() (this=0x7ffda118b770) at ../../Tools/WebKitTestRunner/TestController.cpp:1539
#23 0x00005637244bee16 in WTR::TestController::run() (this=0x7ffda118b770) at ../../Tools/WebKitTestRunner/TestController.cpp:1547
#24 0x00005637244b955e in WTR::TestController::TestController(int, char const**) (this=0x7ffda118b770, argc=2, argv=0x7ffda118bc18) at ../../Tools/WebKitTestRunner/TestController.cpp:194
#25 0x000056372451db55 in main(int, char**) (argc=2, argv=0x7ffda118bc18) at ../../Tools/WebKitTestRunner/gtk/main.cpp:45
Comment 1 Fujii Hironori 2021-02-21 13:34:07 PST
Created attachment 421149 [details]
fixed-to-nonfixed-crash-log.txt
Comment 2 Fujii Hironori 2021-02-21 13:38:03 PST

*** This bug has been marked as a duplicate of bug 221115 ***