Description
QtWebKit program is crashing on Embedded Linux Target if Web page contains even simple Java Script calls Which was working fine in Qt 5.3.2.
I have attached coredump and the code i used to reproduce this issue.
#0 0x72e9b372 in WTFCrash () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#1 0x72b58f72 in JSC::createExecutableInternal(JSC::VM&, JSC::SourceCode const&, JSC::Identifier const&, JSC::ConstructorKind, JSC::ConstructAbility) ()
from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#2 0x72b5afc6 in JSC::BuiltinExecutables::functionPrototypeApplyCodeExecutable() () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#3 0x72b4066e in JSC::functionPrototypeApplyCodeGenerator(JSC::VM&) () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#4 0x72d0c2b0 in JSC::FunctionPrototype::addFunctionProperties(JSC::ExecState*, JSC::JSGlobalObject*, JSC::JSFunction*, JSC::JSFunction, JSC::JSFunction*) ()
from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#5 0x729ec406 in JSC::JSGlobalObject::init(JSC::VM&) () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#6 0x732cf97a in WebCore::JSDOMGlobalObject::finishCreation(JSC::VM&, JSC::JSObject*) () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#7 0x732cfb0c in WebCore::JSDOMWindowBase::finishCreation(JSC::VM&, WebCore::JSDOMWindowShell*) () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#8 0x73a35674 in WebCore::JSDOMWindow::finishCreation(JSC::VM&, WebCore::JSDOMWindowShell*) () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#9 0x732e705e in WebCore::JSDOMWindowShell::setWindow(WTF::PassRefPtr<WebCore::DOMWindow>) () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#10 0x732e72a6 in WebCore::JSDOMWindowShell::finishCreation(JSC::VM&, WTF::PassRefPtr<WebCore::DOMWindow>) () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#11 0x7336c9ea in WebCore::ScriptController::createWindowShell(WebCore::DOMWrapperWorld&) () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#12 0x7336d398 in WebCore::ScriptController::initScript(WebCore::DOMWrapperWorld&) () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#13 0x730fe896 in WebCore::ScriptController::windowShell(WebCore::DOMWrapperWorld&) () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#14 0x7336dbac in WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&, WebCore::DOMWrapperWorld&, WebCore::ExceptionDetails*) ()
from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#15 0x7336e04a in WebCore::ScriptController::evaluate(WebCore::ScriptSourceCode const&, WebCore::ExceptionDetails*) ()
from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#16 0x731cb238 in WebCore::ScriptElement::executeScript(WebCore::ScriptSourceCode const&) () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#17 0x734005b0 in WebCore::HTMLScriptRunner::executePendingScriptAndDispatchEvent(WebCore::PendingScript&) () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#18 0x73400e8c in WebCore::HTMLScriptRunner::executeParsingBlockingScript() () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#19 0x7340113c in WebCore::HTMLScriptRunner::executeParsingBlockingScripts() () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#20 0x733fa91a in WebCore::HTMLDocumentParser::notifyFinished(WebCore::CachedResource*) () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#21 0x7349ff00 in WebCore::CachedResource::checkNotify() () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#22 0x734824fe in WebCore::SubresourceLoader::didFinishLoading(double) () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#23 0x736c77b0 in WebCore::QNetworkReplyHandler::finish() () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#24 0x736c73fe in WebCore::QNetworkReplyHandlerCallQueue::flush() [clone .part.104] () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#25 0x736c74aa in WebCore::QNetworkReplyWrapper::didReceiveFinished() () from /opt/poky/2.5.3/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/libQt5WebKit.so.5
#26 0x769558a0 in QMetaObject::activate (sender=0x17f, sender@entry=0x742f40, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0)
at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/corelib/kernel/qobject.cpp:3795
#27 0x76955ef8 in QMetaObject::activate (sender=sender@entry=0x742f40, m=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0)
at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/corelib/kernel/qobject.cpp:3648
#28 0x70859bfc in QNetworkReply::finished (this=this@entry=0x742f40) at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/build/src/network/.moc/moc_qnetworkreply.cpp:384
#29 0x707af5d4 in QNetworkReplyHttpImplPrivate::finished (this=0x610a50) at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/network/access/qnetworkreplyhttpimpl.cpp:2227
#30 0x707af880 in QNetworkReplyHttpImplPrivate::replyFinished (this=<optimized out>) at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/network/access/qnetworkreplyhttpimpl.cpp:1120
#31 0x7085f5b0 in QNetworkReplyHttpImpl::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x6d8057d0)
at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/build/src/network/.moc/moc_qnetworkreplyhttpimpl_p.cpp:260
#32 0x76956448 in QObject::event (this=<optimized out>, e=<optimized out>) at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/corelib/kernel/qobject.cpp:1260
#33 0x72288aa0 in QApplicationPrivate::notify_helper (this=this@entry=0x55ad68, receiver=receiver@entry=0x742f40, e=e@entry=0x6d80af18)
at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/widgets/kernel/qapplication.cpp:3736
#34 0x722908bc in QApplication::notify (this=0x7ef801bc, receiver=0x742f40, e=0x6d80af18) at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/widgets/kernel/qapplication.cpp:3483
#35 0x76922b60 in QCoreApplication::notifyInternal2 (receiver=0x742f40, event=event@entry=0x6d80af18)
at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/corelib/kernel/qcoreapplication.cpp:1060
#36 0x76922d4c in QCoreApplication::sendEvent (receiver=<optimized out>, event=event@entry=0x6d80af18)
at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/corelib/kernel/qcoreapplication.cpp:1450
#37 0x76925938 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x54dcd8)
--Type <return> to continue, or q <return> to quit--
at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/corelib/kernel/qcoreapplication.cpp:1799
#38 0x76925fb8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0)
at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/corelib/kernel/qcoreapplication.cpp:1653
#39 0x76986fb4 in postEventSourceDispatch (s=0x5766b0) at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/corelib/kernel/qeventdispatcher_glib.cpp:276
#40 0x71a5f454 in g_main_dispatch (context=0x6da04900) at /usr/src/debug/glib-2.0/1_2.54.3-r0/glib-2.54.3/glib/gmain.c:3165
#41 g_main_context_dispatch (context=context@entry=0x6da04900) at /usr/src/debug/glib-2.0/1_2.54.3-r0/glib-2.54.3/glib/gmain.c:3818
#42 0x71a5f638 in g_main_context_iterate (context=context@entry=0x6da04900, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
at /usr/src/debug/glib-2.0/1_2.54.3-r0/glib-2.54.3/glib/gmain.c:3891
#43 0x71a5f700 in g_main_context_iteration (context=0x6da04900, may_block=may_block@entry=1) at /usr/src/debug/glib-2.0/1_2.54.3-r0/glib-2.54.3/glib/gmain.c:3952
#44 0x769864c8 in QEventDispatcherGlib::processEvents (this=0x54ef00, flags=...) at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/corelib/kernel/qeventdispatcher_glib.cpp:422
#45 0x76920f4c in QEventLoop::exec (this=this@entry=0x7ef80158, flags=..., flags@entry=...) at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/corelib/kernel/qeventloop.cpp:225
#46 0x7692a46c in QCoreApplication::exec () at /usr/src/debug/qtbase/5.12.3+gitAUTOINC+534df5a33b-r0/git/src/corelib/kernel/qcoreapplication.cpp:1363
#47 0x0001cd00 in main ()