<?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>180438</bug_id>
          
          <creation_ts>2017-12-05 12:56:21 -0800</creation_ts>
          <short_desc>ASSERTION FAILED: vm-&gt;currentThreadIsHoldingAPILock() in void JSC::sanitizeStackForVM(JSC::VM *)</short_desc>
          <delta_ts>2017-12-06 12:09:50 -0800</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>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=180492</see_also>
          <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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Saam Barati">saam</assigned_to>
          <cc>bburg</cc>
    
    <cc>commit-queue</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>fpizlo</cc>
    
    <cc>hi</cc>
    
    <cc>joepeck</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>saam</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1378302</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-12-05 12:56:21 -0800</bug_when>
    <thetext>The following assertion failure was seen with LayoutTest inspector/worker/debugger-pause.html
https://build.webkit.org/results/Apple%20Sierra%20Debug%20WK2%20(Tests)/r225524%20(4304)/results.html

ASSERTION FAILED: vm-&gt;currentThreadIsHoldingAPILock()
./runtime/VM.cpp(968) : void JSC::sanitizeStackForVM(JSC::VM *)
1   0x11850441d WTFCrash
2   0x1182a13dd JSC::sanitizeStackForVM(JSC::VM*)
3   0x117bf3d13 JSC::MarkedAllocator::allocate(JSC::GCDeferralContext*, JSC::AllocationFailureMode)::&apos;lambda&apos;()::operator()() const
4   0x117bf3c79 JSC::HeapCell* JSC::FreeList::allocate&lt;JSC::MarkedAllocator::allocate(JSC::GCDeferralContext*, JSC::AllocationFailureMode)::&apos;lambda&apos;()&gt;(JSC::MarkedAllocator::allocate(JSC::GCDeferralContext*, JSC::AllocationFailureMode)::&apos;lambda&apos;() const&amp;)
5   0x117bf186a JSC::MarkedAllocator::allocate(JSC::GCDeferralContext*, JSC::AllocationFailureMode)
6   0x117bf1801 JSC::CompleteSubspace::allocateNonVirtual(unsigned long, JSC::GCDeferralContext*, JSC::AllocationFailureMode)
7   0x118200d7a void* JSC::tryAllocateCellHelper&lt;JSC::PropertyTable&gt;(JSC::Heap&amp;, unsigned long, JSC::GCDeferralContext*, JSC::AllocationFailureMode)
8   0x1181eb293 void* JSC::allocateCell&lt;JSC::PropertyTable&gt;(JSC::Heap&amp;, unsigned long)
9   0x1181eb226 JSC::PropertyTable::create(JSC::VM&amp;, unsigned int)
10  0x118249884 JSC::Structure::materializePropertyTable(JSC::VM&amp;, bool)
11  0x1170d9b92 JSC::Structure::ensurePropertyTableIfNotEmpty(JSC::VM&amp;)
12  0x1170d9a94 JSC::Structure::get(JSC::VM&amp;, JSC::PropertyName, unsigned int&amp;, bool&amp;)
13  0x1170fd3f5 JSC::Structure::get(JSC::VM&amp;, JSC::PropertyName)
14  0x1174c1820 JSC::JSObject::getDirect(JSC::VM&amp;, JSC::PropertyName) const
15  0x118072cbd JSC::InternalFunction::displayName(JSC::VM&amp;)
16  0x118072d91 JSC::InternalFunction::calculatedDisplayName(JSC::VM&amp;)
17  0x1180b752d JSC::getCalculatedDisplayName(JSC::VM&amp;, JSC::JSObject*)
18  0x117d7b9a2 JSC::StackVisitor::Frame::functionName() const
19  0x117d28920 Inspector::CreateScriptCallStackFunctor::operator()(JSC::StackVisitor&amp;) const
20  0x117d28863 void JSC::StackVisitor::visit&lt;Inspector::CreateScriptCallStackFunctor&gt;(JSC::ExecState*, JSC::VM*, Inspector::CreateScriptCallStackFunctor const&amp;)
21  0x117d21471 void JSC::ExecState::iterate&lt;Inspector::CreateScriptCallStackFunctor&gt;(Inspector::CreateScriptCallStackFunctor const&amp;)
22  0x117d21361 Inspector::createScriptCallStack(JSC::ExecState*, unsigned long)
23  0x10c6f712b WebCore::InspectorNetworkAgent::buildInitiatorObject(WebCore::Document*)
24  0x10c6f960e WebCore::InspectorNetworkAgent::didScheduleStyleRecalculation(WebCore::Document&amp;)
25  0x10c626833 WebCore::InspectorInstrumentation::didScheduleStyleRecalculationImpl(WebCore::InstrumentingAgents&amp;, WebCore::Document&amp;)
26  0x10c0b4d4e WebCore::InspectorInstrumentation::didScheduleStyleRecalculation(WebCore::Document&amp;)
27  0x10c0b4cb1 WebCore::Document::scheduleStyleRecalc()
28  0x10c0b4b3c WebCore::Document::scheduleForcedStyleRecalc()
29  0x10d3ea205 WebCore::Style::Scope::updateActiveStyleSheets(WebCore::Style::Scope::UpdateType)
30  0x10d3eb093 WebCore::Style::Scope::flushPendingSelfUpdate()
31  0x10be1f9e2 WebCore::Style::Scope::flushPendingUpdate()
LEAK: 1 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1378304</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-12-05 12:57:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/35862342&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1378308</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-12-05 13:06:36 -0800</bug_when>
    <thetext>Looking at crashlogs from the bots, this assertion failure has also been seen attributed to:
http/tests/inspector/network/ping-type.html
webaudio/audiobuffersource-multi-channels.html
webaudio/test-basic.html
webaudio/up-mixing-stereo-51.html
webaudio/audiobuffersource-playbackrate.html
webaudio/oscillator-triangle.html
webaudio/up-mixing-mono-stereo.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1378310</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2017-12-05 13:09:10 -0800</bug_when>
    <thetext>Hi Ryan, any idea when this failure started manifesting?  Is it correlated to some recently landed patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1378311</commentid>
    <comment_count>4</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-12-05 13:11:57 -0800</bug_when>
    <thetext>(In reply to Mark Lam from comment #3)
&gt; Hi Ryan, any idea when this failure started manifesting?  Is it correlated
&gt; to some recently landed patch?
Still looking, it appears to have been happening since late October.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1378555</commentid>
    <comment_count>5</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-12-06 00:02:04 -0800</bug_when>
    <thetext>Seems like we just need to grab the API lock here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1378556</commentid>
    <comment_count>6</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-12-06 00:02:39 -0800</bug_when>
    <thetext>(In reply to Ryan Haddad from comment #2)
&gt; Looking at crashlogs from the bots, this assertion failure has also been
&gt; seen attributed to:
&gt; http/tests/inspector/network/ping-type.html
&gt; webaudio/audiobuffersource-multi-channels.html
&gt; webaudio/test-basic.html
&gt; webaudio/up-mixing-stereo-51.html
&gt; webaudio/audiobuffersource-playbackrate.html
&gt; webaudio/oscillator-triangle.html
&gt; webaudio/up-mixing-mono-stereo.html

Can you post crashlogs for these.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1378563</commentid>
    <comment_count>7</comment_count>
      <attachid>328556</attachid>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-12-06 00:20:28 -0800</bug_when>
    <thetext>Created attachment 328556
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1378586</commentid>
    <comment_count>8</comment_count>
      <attachid>328556</attachid>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2017-12-06 05:16:07 -0800</bug_when>
    <thetext>Comment on attachment 328556
patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1378675</commentid>
    <comment_count>9</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-12-06 10:47:24 -0800</bug_when>
    <thetext>(In reply to Saam Barati from comment #6)
&gt; (In reply to Ryan Haddad from comment #2)
&gt; &gt; Looking at crashlogs from the bots, this assertion failure has also been
&gt; &gt; seen attributed to:
&gt; &gt; http/tests/inspector/network/ping-type.html
&gt; &gt; webaudio/audiobuffersource-multi-channels.html
&gt; &gt; webaudio/test-basic.html
&gt; &gt; webaudio/up-mixing-stereo-51.html
&gt; &gt; webaudio/audiobuffersource-playbackrate.html
&gt; &gt; webaudio/oscillator-triangle.html
&gt; &gt; webaudio/up-mixing-mono-stereo.html
&gt; 
&gt; Can you post crashlogs for these.
https://build.webkit.org/results/Apple%20High%20Sierra%20Debug%20WK2%20(Tests)/r225482%20(1105)/http/tests/inspector/network/ping-type-crash-log.txt
https://build.webkit.org/results/Apple%20El%20Capitan%20Debug%20WK2%20(Tests)/r225440%20(4421)/webaudio/audiobuffersource-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1378680</commentid>
    <comment_count>10</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-12-06 10:54:09 -0800</bug_when>
    <thetext>(In reply to Ryan Haddad from comment #9)
&gt; (In reply to Saam Barati from comment #6)
&gt; &gt; (In reply to Ryan Haddad from comment #2)
&gt; &gt; &gt; Looking at crashlogs from the bots, this assertion failure has also been
&gt; &gt; &gt; seen attributed to:
&gt; &gt; &gt; http/tests/inspector/network/ping-type.html
&gt; &gt; &gt; webaudio/audiobuffersource-multi-channels.html
&gt; &gt; &gt; webaudio/test-basic.html
&gt; &gt; &gt; webaudio/up-mixing-stereo-51.html
&gt; &gt; &gt; webaudio/audiobuffersource-playbackrate.html
&gt; &gt; &gt; webaudio/oscillator-triangle.html
&gt; &gt; &gt; webaudio/up-mixing-mono-stereo.html
&gt; &gt; 
&gt; &gt; Can you post crashlogs for these.
&gt; https://build.webkit.org/results/
&gt; Apple%20High%20Sierra%20Debug%20WK2%20(Tests)/r225482%20(1105)/http/tests/
&gt; inspector/network/ping-type-crash-log.txt
&gt; https://build.webkit.org/results/
&gt; Apple%20El%20Capitan%20Debug%20WK2%20(Tests)/r225440%20(4421)/webaudio/
&gt; audiobuffersource-crash-log.txt

The second one here I&apos;ll fix in another bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1378686</commentid>
    <comment_count>11</comment_count>
      <attachid>328556</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-12-06 10:58:03 -0800</bug_when>
    <thetext>Comment on attachment 328556
patch

Clearing flags on attachment: 328556

Committed r225579: &lt;https://trac.webkit.org/changeset/225579&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1378687</commentid>
    <comment_count>12</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-12-06 10:58:05 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1378733</commentid>
    <comment_count>13</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2017-12-06 12:09:50 -0800</bug_when>
    <thetext>(In reply to Saam Barati from comment #10)
&gt; (In reply to Ryan Haddad from comment #9)
&gt; &gt; (In reply to Saam Barati from comment #6)
&gt; &gt; &gt; (In reply to Ryan Haddad from comment #2)
&gt; &gt; &gt; &gt; Looking at crashlogs from the bots, this assertion failure has also been
&gt; &gt; &gt; &gt; seen attributed to:
&gt; &gt; &gt; &gt; http/tests/inspector/network/ping-type.html
&gt; &gt; &gt; &gt; webaudio/audiobuffersource-multi-channels.html
&gt; &gt; &gt; &gt; webaudio/test-basic.html
&gt; &gt; &gt; &gt; webaudio/up-mixing-stereo-51.html
&gt; &gt; &gt; &gt; webaudio/audiobuffersource-playbackrate.html
&gt; &gt; &gt; &gt; webaudio/oscillator-triangle.html
&gt; &gt; &gt; &gt; webaudio/up-mixing-mono-stereo.html
&gt; &gt; &gt; 
&gt; &gt; &gt; Can you post crashlogs for these.
&gt; &gt; https://build.webkit.org/results/
&gt; &gt; Apple%20High%20Sierra%20Debug%20WK2%20(Tests)/r225482%20(1105)/http/tests/
&gt; &gt; inspector/network/ping-type-crash-log.txt
&gt; &gt; https://build.webkit.org/results/
&gt; &gt; Apple%20El%20Capitan%20Debug%20WK2%20(Tests)/r225440%20(4421)/webaudio/
&gt; &gt; audiobuffersource-crash-log.txt
&gt; 
&gt; The second one here I&apos;ll fix in another bug.

https://bugs.webkit.org/show_bug.cgi?id=180492</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>328556</attachid>
            <date>2017-12-06 00:20:28 -0800</date>
            <delta_ts>2017-12-06 10:58:03 -0800</delta_ts>
            <desc>patch</desc>
            <filename>b-backup.diff</filename>
            <type>text/plain</type>
            <size>1642</size>
            <attacher name="Saam Barati">saam</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb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