<?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>254633</bug_id>
          
          <creation_ts>2023-03-28 17:12:12 -0700</creation_ts>
          <short_desc>REGRESSION(261993@main): JSC: Crash under JSC::MarkedBlock::aboutToMark</short_desc>
          <delta_ts>2023-03-31 05:27:11 -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>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>254752</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=254242</see_also>
          <bug_file_loc>https://www.reddit.com/</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="Nobody">webkit-unassigned</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>kdwkleung</cc>
    
    <cc>mark.lam</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1944806</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-03-28 17:12:12 -0700</bug_when>
    <thetext>REGRESSION: JSC: Crash under JSC::MarkedBlock::aboutToMark

WinCairo Release MiniBrowser is crashihng or freezing just by loading
https://news.yahoo.co.jp/articles/c5dbf98ce2bd908c9d05b55f413a2bcd11892c64 today.

262131@main: Bad
261847@main: Good

Exception thrown at 0x00007FFA6EF30757 (JavaScriptCore.dll) in WebKitWebProcess.exe: 0xC0000005: Access violation writing location 0x00007F0041C80038.

&gt;	[Inline Frame] JavaScriptCore.dll!std::_Atomic_storage&lt;unsigned char,1&gt;::compare_exchange_strong(unsigned char &amp;) Line 756	C++
 	[Inline Frame] JavaScriptCore.dll!std::atomic&lt;unsigned char&gt;::compare_exchange_weak(unsigned char &amp;) Line 2207	C++
 	[Inline Frame] JavaScriptCore.dll!WTF::Atomic&lt;unsigned char&gt;::compareExchangeWeak(unsigned char) Line 89	C++
 	[Inline Frame] JavaScriptCore.dll!WTF::LockAlgorithm&lt;unsigned char,1,2,WTF::EmptyLockHooks&lt;unsigned char&gt;&gt;::lockFastAssumingZero(WTF::Atomic&lt;unsigned char&gt; &amp;) Line 53	C++
 	[Inline Frame] JavaScriptCore.dll!WTF::Lock::lock() Line 65	C++
 	[Inline Frame] JavaScriptCore.dll!WTF::Locker&lt;WTF::Lock&gt;::{ctor}(WTF::Lock &amp;) Line 158	C++
 	JavaScriptCore.dll!JSC::MarkedBlock::aboutToMarkSlow(unsigned int markingVersion) Line 207	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::MarkedBlock::aboutToMark(unsigned int markingVersion) Line 586	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::SlotVisitor::appendUnbarriered(JSC::JSCell *) Line 57	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::SlotVisitor::appendUnbarriered(JSC::JSValue value) Line 70	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::SlotVisitor::append(const JSC::WriteBarrierBase&lt;enum JSC::Unknown,WTF::RawValueTraits&lt;enum JSC::Unknown&gt;&gt; &amp;) Line 110	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::SlotVisitor::appendValues(const JSC::WriteBarrierBase&lt;enum JSC::Unknown,WTF::RawValueTraits&lt;enum JSC::Unknown&gt;&gt; *) Line 139	C++
 	JavaScriptCore.dll!JSC::JSBoundFunction::visitChildrenImpl&lt;JSC::SlotVisitor&gt;(JSC::JSCell * cell, JSC::SlotVisitor &amp; visitor) Line 384	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::MethodTable::visitChildren(JSC::JSCell *) Line 115	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::SlotVisitor::visitChildren(const JSC::JSCell *) Line 394	C++
 	JavaScriptCore.dll!JSC::SlotVisitor::drain::__l9::&lt;lambda_1&gt;::operator()(JSC::MarkStackArray &amp; stack) Line 504	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::SlotVisitor::forEachMarkStack(const JSC::SlotVisitor::drain::__l9::&lt;lambda_1&gt; &amp;) Line 184	C++
 	JavaScriptCore.dll!JSC::SlotVisitor::drain(WTF::MonotonicTime timeout) Line 494	C++
 	JavaScriptCore.dll!JSC::SlotVisitor::drainFromShared(JSC::SlotVisitor::SharedDrainMode sharedDrainMode, WTF::MonotonicTime timeout) Line 694	C++
 	JavaScriptCore.dll!JSC::Heap::runBeginPhase::__l2::&lt;lambda_2&gt;::operator()() Line 1400	C++
 	WTF.dll!WTF::ParallelHelperClient::runTask(const WTF::RefPtr&lt;WTF::SharedTask&lt;void __cdecl(void)&gt;,WTF::RawPtrTraits&lt;WTF::SharedTask&lt;void __cdecl(void)&gt;&gt;,WTF::DefaultRefDerefTraits&lt;WTF::SharedTask&lt;void __cdecl(void)&gt;&gt;&gt; &amp; task) Line 113	C++
 	WTF.dll!WTF::ParallelHelperPool::Thread::work() Line 203	C++
 	WTF.dll!WTF::AutomaticThread::start::__l2::&lt;lambda_1&gt;::operator()() Line 230	C++
 	[Inline Frame] WTF.dll!WTF::Function&lt;void __cdecl(void)&gt;::operator()() Line 82	C++
 	WTF.dll!WTF::Thread::entryPoint(WTF::Thread::NewThreadContext * newThreadContext) Line 250	C++
 	WTF.dll!WTF::wtfThreadEntryPoint(void * data) Line 151	C++
 	ucrtbase.dll!00007ffaf1f61bb2()	Unknown
 	kernel32.dll!00007ffaf30e7614()	Unknown
 	ntdll.dll!00007ffaf45026a1()	Unknown

Exception thrown at 0x00007FFA6EF3074F (JavaScriptCore.dll) in WebKitWebProcess.exe: 0xC0000005: Access violation reading location 0x0000000000000018.

&gt;	JavaScriptCore.dll!JSC::MarkedBlock::aboutToMarkSlow(unsigned int markingVersion) Line 204	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::MarkedBlock::aboutToMark(unsigned int markingVersion) Line 586	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::SlotVisitor::appendUnbarriered(JSC::JSCell *) Line 57	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::SlotVisitor::appendUnbarriered(JSC::JSValue value) Line 70	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::SlotVisitor::append(const JSC::WriteBarrierBase&lt;enum JSC::Unknown,WTF::RawValueTraits&lt;enum JSC::Unknown&gt;&gt; &amp;) Line 110	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::SlotVisitor::appendValues(const JSC::WriteBarrierBase&lt;enum JSC::Unknown,WTF::RawValueTraits&lt;enum JSC::Unknown&gt;&gt; *) Line 139	C++
 	JavaScriptCore.dll!JSC::JSBoundFunction::visitChildrenImpl&lt;JSC::SlotVisitor&gt;(JSC::JSCell * cell, JSC::SlotVisitor &amp; visitor) Line 384	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::MethodTable::visitChildren(JSC::JSCell *) Line 115	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::SlotVisitor::visitChildren(const JSC::JSCell *) Line 394	C++
 	JavaScriptCore.dll!JSC::SlotVisitor::drain::__l9::&lt;lambda_1&gt;::operator()(JSC::MarkStackArray &amp; stack) Line 504	C++
 	[Inline Frame] JavaScriptCore.dll!JSC::SlotVisitor::forEachMarkStack(const JSC::SlotVisitor::drain::__l9::&lt;lambda_1&gt; &amp;) Line 184	C++
 	JavaScriptCore.dll!JSC::SlotVisitor::drain(WTF::MonotonicTime timeout) Line 494	C++
 	JavaScriptCore.dll!JSC::SlotVisitor::drainFromShared(JSC::SlotVisitor::SharedDrainMode sharedDrainMode, WTF::MonotonicTime timeout) Line 694	C++
 	JavaScriptCore.dll!JSC::Heap::runBeginPhase::__l2::&lt;lambda_2&gt;::operator()() Line 1400	C++
 	WTF.dll!WTF::ParallelHelperClient::runTask(const WTF::RefPtr&lt;WTF::SharedTask&lt;void __cdecl(void)&gt;,WTF::RawPtrTraits&lt;WTF::SharedTask&lt;void __cdecl(void)&gt;&gt;,WTF::DefaultRefDerefTraits&lt;WTF::SharedTask&lt;void __cdecl(void)&gt;&gt;&gt; &amp; task) Line 113	C++
 	WTF.dll!WTF::ParallelHelperPool::Thread::work() Line 203	C++
 	WTF.dll!WTF::AutomaticThread::start::__l2::&lt;lambda_1&gt;::operator()() Line 230	C++
 	[Inline Frame] WTF.dll!WTF::Function&lt;void __cdecl(void)&gt;::operator()() Line 82	C++
 	WTF.dll!WTF::Thread::entryPoint(WTF::Thread::NewThreadContext * newThreadContext) Line 250	C++
 	WTF.dll!WTF::wtfThreadEntryPoint(void * data) Line 151	C++
 	ucrtbase.dll!00007ffaf1f61bb2()	Unknown
 	kernel32.dll!00007ffaf30e7614()	Unknown
 	ntdll.dll!00007ffaf45026a1()	Unknown</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1944812</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-03-28 17:37:46 -0700</bug_when>
    <thetext>Backtrace of WinCairo Debug MiniBrowser 262233@main:

Exception thrown at 0x00007FFA42E6A001 (JavaScriptCore.dll) in WebKitWebProcess.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.

JavaScriptCore.dll!std::_Atomic_storage&lt;unsigned char,1&gt;::compare_exchange_strong(unsigned char &amp; _Expected, const unsigned char _Desired, const std::memory_order _Order) Line 756	C++
JavaScriptCore.dll!std::atomic&lt;unsigned char&gt;::compare_exchange_weak(unsigned char &amp; _Expected, const unsigned char _Desired, const std::memory_order _Order) Line 2208	C++
JavaScriptCore.dll!WTF::Atomic&lt;unsigned char&gt;::compareExchangeWeak(unsigned char expected, unsigned char desired, std::memory_order order) Line 90	C++
JavaScriptCore.dll!WTF::LockAlgorithm&lt;unsigned char,1,2,WTF::EmptyLockHooks&lt;unsigned char&gt;&gt;::lockFastAssumingZero(WTF::Atomic&lt;unsigned char&gt; &amp; lock) Line 54	C++
JavaScriptCore.dll!WTF::Lock::lock() Line 65	C++
JavaScriptCore.dll!WTF::Locker&lt;WTF::Lock&gt;::Locker&lt;WTF::Lock&gt;(WTF::Lock &amp; lock) Line 159	C++
JavaScriptCore.dll!JSC::MarkedBlock::aboutToMarkSlow(unsigned int markingVersion) Line 207	C++
JavaScriptCore.dll!JSC::MarkedBlock::aboutToMark(unsigned int markingVersion) Line 587	C++
JavaScriptCore.dll!JSC::SlotVisitor::appendUnbarriered(JSC::JSCell * cell) Line 57	C++
JavaScriptCore.dll!JSC::SlotVisitor::appendUnbarriered(JSC::JSValue value) Line 71	C++
JavaScriptCore.dll!JSC::SlotVisitor::append&lt;enum JSC::Unknown,WTF::RawValueTraits&lt;enum JSC::Unknown&gt;&gt;(const JSC::WriteBarrierBase&lt;enum JSC::Unknown,WTF::RawValueTraits&lt;enum JSC::Unknown&gt;&gt; &amp; slot) Line 111	C++
JavaScriptCore.dll!JSC::SlotVisitor::appendValues(const JSC::WriteBarrierBase&lt;enum JSC::Unknown,WTF::RawValueTraits&lt;enum JSC::Unknown&gt;&gt; * barriers, unsigned __int64 count) Line 139	C++
JavaScriptCore.dll!JSC::JSBoundFunction::visitChildrenImpl&lt;JSC::SlotVisitor&gt;(JSC::JSCell * cell, JSC::SlotVisitor &amp; visitor) Line 403	C++
JavaScriptCore.dll!JSC::JSBoundFunction::visitChildren(JSC::JSCell * cell, JSC::SlotVisitor &amp; visitor) Line 406	C++
JavaScriptCore.dll!JSC::MethodTable::visitChildren(JSC::JSCell * cell, JSC::SlotVisitor &amp; visitor) Line 115	C++
JavaScriptCore.dll!JSC::SlotVisitor::visitChildren(const JSC::JSCell * cell) Line 398	C++
JavaScriptCore.dll!JSC::SlotVisitor::drain::__l11::&lt;lambda_1&gt;::operator()(JSC::MarkStackArray &amp; stack) Line 504	C++
JavaScriptCore.dll!JSC::SlotVisitor::forEachMarkStack&lt;`JSC::SlotVisitor::drain&apos;::`11&apos;::&lt;lambda_1&gt;&gt;(const JSC::SlotVisitor::drain::__l11::&lt;lambda_1&gt; &amp; func) Line 184	C++
JavaScriptCore.dll!JSC::SlotVisitor::drain(WTF::MonotonicTime timeout) Line 494	C++
JavaScriptCore.dll!JSC::SlotVisitor::drainFromShared(JSC::SlotVisitor::SharedDrainMode sharedDrainMode, WTF::MonotonicTime timeout) Line 697	C++
JavaScriptCore.dll!JSC::Heap::runBeginPhase::__l2::&lt;lambda_2&gt;::operator()() Line 1400	C++
JavaScriptCore.dll!WTF::SharedTaskFunctor&lt;void __cdecl(void),`JSC::Heap::runBeginPhase&apos;::`2&apos;::&lt;lambda_2&gt;&gt;::run() Line 92	C++
WTF.dll!WTF::ParallelHelperClient::runTask(const WTF::RefPtr&lt;WTF::SharedTask&lt;void __cdecl(void)&gt;,WTF::RawPtrTraits&lt;WTF::SharedTask&lt;void __cdecl(void)&gt;&gt;,WTF::DefaultRefDerefTraits&lt;WTF::SharedTask&lt;void __cdecl(void)&gt;&gt;&gt; &amp; task) Line 113	C++
WTF.dll!WTF::ParallelHelperPool::Thread::work() Line 202	C++
WTF.dll!WTF::AutomaticThread::start::__l2::&lt;lambda_1&gt;::operator()() Line 229	C++
WTF.dll!WTF::Detail::CallableWrapper&lt;`WTF::AutomaticThread::start&apos;::`2&apos;::&lt;lambda_1&gt;,void&gt;::call() Line 53	C++
WTF.dll!WTF::Function&lt;void __cdecl(void)&gt;::operator()() Line 83	C++
WTF.dll!WTF::Thread::entryPoint(WTF::Thread::NewThreadContext * newThreadContext) Line 250	C++
WTF.dll!WTF::wtfThreadEntryPoint(void * data) Line 151	C++
ucrtbase.dll!00007ffaf1f61bb2()	Unknown
kernel32.dll!00007ffaf30e7614()	Unknown
ntdll.dll!00007ffaf45026a1()	Unknown</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1944832</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-03-28 19:01:33 -0700</bug_when>
    <thetext>Since 261993@main.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1944884</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-03-29 00:13:09 -0700</bug_when>
    <thetext>Looks like similar crashes? bug#164989 bug#182396 bug#200863</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945029</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-03-29 10:05:35 -0700</bug_when>
    <thetext>Hey Fujii, this is bug #254622</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945030</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-03-29 10:06:43 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #4)
&gt; Hey Fujii, this is bug #254622

Er, sorry, it looks like I posted this comment by mistake even after noticing that I had the wrong bug link. I meant bug #254325 (crash on reddit.com), not bug #254622. Anyway, I&apos;ll mark bug #254325 as a duplicate of this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945032</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-03-29 10:06:53 -0700</bug_when>
    <thetext>*** Bug 254325 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945084</commentid>
    <comment_count>7</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-03-29 12:59:53 -0700</bug_when>
    <thetext>Good to know. WinCairo Debug MiniBrowser (262233@main) also crashing just by loading https://www.reddit.com/ with the same backtrace (comment#1).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945113</commentid>
    <comment_count>8</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-03-29 14:29:05 -0700</bug_when>
    <thetext>WinCairo Debug MiniBrowser (262233@main) crashes https://ima.hatenablog.jp/entry/2023/03/27/210000 with the same backtrace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945126</commentid>
    <comment_count>9</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-03-29 14:49:16 -0700</bug_when>
    <thetext>I checked 30 web pages from https://news.ycombinator.com/ .
Tow more pages crash.
https://www.prusa3d.com/product/original-prusa-mk4-2/
https://twitter.com/debarghya_das/status/1640892791923572737</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945324</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-03-30 06:45:27 -0700</bug_when>
    <thetext>Hi Yusuke, do you want us to revert this, or do you want more time to investigate?

Unfortunately WebKitGTK 2.41.1 just got released with this bug. :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945588</commentid>
    <comment_count>11</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-03-30 21:20:15 -0700</bug_when>
    <thetext>I can&apos;t reproduce the same crash with WinCairo Debug MiniBrowser (262385@main). Maybe, I should close this as WORKSFORME.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945590</commentid>
    <comment_count>12</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-03-30 21:31:34 -0700</bug_when>
    <thetext>I confirmed WinCairo Debug MiniBrowser (262384@main) still reproduced the crash.
262385@main affected this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945600</commentid>
    <comment_count>13</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2023-03-30 22:43:45 -0700</bug_when>
    <thetext>By &quot;262385@main affected this&quot;, I think Fujii meant that it appears to be fixed.  Duping.

*** This bug has been marked as a duplicate of bug 254752 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945653</commentid>
    <comment_count>14</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-03-31 05:27:11 -0700</bug_when>
    <thetext>262385@main fixed the crashes on Linux too, despite the Windows-related commit message. Thanks Yusuke!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>