Bug 81773 - [EFL] Crash in fast/dom/navigator-detached-nocrash.html
Summary: [EFL] Crash in fast/dom/navigator-detached-nocrash.html
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Raphael Kubo da Costa (:rakuco)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-21 06:20 PDT by Raphael Kubo da Costa (:rakuco)
Modified: 2012-03-22 17:35 PDT (History)
6 users (show)

See Also:


Attachments
Patch (1.85 KB, patch)
2012-03-22 14:52 PDT, Raphael Kubo da Costa (:rakuco)
abarth: review+
abarth: commit-queue+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Kubo da Costa (:rakuco) 2012-03-21 06:20:46 PDT
DumpRenderTree has been crashing on fast/dom/navigator-detached-nocrash.html for some time.

Backtrace:
#0  0x080bb052 in WebCore::Frame::page (this=0x0) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/page/Frame.h:351
#1  0xb46bc62a in WebCore::BatteryManager::BatteryManager (this=0x824e3d8, context=0x824cbb8, navigator=0x834e720) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/Modules/battery/BatteryManager.cpp:47
#2  0xb46bc477 in WebCore::BatteryManager::create (context=0x824cbb8, navigator=0x834e720) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/Modules/battery/BatteryManager.cpp:36
#3  0xb46b942b in WebCore::NavigatorBattery::webkitBattery (context=0x824cbb8, navigator=0x834e720) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/Modules/battery/NavigatorBattery.cpp:44
#4  0xb49705fd in WebCore::jsNavigatorWebkitBattery (exec=0xad9ff0c8, slotBase=...) at /home/rakuco/dev/webkit/WebKit/WebKitBuild/Debug-efl/Debug/DerivedSources/WebCore/JSNavigator.cpp:318
#5  0x080ad9fd in JSC::PropertySlot::getValue (this=0xbfffdb1c, exec=0xad9ff0c8, propertyName=...) at /home/rakuco/dev/webkit/WebKit/Source/JavaScriptCore/runtime/PropertySlot.h:75
#6  0xb7497437 in JSC::JSValue::get (this=0xbfffdbb4, exec=0xad9ff0c8, propertyName=..., slot=...) at /home/rakuco/dev/webkit/WebKit/Source/JavaScriptCore/runtime/JSObject.h:801
#7  0xb7497335 in JSC::JSValue::get (this=0xbfffdbb4, exec=0xad9ff0c8, propertyName=...) at /home/rakuco/dev/webkit/WebKit/Source/JavaScriptCore/runtime/JSObject.h:787
#8  0xb75471ac in JSC::cti_op_get_by_val (args=0xbfffdc00) at /home/rakuco/dev/webkit/WebKit/Source/JavaScriptCore/jit/JITStubs.cpp:2458
#9  0xb75418b7 in JSC::JITThunks::tryCacheGetByID (callFrame=0xae74ea00, codeBlock=0xfffffffb, returnAddress=..., baseValue=..., propertyName=..., slot=..., stubInfo=0xbfffdc38) at /home/rakuco/dev/webkit/WebKit/Source/JavaScriptCore/jit/JITStubs.cpp:970
#10 0xbfffdc38 in ?? ()
#11 0xb750f9bf in JSC::JITCode::execute (this=0xad99fd70, registerFile=0x82552ac, callFrame=0xad9ff040, globalData=0x8180160) at /home/rakuco/dev/webkit/WebKit/Source/JavaScriptCore/jit/JITCode.h:127
#12 0xb750ccbf in JSC::Interpreter::executeCall (this=0x82552a0, callFrame=0xad9efcb4, function=0xae74f340, callType=JSC::CallTypeJS, callData=..., thisValue=..., args=...) at /home/rakuco/dev/webkit/WebKit/Source/JavaScriptCore/interpreter/Interpreter.cpp:1270
#13 0xb75cb952 in JSC::call (exec=0xad9efcb4, functionObject=..., callType=JSC::CallTypeJS, callData=..., thisValue=..., args=...) at /home/rakuco/dev/webkit/WebKit/Source/JavaScriptCore/runtime/CallData.cpp:39
#14 0xb46d8812 in WebCore::JSMainThreadExecState::call (exec=0xad9efcb4, functionObject=..., callType=JSC::CallTypeJS, callData=..., thisValue=..., args=...) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/bindings/js/JSMainThreadExecState.h:56
#15 0xb46ff043 in WebCore::JSEventListener::handleEvent (this=0x8234450, scriptExecutionContext=0x824cbb8, event=0x82222a0) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/bindings/js/JSEventListener.cpp:133
#16 0xb3d8614a in WebCore::EventTarget::fireEventListeners (this=0x8186fa0, event=0x82222a0, d=0x8187094, entry=...) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/dom/EventTarget.cpp:231
#17 0xb3d85fdd in WebCore::EventTarget::fireEventListeners (this=0x8186fa0, event=0x82222a0) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/dom/EventTarget.cpp:198
#18 0xb41222b1 in WebCore::DOMWindow::dispatchEvent (this=0x8186fa0, prpEvent=..., prpTarget=...) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/page/DOMWindow.cpp:1651
#19 0xb412206e in WebCore::DOMWindow::dispatchLoadEvent (this=0x8186fa0) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/page/DOMWindow.cpp:1625
#20 0xb3d28d00 in WebCore::Document::dispatchWindowLoadEvent (this=0x824cab0) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/dom/Document.cpp:3741
#21 0xb3d23ab4 in WebCore::Document::implicitClose (this=0x824cab0) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/dom/Document.cpp:2304
#22 0xb4079121 in WebCore::FrameLoader::checkCallImplicitClose (this=0x8166568) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/loader/FrameLoader.cpp:799
#23 0xb4078ecf in WebCore::FrameLoader::checkCompleted (this=0x8166568) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/loader/FrameLoader.cpp:745
#24 0xb4078c21 in WebCore::FrameLoader::finishedParsing (this=0x8166568) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/loader/FrameLoader.cpp:678
#25 0xb3d2b8b2 in WebCore::Document::finishedParsing (this=0x824cab0) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/dom/Document.cpp:4486
#26 0xb3f7fae7 in WebCore::HTMLTreeBuilder::finished (this=0x8261670) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/html/parser/HTMLTreeBuilder.cpp:2818
#27 0xb3f5680a in WebCore::HTMLDocumentParser::end (this=0x81c53c0) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/html/parser/HTMLDocumentParser.cpp:381
#28 0xb3f56925 in WebCore::HTMLDocumentParser::attemptToRunDeferredScriptsAndEnd (this=0x81c53c0) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/html/parser/HTMLDocumentParser.cpp:390
#29 0xb3f559f5 in WebCore::HTMLDocumentParser::prepareToStopParsing (this=0x81c53c0) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/html/parser/HTMLDocumentParser.cpp:153
#30 0xb3f5696d in WebCore::HTMLDocumentParser::attemptToEnd (this=0x81c53c0) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/html/parser/HTMLDocumentParser.cpp:402
#31 0xb3f56a2e in WebCore::HTMLDocumentParser::finish (this=0x81c53c0) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/html/parser/HTMLDocumentParser.cpp:429
#32 0xb406faee in WebCore::DocumentWriter::endIfNotLoadingMainResource (this=0x826cb54) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/loader/DocumentWriter.cpp:249
#33 0xb406fa0a in WebCore::DocumentWriter::end (this=0x826cb54) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/loader/DocumentWriter.cpp:224
#34 0xb4061fa9 in WebCore::DocumentLoader::finishedLoading (this=0x826ca98) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/loader/DocumentLoader.cpp:294
#35 0xb407ea5e in WebCore::FrameLoader::finishedLoading (this=0x8166568) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/loader/FrameLoader.cpp:2058
#36 0xb40930fc in WebCore::MainResourceLoader::didFinishLoading (this=0x82856a8, finishTime=0) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/loader/MainResourceLoader.cpp:480
#37 0xb40a4cbb in WebCore::ResourceLoader::didFinishLoading (this=0x82856a8, finishTime=0) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/loader/ResourceLoader.cpp:452
#38 0xb4b28866 in WebCore::readCallback (source=0x814f4c0, asyncResult=0x8156678, data=0x824fb50) at /home/rakuco/dev/webkit/WebKit/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:662
#39 0xb7bac5b8 in async_ready_callback_wrapper (source_object=0x814f4c0, res=0x8156678, user_data=0x824fb50) at ginputstream.c:470
#40 0xb7bbf6e0 in g_simple_async_result_complete (simple=0x8156678) at gsimpleasyncresult.c:744
#41 0xb7bbf753 in complete_in_idle_cb_for_thread (_data=0x8281f10) at gsimpleasyncresult.c:812
#42 0xb7a2d3b0 in g_idle_dispatch (source=0xae605d38, callback=0xb7bbf720 <complete_in_idle_cb_for_thread>, user_data=0x8281f10) at gmain.c:4632
#43 0xb7a2f97a in g_main_dispatch (context=0x8156080) at gmain.c:2513
#44 g_main_context_dispatch (context=0x8156080) at gmain.c:3050
#45 0xb7d68f4d in _ecore_glib_select__locked (ecore_timeout=0xbfffe8f8, efds=0xbfffe878, wfds=0xbfffe7f8, rfds=0xbfffe778, ecore_fds=10, ctx=0x8156080) at ecore_glib.c:171
#46 _ecore_glib_select (ecore_fds=10, rfds=0xbfffe778, wfds=0xbfffe7f8, efds=0xbfffe878, ecore_timeout=0xbfffe8f8) at ecore_glib.c:205
#47 0xb7d62b9c in _ecore_main_select (timeout=0) at ecore_main.c:1419
#48 0xb7d6359a in _ecore_main_loop_iterate_internal (once_only=0) at ecore_main.c:1801
#49 0xb7d63a07 in ecore_main_loop_begin () at ecore_main.c:906
#50 0x0809770b in runTest (cTestPathOrURL=0xbfffed05 "../../../LayoutTests/fast/dom/navigator-detached-no-crash.html") at /home/rakuco/dev/webkit/WebKit/Tools/DumpRenderTree/efl/DumpRenderTree.cpp:248
#51 0x08097ef4 in main (argc=2, argv=0xbfffeaa4) at /home/rakuco/dev/webkit/WebKit/Tools/DumpRenderTree/efl/DumpRenderTree.cpp:409
Comment 1 Dominik Röttsches (drott) 2012-03-21 06:31:13 PDT
Kihong, do you think you could take a look - looks like it's coming from the Battery API direction?
Comment 2 Raphael Kubo da Costa (:rakuco) 2012-03-21 06:32:08 PDT
The buildbot logs do not help much, but the text was just failing at least until r111005, and the crash goes back as far as r111188.
Comment 3 Raphael Kubo da Costa (:rakuco) 2012-03-22 14:52:47 PDT
Created attachment 133354 [details]
Patch
Comment 4 Raphael Kubo da Costa (:rakuco) 2012-03-22 15:03:59 PDT
Committed r111770: <http://trac.webkit.org/changeset/111770>