<?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>240707</bug_id>
          
          <creation_ts>2022-05-20 00:35:02 -0700</creation_ts>
          <short_desc>REGRESSION(250571@main)[Win] &quot;Exception thrown: read access violation. &quot; in WTF::Thread::ThreadHolder::~ThreadHolder()</short_desc>
          <delta_ts>2022-06-01 07:34:58 -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>Web Template Framework</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Yusuke Suzuki">ysuzuki</assigned_to>
          <cc>pvollan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1870650</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-05-20 00:35:02 -0700</bug_when>
    <thetext>REGRESSION(250571@main)[WinCairo] &quot;Exception thrown: read access violation. &quot; in WTF::Thread::ThreadHolder::~ThreadHolder()

If I run WinCairo WK1 and WK2 with debugger attached, the following exception is thrown by browsing some sites.

Exception thrown: read access violation.
**_Val** was 0x188.

Callstack

WTF.dll!std::exchange&lt;WTF::Thread::ClientData *,std::nullptr_t &amp;&gt;(WTF::Thread::ClientData * &amp; _Val, void * &amp; _New_val) Line 616	C++
WTF.dll!WTF::RawPtrTraits&lt;WTF::Thread::ClientData&gt;::exchange&lt;std::nullptr_t&gt;(WTF::Thread::ClientData * &amp; ptr, void * &amp;&amp; newValue) Line 41	C++
WTF.dll!WTF::RefPtr&lt;WTF::Thread::ClientData,WTF::RawPtrTraits&lt;WTF::Thread::ClientData&gt;,WTF::DefaultRefDerefTraits&lt;WTF::Thread::ClientData&gt;&gt;::operator=(void * __formal) Line 163	C++
WTF.dll!WTF::Thread::ThreadHolder::~ThreadHolder() Line 273	C++
WTF.dll!WTF::`dynamic atexit destructor for &apos;s_threadHolder&apos;&apos;()	C++
WTF.dll!__dyn_tls_dtor(void * __formal, const unsigned long dwReason, void * __formal) Line 119	C++
ntdll.dll!LdrpCallInitRoutine()	Unknown
ntdll.dll!LdrpCallTlsInitializers()	Unknown
ntdll.dll!LdrShutdownThread()	Unknown
ntdll.dll!RtlExitUserThread()	Unknown
KernelBase.dll!FreeLibraryAndExitThread()	Unknown
ucrtbase.dll!common_end_thread()	Unknown
ucrtbase.dll!thread_start&lt;unsigned int (__cdecl*)(void *),1&gt;()	Unknown
kernel32.dll!BaseThreadInitThunk()	Unknown
ntdll.dll!RtlUserThreadStart()	Unknown</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870651</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-05-20 00:37:18 -0700</bug_when>
    <thetext>Since 250571@main (Bug 240116).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870652</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-05-20 00:54:12 -0700</bug_when>
    <thetext>I tested with AppleWin Release 250571@main, and confirmed it also has this bug.
https://build.webkit.org/#/builders/67/builds/11801
https://s3-us-west-2.amazonaws.com/archives.webkit.org/win-x86_64-release/250571@main.zip

I need to run MiniBrowser.exe with debugger atttached

&gt; devenv -debugexe MiniBrowser.exe

If I run MiniBrowser.exe without debugger, it runs almost no problem.
The mouse cursor was indicating busy. Task Manager is showing Windows Problem Reporting process is spawn.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870664</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-05-20 01:56:27 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/823</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870673</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-20 02:17:40 -0700</bug_when>
    <thetext>Committed r294539 (250794@main): &lt;https://commits.webkit.org/250794@main&gt;

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

    </bug>

</bugzilla>