<?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>129364</bug_id>
          
          <creation_ts>2014-02-25 22:49:53 -0800</creation_ts>
          <short_desc>ASSERTION FAILED: m_heap-&gt;vm()-&gt;currentThreadIsHoldingAPILock()  in inspector-protocol/*</short_desc>
          <delta_ts>2014-02-26 08:36:40 -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>Web Inspector</component>
          <version>528+ (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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Mark Lam">mark.lam</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>graouts</cc>
    
    <cc>joepeck</cc>
    
    <cc>mark.lam</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>984638</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-02-25 22:49:53 -0800</bug_when>
    <thetext>http://build.webkit.org/results/Apple%20Mavericks%20Debug%20WK2%20(Tests)/r164696%20(2899)/inspector-protocol/page/deny-X-FrameOption-crash-log.txt

ASSERTION FAILED: m_heap-&gt;vm()-&gt;currentThreadIsHoldingAPILock()
/Volumes/Data/slave/mavericks-debug/build/Source/JavaScriptCore/heap/MarkedAllocator.cpp(149) : void *JSC::MarkedAllocator::allocateSlowCase(size_t)
1   0x1106508d0 WTFCrash
2   0x110474955 JSC::MarkedAllocator::allocateSlowCase(unsigned long)
3   0x11189f7af JSC::MarkedAllocator::allocate(unsigned long)
4   0x11189f649 JSC::MarkedSpace::allocateWithImmortalStructureDestructor(unsigned long)
5   0x11189f5b6 JSC::Heap::allocateWithImmortalStructureDestructor(unsigned long)
6   0x11189f487 void* JSC::allocateCell&lt;JSC::Structure&gt;(JSC::Heap&amp;, unsigned long)
7   0x11189f05f void* JSC::allocateCell&lt;JSC::Structure&gt;(JSC::Heap&amp;)
8   0x11189eddf JSC::Structure::create(JSC::VM&amp;, JSC::JSGlobalObject*, JSC::JSValue, JSC::TypeInfo const&amp;, JSC::ClassInfo const*, unsigned char, unsigned int)
9   0x1124cc810 WebCore::JSCommandLineAPIHostPrototype::createStructure(JSC::VM&amp;, JSC::JSGlobalObject*, JSC::JSValue)
10  0x1124cb769 WebCore::JSCommandLineAPIHost::createPrototype(JSC::VM&amp;, JSC::JSGlobalObject*)
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>984642</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-02-25 22:50:56 -0800</bug_when>
    <thetext>&lt;rdar://problem/16170264&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>984643</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-02-25 22:53:52 -0800</bug_when>
    <thetext>Actually, there are lots of inspector tests failing with this assertion, probably should file a bug about each one.

Also:

inspector-protocol/debugger/nested-inspectors.html
inspector-protocol/dom-debugger/node-removed.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>984644</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2014-02-25 22:54:49 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Actually, there are lots of inspector tests failing with this assertion, probably should file a bug about each one.
&gt; 
&gt; Also:
&gt; 
&gt; inspector-protocol/debugger/nested-inspectors.html
&gt; inspector-protocol/dom-debugger/node-removed.html

They are probably due to the same root cause though.  I&apos;m investigating.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>984671</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2014-02-26 00:32:25 -0800</bug_when>
    <thetext>*** Bug 129360 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>984672</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2014-02-26 00:38:42 -0800</bug_when>
    <thetext>The test failure is intermittent because it depends on an GC / allocation activity happening at exactly the right moment.  That is why I don&apos;t see the failures when I run it on my machine.  However, there is an easy way to get an equivalent reproduction case i.e. by adding the following assertion to JSC::Structure::create():

    ASSERT(vm.currentThreadIsHoldingAPILock());

With that I can get the inspector-protocol tests to fail all the time.

The failure is because InjectedScriptModule::ensureInjected() isn&apos;t using an APIEntryShim before it started calling functions that enter the VM.  The fix is to use the shim here.  Patch coming soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>984676</commentid>
    <comment_count>6</comment_count>
      <attachid>225235</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2014-02-26 00:47:59 -0800</bug_when>
    <thetext>Created attachment 225235
the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>984679</commentid>
    <comment_count>7</comment_count>
      <attachid>225237</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2014-02-26 00:52:00 -0800</bug_when>
    <thetext>Created attachment 225237
patch 2: added a comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>984750</commentid>
    <comment_count>8</comment_count>
      <attachid>225237</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-02-26 08:36:37 -0800</bug_when>
    <thetext>Comment on attachment 225237
patch 2: added a comment.

Clearing flags on attachment: 225237

Committed r164717: &lt;http://trac.webkit.org/changeset/164717&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>984751</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-02-26 08:36:40 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>225235</attachid>
            <date>2014-02-26 00:47:59 -0800</date>
            <delta_ts>2014-02-26 00:52:00 -0800</delta_ts>
            <desc>the patch.</desc>
            <filename>bug-129364.patch</filename>
            <type>text/plain</type>
            <size>1663</size>
            <attacher name="Mark Lam">mark.lam</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTY0NzA5KQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE0IEBA
CisyMDE0LTAyLTI2ICBNYXJrIExhbSAgPG1hcmsubGFtQGFwcGxlLmNvbT4KKworICAgICAgICBB
U1NFUlRJT04gRkFJTEVEOiBtX2hlYXAtPnZtKCktPmN1cnJlbnRUaHJlYWRJc0hvbGRpbmdBUElM
b2NrKCkgaW4gaW5zcGVjdG9yLXByb3RvY29sLyouCisgICAgICAgIDxodHRwczovL3dlYmtpdC5v
cmcvYi8xMjkzNjQ+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAg
ICAgICAgKiBpbn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iAgICAgICAgIHJldHVybjsKIAogICAgIC8vIEZJWE1FOiBN
YWtlIHRoZSBJbmplY3RlZFNjcmlwdCBhIG1vZHVsZSBpdHNlbGYuCisgICAgSlNDOjpBUElFbnRy
eVNoaW0gZW50cnlTaGltKGluamVjdGVkU2NyaXB0LnNjcmlwdFN0YXRlKCkpOwogICAgIERlcHJl
Y2F0ZWQ6OlNjcmlwdEZ1bmN0aW9uQ2FsbCBmdW5jdGlvbihpbmplY3RlZFNjcmlwdC5pbmplY3Rl
ZFNjcmlwdE9iamVjdCgpLCBBU0NJSUxpdGVyYWwoIm1vZHVsZSIpLCBpbmplY3RlZFNjcmlwdE1h
bmFnZXItPmluc3BlY3RvckVudmlyb25tZW50KCkuZnVuY3Rpb25DYWxsSGFuZGxlcigpKTsKICAg
ICBmdW5jdGlvbi5hcHBlbmRBcmd1bWVudChuYW1lKCkpOwogICAgIGJvb2wgaGFkRXhjZXB0aW9u
ID0gZmFsc2U7Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>225237</attachid>
            <date>2014-02-26 00:52:00 -0800</date>
            <delta_ts>2014-02-26 08:36:37 -0800</delta_ts>
            <desc>patch 2: added a comment.</desc>
            <filename>bug-129364.patch</filename>
            <type>text/plain</type>
            <size>1736</size>
            <attacher name="Mark Lam">mark.lam</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTY0NzA5KQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBA
CisyMDE0LTAyLTI2ICBNYXJrIExhbSAgPG1hcms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