<?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>41352</bug_id>
          
          <creation_ts>2010-06-29 07:44:09 -0700</creation_ts>
          <short_desc>REGRESSION (r62052): Many regression tests crashing on Windows in JSLazyEventListener::initializeJSFunction</short_desc>
          <delta_ts>2010-07-01 09:56:35 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>41357</dup_id>
          
          <bug_file_loc>http://build.webkit.org/builders/Windows%20Debug%20%28Tests%29/builds/15667/steps/layout-test/logs/stdio</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, LayoutTestFailure, Regression</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>beidson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>244288</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-06-29 07:44:09 -0700</bug_when>
    <thetext>r62052 introduced crashes inside JSLazyEventListener::initializeFunction. The problematic line is:

        static_cast&lt;JSNode*&gt;(wrapper())-&gt;pushEventHandlerScope(exec, scope);

In the crashing case, wrapper() is a JSGlobalObject, not a JSNode, so the cast is invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>244289</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-06-29 07:44:33 -0700</bug_when>
    <thetext>Note that r62052 was part of bug 40484.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>244291</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-06-29 07:46:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/8141484&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>244293</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-06-29 07:48:00 -0700</bug_when>
    <thetext>Here&apos;s a backtrace in a crashing case:


&gt;	WebKit.dll!WebCore::JSLazyEventListener::initializeJSFunction(WebCore::ScriptExecutionContext * executionContext=0x0451c6fc)  Line 124 + 0x31 bytes	C++
     WebKit.dll!WebCore::JSEventListener::jsFunction(WebCore::ScriptExecutionContext * scriptExecutionContext=0x0451c6fc)  Line 79 + 0x13 bytes    C++
     WebKit.dll!WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext * scriptExecutionContext=0x0451c6fc, WebCore::Event * event=0x045702d0)  Line 69 + 0xc bytes    C++
     WebKit.dll!WebCore::EventTarget::fireEventListeners(WebCore::Event * event=0x045702d0, WebCore::EventTargetData * d=0x044ce6b4, WTF::Vector&lt;WebCore::RegisteredEventListener,1&gt; &amp; entry=[1]({listener=0x0454e620 {m_functionName={onload} m_eventParameterName={event} m_code={startTest()} ...} useCapture=false }))  Line 329 + 0x35 bytes    C++
     WebKit.dll!WebCore::EventTarget::fireEventListeners(WebCore::Event * event=0x045702d0)  Line 295    C++
     WebKit.dll!WebCore::DOMWindow::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt; prpEvent={...}, WTF::PassRefPtr&lt;WebCore::EventTarget&gt; prpTarget={...})  Line 1480 + 0x11 bytes    C++
     WebKit.dll!WebCore::DOMWindow::dispatchLoadEvent()  Line 1436    C++
     WebKit.dll!WebCore::Document::dispatchWindowLoadEvent()  Line 3195    C++
     WebKit.dll!WebCore::Document::implicitClose()  Line 1907    C++
     WebKit.dll!WebCore::FrameLoader::checkCallImplicitClose()  Line 947    C++
     WebKit.dll!WebCore::FrameLoader::checkCompleted()  Line 896    C++
     WebKit.dll!WebCore::FrameLoader::finishedParsing()  Line 835    C++
     WebKit.dll!WebCore::Document::finishedParsing()  Line 4409    C++
     WebKit.dll!WebCore::LegacyHTMLTreeBuilder::finished()  Line 1642 + 0x1a bytes    C++
     WebKit.dll!WebCore::HTMLTreeBuilder::finished()  Line 1043    C++
     WebKit.dll!WebCore::HTMLDocumentParser::end()  Line 267    C++
     WebKit.dll!WebCore::HTMLDocumentParser::attemptToEnd()  Line 279    C++
     WebKit.dll!WebCore::HTMLDocumentParser::finish()  Line 296    C++
     WebKit.dll!WebCore::Document::finishParsing()  Line 2054 + 0x20 bytes    C++
     WebKit.dll!WebCore::DocumentWriter::endIfNotLoadingMainResource()  Line 222    C++
     WebKit.dll!WebCore::DocumentWriter::end()  Line 207    C++
     WebKit.dll!WebCore::DocumentLoader::finishedLoading()  Line 270    C++
     WebKit.dll!WebCore::FrameLoader::finishedLoading()  Line 2216    C++
     WebKit.dll!WebCore::MainResourceLoader::didFinishLoading()  Line 425    C++
     WebKit.dll!WebCore::ResourceLoader::didFinishLoading(WebCore::ResourceHandle * __formal=0x044d8530)  Line 443 + 0xf bytes    C++
     WebKit.dll!WebCore::didFinishLoading(_CFURLConnection * conn=0x04525c40, const void * clientInfo=0x044d8530)  Line 240 + 0x1e bytes    C++</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>245402</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-07-01 09:56:35 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 41357 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>