<?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>61835</bug_id>
          
          <creation_ts>2011-05-31 20:46:09 -0700</creation_ts>
          <short_desc>Web Inspector: [JSC] JSLock ASSERTs Seen Under eventListenerHandlerBody</short_desc>
          <delta_ts>2011-06-01 06:02:02 -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 Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>0</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>apavlov</cc>
    
    <cc>bweinstein</cc>
    
    <cc>commit-queue</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>413112</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2011-05-31 20:46:09 -0700</bug_when>
    <thetext>A few of the ASSERTs. I only saw this with the Interpreter and not the JIT.
But it might as well be fixed.

 ASSERTION FAILED: JSLock::lockCount() &gt; 0
 Source/JavaScriptCore/runtime/JSCell.h(399) : void* JSC::Heap::allocate(size_t)
 1   JSC::Heap::allocate(unsigned long)
 2   JSC::JSCell::operator new(unsigned long, JSC::JSGlobalData*)
 3   JSC::jsNontrivialString(JSC::JSGlobalData*, JSC::UString const&amp;)
 4   JSC::jsNontrivialString(JSC::ExecState*, JSC::UString const&amp;)
 5   JSC::JSValue JSC::jsMakeNontrivialString&lt;char const*, JSC::UString, char const*, JSC::UString, char const*, JSC::UString&gt;(JSC::ExecState*, char const*, JSC::UString, char const*, JSC::UString, char const*, JSC::UString)
 6   _ZN3JSCL25functionProtoFuncToStringEPNS_9ExecStateE
 7   JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)
 8   JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)
 9   _ZN3JSCL24callDefaultValueFunctionEPNS_9ExecStateEPKNS_8JSObjectERKNS_10IdentifierE
 10  JSC::JSObject::defaultValue(JSC::ExecState*, JSC::PreferredPrimitiveType) const
 11  JSC::JSObject::toPrimitive(JSC::ExecState*, JSC::PreferredPrimitiveType) const
 12  JSC::JSObject::toString(JSC::ExecState*) const
 13  WebCore::eventListenerHandlerBody(WebCore::Document*, WebCore::EventListener*)
 14  WebCore::InspectorDOMAgent::buildObjectForEventListener(WebCore::RegisteredEventListener const&amp;, WTF::AtomicString const&amp;, WebCore::Node*)
 15  WebCore::InspectorDOMAgent::getEventListenersForNode(WTF::String*, int, WTF::RefPtr&lt;WebCore::InspectorArray&gt;*)

 ASSERTION FAILED: JSLock::lockCount() &gt; 0
 JSCell.h(399) : void* JSC::Heap::allocate(size_t)
 1   JSC::Heap::allocate(unsigned long)
 2   JSC::JSCell::operator new(unsigned long, JSC::JSGlobalData*)
 3   JSC::jsNontrivialString(JSC::JSGlobalData*, JSC::UString const&amp;)
 4   JSC::jsNontrivialString(JSC::ExecState*, JSC::UString const&amp;)
 5   WebCore::JSLazyEventListener::initializeJSFunction(WebCore::ScriptExecutionContext*) const
 6   WebCore::JSEventListener::jsFunction(WebCore::ScriptExecutionContext*) const
 7   WebCore::eventListenerHandlerBody(WebCore::Document*, WebCore::EventListener*)
 8   WebCore::InspectorDOMAgent::buildObjectForEventListener(WebCore::RegisteredEventListener const&amp;, WTF::AtomicString const&amp;, WebCore::Node*)
 9   WebCore::InspectorDOMAgent::getEventListenersForNode(WTF::String*, int, WTF::RefPtr&lt;WebCore::InspectorArray&gt;*)

Patch to follow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413113</commentid>
    <comment_count>1</comment_count>
      <attachid>95539</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2011-05-31 20:48:00 -0700</bug_when>
    <thetext>Created attachment 95539
[PATCH] Add JSLock Silence Assertions</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413280</commentid>
    <comment_count>2</comment_count>
      <attachid>95539</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-06-01 04:18:11 -0700</bug_when>
    <thetext>Comment on attachment 95539
[PATCH] Add JSLock Silence Assertions

Clearing flags on attachment: 95539

Committed r87793: &lt;http://trac.webkit.org/changeset/87793&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413281</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-06-01 04:18:15 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413320</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-06-01 06:02:02 -0700</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 95539:

inspector/debugger/debugger-scripts.html bug 59921 (authors: pfeldman@chromium.org and podivilov@chromium.org)
http/tests/misc/favicon-loads-with-icon-loading-override.html bug 58412 (author: alice.liu@apple.com)
The commit-queue is continuing to process your patch.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>95539</attachid>
            <date>2011-05-31 20:48:00 -0700</date>
            <delta_ts>2011-06-01 04:18:11 -0700</delta_ts>
            <desc>[PATCH] Add JSLock Silence Assertions</desc>
            <filename>jslock-asserts.patch</filename>
            <type>text/plain</type>
            <size>1384</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCAyODIwYWE4Li42ODZjNGExIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29y
ZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0yLDYgKzIsMTgg
QEAKIAogICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KIAorICAgICAgICBXZWIg
SW5zcGVjdG9yOiBbSlNDXSBKU0xvY2sgQVNTRVJUcyBTZWVuIFVuZGVyIGV2ZW50TGlzdGVuZXJI
YW5kbGVyQm9keQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/
aWQ9NjE4MzUKKworICAgICAgICBBZGQgYSBKU0xvY2sgY2FsbCBiZWZvcmUgcG9zc2libGUgYWxs
b2NhdGlvbnMgaW4ganNGdW5jdGlvbiBhbmQgdG9TdHJpbmcuCisKKyAgICAgICAgKiBiaW5kaW5n
cy9qcy9TY3JpcHRFdmVudExpc3RlbmVyLmNwcDoKKyAgICAgICAgKFdlYkNvcmU6OmV2ZW50TGlz
dGVuZXJIYW5kbGVyQm9keSk6CisKKzIwMTEtMDUtMzEgIEpvc2VwaCBQZWNvcmFybyAgPGpvZXBl
Y2tA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