<?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>77776</bug_id>
          
          <creation_ts>2012-02-03 13:53:17 -0800</creation_ts>
          <short_desc>Crash in WebCore::DOMTimer::DOMTimer(WebCore::ScriptExecutionContext*, WTF::PassOwnPtr&lt;WebCore::ScheduledAction&gt;, int, bool)</short_desc>
          <delta_ts>2012-02-07 13:53:18 -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>WebCore JavaScript</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.7</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.charliesheen.com/content/208905?code=Vwr1mwQ</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="Dimitris Apostolou">dimitris.apostolou</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>549042</commentid>
    <comment_count>0</comment_count>
    <who name="Dimitris Apostolou">dimitris.apostolou</who>
    <bug_when>2012-02-03 13:53:17 -0800</bug_when>
    <thetext>r106674

Reproducibility: always

Steps:
Go to http://www.charliesheen.com/content/208905?code=Vwr1mwQ

What happened:
Crash (seems like infinite loop).

0   com.apple.WebCore             	0x0000000103ff6c50 WebCore::DOMTimer::DOMTimer(WebCore::ScriptExecutionContext*, WTF::PassOwnPtr&lt;WebCore::ScheduledAction&gt;, int, bool) + 336 (DOMTimer.cpp:76)
1   com.apple.WebCore             	0x0000000103ff6af4 WebCore::DOMTimer::DOMTimer(WebCore::ScriptExecutionContext*, WTF::PassOwnPtr&lt;WebCore::ScheduledAction&gt;, int, bool) + 52 (DOMTimer.cpp:84)
2   com.apple.WebCore             	0x0000000103ff6fd0 WebCore::DOMTimer::install(WebCore::ScriptExecutionContext*, WTF::PassOwnPtr&lt;WebCore::ScheduledAction&gt;, int, bool) + 112 (DOMTimer.cpp:97)
3   com.apple.WebCore             	0x000000010400790b WebCore::DOMWindow::setTimeout(WTF::PassOwnPtr&lt;WebCore::ScheduledAction&gt;, int, int&amp;) + 139 (DOMWindow.cpp:1504)
4   com.apple.WebCore             	0x00000001045df24b WebCore::JSDOMWindow::setTimeout(JSC::ExecState*) + 443 (JSDOMWindowCustom.cpp:648)
5   com.apple.WebCore             	0x00000001045d2475 WebCore::jsDOMWindowPrototypeFunctionSetTimeout(JSC::ExecState*) + 389 (JSDOMWindow.cpp:11306)
6   ???                           	0x00005bec46601218 0 + 101070351110680
7   com.apple.JavaScriptCore      	0x00000001030c71d9 JSC::JITCode::execute(JSC::RegisterFile*, JSC::ExecState*, JSC::JSGlobalData*) + 121 (JITCode.h:115)
8   com.apple.JavaScriptCore      	0x00000001030c3bd6 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;) + 1766 (Interpreter.cpp:1083)
9   com.apple.JavaScriptCore      	0x0000000102f8b04b JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;) + 315 (CallData.cpp:39)
10  com.apple.JavaScriptCore      	0x000000010315f256 JSObjectCallAsFunction + 566 (JSObjectRef.cpp:443)
11  com.apple.Safari.framework    	0x000000010bf8b0c8 Safari::EventTarget::handleEvent(Safari::Event*, Safari::RegisteredEventListener const&amp;) + 110
12  com.apple.Safari.framework    	0x000000010bf8b285 Safari::EventTarget::fireEventListeners(Safari::Event*, Safari::EventTargetTracker*) + 363
13  com.apple.Safari.framework    	0x000000010bf8b39b Safari::EventTarget::fireEventListeners(Safari::Event*) + 199
14  com.apple.Safari.framework    	0x000000010bf8b50e Safari::EventTarget::dispatchEvent(Safari::Event*) + 326
15  com.apple.Safari.framework    	0x000000010bf55e3d Safari::ContentExtension::dispatchMessageToPage(Safari::SString const&amp;, Safari::WK::SerializedScriptValue const&amp;, Safari::WK::BundlePage const&amp;) + 105
16  com.apple.Safari.framework    	0x000000010bf59aff Safari::ContentExtensionsController::dispatchExtensionMessageToPage(Safari::SString const&amp;, Safari::SString const&amp;, Safari::WK::SerializedScriptValue const&amp;, Safari::WK::BundlePage const&amp;) const + 65
17  com.apple.Safari.framework    	0x000000010bec8e1b Safari::BrowserBundleController::didReceiveMessage(Safari::WK::Bundle&amp;, Safari::WK::String&amp;, Safari::WK::Type&amp;) + 8485
18  com.apple.Safari.framework    	0x000000010bf3fc03 _ZN6Safari2WKL17didReceiveMessageEPK14OpaqueWKBundlePK14OpaqueWKStringPKvS8_ + 91
19  com.apple.WebKit2             	0x000000010207a938 WebKit::InjectedBundleClient::didReceiveMessage(WebKit::InjectedBundle*, WTF::String const&amp;, WebKit::APIObject*) + 152 (InjectedBundleClient.cpp:62)
20  com.apple.WebKit2             	0x00000001020709ed WebKit::InjectedBundle::didReceiveMessage(WTF::String const&amp;, WebKit::APIObject*) + 61 (InjectedBundle.cpp:438)
21  com.apple.WebKit2             	0x0000000102070ade WebKit::InjectedBundle::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) + 222 (InjectedBundle.cpp:450)
22  com.apple.WebKit2             	0x00000001022dfa7d WebKit::WebProcess::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) + 797 (WebProcess.cpp:657)
23  com.apple.WebKit2             	0x000000010218143f WebKit::WebConnectionToUIProcess::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) + 383 (WebConnectionToUIProcess.cpp:88)
24  com.apple.WebKit2             	0x000000010218148d non-virtual thunk to WebKit::WebConnectionToUIProcess::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*) + 61
25  com.apple.WebKit2             	0x000000010202a63c CoreIPC::Connection::dispatchMessage(CoreIPC::Connection::Message&lt;CoreIPC::ArgumentDecoder&gt;&amp;) + 428 (Connection.cpp:692)
26  com.apple.WebKit2             	0x000000010202cec3 CoreIPC::Connection::dispatchMessages() + 211 (Connection.cpp:720)
27  com.apple.WebKit2             	0x0000000102033b30 WTF::FunctionWrapper&lt;void (CoreIPC::Connection::*)()&gt;::operator()(CoreIPC::Connection*) + 112 (Functional.h:173)
28  com.apple.WebKit2             	0x0000000102033ab5 WTF::BoundFunctionImpl&lt;WTF::FunctionWrapper&lt;void (CoreIPC::Connection::*)()&gt;, void ()(CoreIPC::Connection*)&gt;::operator()() + 53 (Functional.h:373)
29  com.apple.WebCore             	0x0000000104e4d9dd WTF::Function&lt;void ()()&gt;::operator()() const + 141 (Functional.h:581)
30  com.apple.WebCore             	0x0000000104e4d7b3 WebCore::RunLoop::performWork() + 147 (RunLoop.cpp:66)
31  com.apple.WebCore             	0x0000000104e4c390 WebCore::RunLoop::performWork(void*) + 96 (RunLoopMac.mm:65)
32  com.apple.CoreFoundation      	0x00007fff930f46e1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
33  com.apple.CoreFoundation      	0x00007fff930f400c __CFRunLoopDoSources0 + 444
34  com.apple.CoreFoundation      	0x00007fff9311ad39 __CFRunLoopRun + 905
35  com.apple.CoreFoundation      	0x00007fff9311a676 CFRunLoopRunSpecific + 230
36  com.apple.HIToolbox           	0x00007fff9728831f RunCurrentEventLoopInMode + 277
37  com.apple.HIToolbox           	0x00007fff9728f5c9 ReceiveNextEventCommon + 355
38  com.apple.HIToolbox           	0x00007fff9728f456 BlockUntilNextEventMatchingListInMode + 62
39  com.apple.AppKit              	0x00007fff906acf5d _DPSNextEvent + 659
40  com.apple.AppKit              	0x00007fff906ac861 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
41  com.apple.AppKit              	0x00007fff906a919d -[NSApplication run] + 470
42  com.apple.WebCore             	0x0000000104e4c7bc WebCore::RunLoop::run() + 92 (RunLoopMac.mm:101)
43  com.apple.WebKit2             	0x00000001022f5f24 WebKit::WebProcessMain(WebKit::CommandLine const&amp;) + 3556 (WebProcessMainMac.mm:176)
44  com.apple.WebKit2             	0x000000010220c70f _ZL10WebKitMainRKN6WebKit11CommandLineE + 239 (WebKitMain.cpp:50)
45  com.apple.WebKit2             	0x000000010220c5f2 WebKitMain + 178 (WebKitMain.cpp:74)
46  com.apple.WebProcess          	0x0000000101ea2d82 main + 290
47  com.apple.WebProcess          	0x0000000101ea2c54 start + 52

Expected result:
WebKit does not crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>549482</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-02-04 15:23:09 -0800</bug_when>
    <thetext>I&apos;m not seeing any problem with this page using r106740.

&gt; Crash (seems like infinite loop).

Could you please elaborate? Is there a crash log saved and visible in Console.app?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>551344</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitris Apostolou">dimitris.apostolou</who>
    <bug_when>2012-02-07 13:53:12 -0800</bug_when>
    <thetext>Hm, not seeing it either in 106914</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>