<?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>278259</bug_id>
          
          <creation_ts>2024-08-16 15:28:49 -0700</creation_ts>
          <short_desc>Crash in TimerBase::~TimerBase via DataDetection::detectContentInFrame</short_desc>
          <delta_ts>2024-08-23 13:06:25 -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>WebCore Misc.</component>
          <version>Safari Technology Preview</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="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2053413</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2024-08-16 15:28:49 -0700</bug_when>
    <thetext>e.g.
Thread 4 name:   Dispatch queue: com.apple.WebKit.DataDetection
Thread 4 Crashed:
0   WebCore                       	       0x197511390 WTFCrashWithInfo(int, char const*, char const*, int) + 1790864 [inlined]
1   WebCore                       	       0x197511390 WebCore::TimerBase::~TimerBase() + 1790864
2   WebCore                       	       0x1976fb8d3 WebCore::Timer::~Timer() + 3799251 [inlined]
3   WebCore                       	       0x1976fb8d3 WebCore::Timer::~Timer() + 3799251 [inlined]
4   WebCore                       	       0x1976fb8d3 WebCore::ScriptRunner::~ScriptRunner() + 3799251
5   WebCore                       	       0x1976fb7ef WebCore::ScriptRunner::~ScriptRunner() + 3799023 [inlined]
6   WebCore                       	       0x1976fb7ef WebCore::ScriptRunner::operator delete(WebCore::ScriptRunner*, std::destroying_delete_t, unsigned long) + 3799023 [inlined]
7   WebCore                       	       0x1976fb7ef WebCore::ScriptRunner::~ScriptRunner() + 3799023
8   WebCore                       	       0x19775596f std::__1::default_delete&lt;WebCore::ScriptRunner&gt;::operator()[abi:sn180100](WebCore::ScriptRunner*) const + 4168047 [inlined]
9   WebCore                       	       0x19775596f std::__1::unique_ptr&lt;WebCore::ScriptRunner, std::__1::default_delete&lt;WebCore::ScriptRunner&gt;&gt;::reset[abi:sn180100](WebCore::ScriptRunner*) + 4168047 [inlined]
10  WebCore                       	       0x19775596f std::__1::unique_ptr&lt;WebCore::ScriptRunner, std::__1::default_delete&lt;WebCore::ScriptRunner&gt;&gt;::operator=[abi:sn180100](std::nullptr_t) + 4168047 [inlined]
11  WebCore                       	       0x19775596f WebCore::Document::~Document() + 4168047
12  WebCore                       	       0x1977556f3 WebCore::HTMLDocument::~HTMLDocument() + 4167411 [inlined]
13  WebCore                       	       0x1977556f3 WebCore::HTMLDocument::~HTMLDocument() + 4167411 [inlined]
14  WebCore                       	       0x1977556f3 WebCore::HTMLDocument::~HTMLDocument() + 4167411
15  WebCore                       	       0x19772b9f7 WebCore::Document::removedLastRef() + 3996151
16  WebCore                       	       0x197e81fc7 WebCore::Node::derefAllowingPartiallyDestroyed() const + 11689927 [inlined]
17  WebCore                       	       0x197e81fc7 WebCore::Node::deref() const + 11689927 [inlined]
18  WebCore                       	       0x197e81fc7 WTF::DefaultRefDerefTraits&lt;WebCore::Document&gt;::derefIfNotNull(WebCore::Document*) + 11689927 [inlined]
19  WebCore                       	       0x197e81fc7 WTF::Ref&lt;WebCore::Document, WTF::RawPtrTraits&lt;WebCore::Document&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Document&gt;&gt;::~Ref() + 11689927 [inlined]
20  WebCore                       	       0x197e81fc7 WTF::Ref&lt;WebCore::Document, WTF::RawPtrTraits&lt;WebCore::Document&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Document&gt;&gt;::~Ref() + 11689927 [inlined]
21  WebCore                       	       0x197e81fc7 WebCore::DataDetection::detectContentInFrame(WebCore::LocalFrame*, WTF::OptionSet&lt;WebCore::DataDetectorType&gt;, std::__1::optional&lt;double&gt;, WTF::CompletionHandler&lt;void (NSArray*)&gt;&amp;&amp;)::$_0::~$_0() + 11689927 [inlined]
22  WebCore                       	       0x197e81fc7 WebCore::DataDetection::detectContentInFrame(WebCore::LocalFrame*, WTF::OptionSet&lt;WebCore::DataDetectorType&gt;, std::__1::optional&lt;double&gt;, WTF::CompletionHandler&lt;void (NSArray*)&gt;&amp;&amp;)::$_0::operator()()::&apos;lambda0&apos;()::~() + 11689927
23  WebCore                       	       0x197e9a4c3 WTF::Detail::CallableWrapper&lt;WebCore::DataDetection::detectContentInFrame(WebCore::LocalFrame*, WTF::OptionSet&lt;WebCore::DataDetectorType&gt;, std::__1::optional&lt;double&gt;, WTF::CompletionHandler&lt;void (NSArray*)&gt;&amp;&amp;)::$_0, void&gt;::~CallableWrapper() + 11789507 [inlined]
24  WebCore                       	       0x197e9a4c3 WTF::Detail::CallableWrapper&lt;WebCore::DataDetection::detectContentInFrame(WebCore::LocalFrame*, WTF::OptionSet&lt;WebCore::DataDetectorType&gt;, std::__1::optional&lt;double&gt;, WTF::CompletionHandler&lt;void (NSArray*)&gt;&amp;&amp;)::$_0, void&gt;::~CallableWrapper() + 11789507 [inlined]
25  WebCore                       	       0x197e9a4c3 WTF::Detail::CallableWrapper&lt;WebCore::DataDetection::detectContentInFrame(WebCore::LocalFrame*, WTF::OptionSet&lt;WebCore::DataDetectorType&gt;, std::__1::optional&lt;double&gt;, WTF::CompletionHandler&lt;void (NSArray*)&gt;&amp;&amp;)::$_0, void&gt;::~CallableWrapper() + 11789507
26  JavaScriptCore                	       0x19b2c9e3b std::__1::default_delete&lt;WTF::Detail::CallableWrapperBase&lt;void&gt;&gt;::operator()[abi:sn180100](WTF::Detail::CallableWrapperBase&lt;void&gt;*) const + 745019 [inlined]
27  JavaScriptCore                	       0x19b2c9e3b std::__1::unique_ptr&lt;WTF::Detail::CallableWrapperBase&lt;void&gt;, std::__1::default_delete&lt;WTF::Detail::CallableWrapperBase&lt;void&gt;&gt;&gt;::reset[abi:sn180100](WTF::Detail::CallableWrapperBase&lt;void&gt;*) + 745019 [inlined]
28  JavaScriptCore                	       0x19b2c9e3b std::__1::unique_ptr&lt;WTF::Detail::CallableWrapperBase&lt;void&gt;, std::__1::default_delete&lt;WTF::Detail::CallableWrapperBase&lt;void&gt;&gt;&gt;::~unique_ptr[abi:sn180100]() + 745019 [inlined]
29  JavaScriptCore                	       0x19b2c9e3b std::__1::unique_ptr&lt;WTF::Detail::CallableWrapperBase&lt;void&gt;, std::__1::default_delete&lt;WTF::Detail::CallableWrapperBase&lt;void&gt;&gt;&gt;::~unique_ptr[abi:sn180100]() + 745019 [inlined]
30  JavaScriptCore                	       0x19b2c9e3b WTF::Function&lt;void ()&gt;::~Function() + 745019 [inlined]
31  JavaScriptCore                	       0x19b2c9e3b WTF::Function&lt;void ()&gt;::~Function() + 745019 [inlined]
32  JavaScriptCore                	       0x19b2c9e3b WTF::(anonymous namespace)::DispatchWorkItem::~DispatchWorkItem() + 745019 [inlined]
33  JavaScriptCore                	       0x19b2c9e3b WTF::(anonymous namespace)::DispatchWorkItem::~DispatchWorkItem() + 745019 [inlined]
34  JavaScriptCore                	       0x19b2c9e3b void WTF::dispatchWorkItem&lt;WTF::(anonymous namespace)::DispatchWorkItem&gt;(void*) + 745019

&lt;rdar://133488287&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2053415</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2024-08-16 15:32:56 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/32328</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2053466</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-08-16 18:56:39 -0700</bug_when>
    <thetext>Committed 282380@main (c213f1482344): &lt;https://commits.webkit.org/282380@main&gt;

Reviewed commits have been landed. Closing PR #32328 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054977</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-08-23 13:06:25 -0700</bug_when>
    <thetext>Committed 280938.262@safari-7619-branch (031367be5b9a): &lt;https://commits.webkit.org/280938.262@safari-7619-branch&gt;

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

    </bug>

</bugzilla>