Bug 240002

Summary: Crash when switching from khtml back to kwebkitpart
Product: [Applications] konqueror Reporter: Dawit Alemayehu <adawit>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: justin.zobel, kde
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dawit Alemayehu 2010-05-29 19:22:44 UTC
Application: konqueror (4.4.70 (KDE 4.4.70 (KDE 4.5 >= 20100330)))
KDE Platform Version: 4.4.81 (KDE 4.4.81 (KDE 4.5 >= 20100527)) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.33-ARCH i686
Distribution (Platform): Archlinux Packages

-- Information about the crash:
During the triage of bug# 239935, Konqueror crashed when switching the View mode from khtml to kwebkitpart while viewing the java applet test site:

http://www.java.com/en/download/help/testvm.xml

Problem is reproducible for me regardless of which rendering engine is set as the default html handler. The view mode switching works the other way around. Additionally the java applet plugin viewer does not seem to render the java applet correctly on my machine. Tested with kdelibs is trunk revision 1131768...

The crash can be reproduced every time.

-- Backtrace:
Application: Konqueror (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0xb5a15710 (LWP 2191))]

Thread 3 (Thread 0xad82eb70 (LWP 2212)):
#0  0xb77ed424 in __kernel_vsyscall ()
#1  0xb6dc4372 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb6e300df in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb6e26021 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb6e2fabe in ?? () from /usr/lib/libQtCore.so.4
#5  0xb6dbfadc in start_thread () from /lib/libpthread.so.0
#6  0xb6171c1e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xaa4d9b70 (LWP 2249)):
#0  0xb77ed424 in __kernel_vsyscall ()
#1  0xb6dc4045 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb479b487 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0xb6dbfadc in start_thread () from /lib/libpthread.so.0
#4  0xb6171c1e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb5a15710 (LWP 2191)):
[KCrash Handler]
#7  0x312c3437 in ?? ()
#8  0xb09e169e in KJS::pluginRootGet (exec=0xbff09f38, ext=0x9932f08, i=..., slot=...) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/khtml/ecma/kjs_scriptable.cpp:91
#9  0xb097d067 in KJS::HTMLElement::getOwnPropertySlot (this=0xadd75280, exec=0xbff09f38, propertyName=..., slot=...)
    at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/khtml/ecma/kjs_html.cpp:1268
#10 0xb057d75e in KJS::JSObject::getPropertySlot (this=0xadd75280, exec=0xbff09f38, propertyName=...) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/kjs/object.h:592
#11 KJS::JSObject::get (this=0xadd75280, exec=0xbff09f38, propertyName=...) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/kjs/object.cpp:88
#12 0xb0592836 in KJS::Machine::runBlock (exec=0xbff09f38, codeBlock=..., parentExec=0x0) at codes.def:712
#13 0xb054eae5 in KJS::FunctionBodyNode::execute (this=0x9cd9088, exec=0xbff09f38) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/kjs/nodes.cpp:927
#14 0xb057969d in KJS::GlobalFuncImp::callAsFunction (this=0xae5409c0, exec=0xbff0a3b4, args=...) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/kjs/function.cpp:945
#15 0xb059a416 in KJS::JSObject::call (exec=0xbff0a3b4, codeBlock=..., parentExec=0x0) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/kjs/object.h:616
#16 KJS::Machine::runBlock (exec=0xbff0a3b4, codeBlock=..., parentExec=0x0) at codes.def:1209
#17 0xb054eae5 in KJS::FunctionBodyNode::execute (this=0x9d207a0, exec=0xbff0a3b4) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/kjs/nodes.cpp:927
#18 0xb058226a in KJS::Interpreter::evaluate (this=0x9d533e0, sourceURL=..., startingLineNumber=1, code=0x9d4f438, codeLength=70, thisV=0xadd75280)
    at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/kjs/interpreter.cpp:556
#19 0xb05823f7 in KJS::Interpreter::evaluate (this=0x9d533e0, sourceURL=..., startingLineNumber=1, code=..., thisV=0xadd75280)
    at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/kjs/interpreter.cpp:496
#20 0xb09a5094 in KJSProxy::evaluate (this=0x9a2d148, filename=..., baseLine=1, str=..., n=..., completion=0xbff0a608)
    at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/khtml/ecma/kjs_proxy.cpp:126
#21 0xb0738f01 in KHTMLPart::executeScript (this=0x9e57118, n=..., script=...) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/khtml/khtml_part.cpp:1296
#22 0xb09df619 in KJS::KHTMLPartScriptable::evaluateScript (this=0x9e60cd0, caller=0x9932f08, contextObjectId=18446744072331154048, code=..., lang=KParts::ScriptableExtension::ECMAScript)
    at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/khtml/ecma/kjs_scriptable.cpp:844
#23 0xb504b29d in KParts::ScriptableLiveConnectExtension::liveConnectEvent (this=0x9932f08, event=..., args=...)
    at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/kparts/scriptableextension.cpp:401
#24 0xb504b55b in KParts::ScriptableLiveConnectExtension::qt_metacall (this=0x9932f08, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbff0a8e0)
    at /home/dalemayehu/Projects/build/KDE/trunk/kdelibs/kparts/scriptableextension_p.moc:74
#25 0xb6f296ea in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#26 0xb6f38715 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#27 0xae36e45f in KJavaAppletViewerLiveConnectExtension::partEvent (this=0x9d0fc68, _t1=0, _t2=..., _t3=...) at /home/dalemayehu/Projects/build/KDE/trunk/kdelibs/khtml/java/kjavaappletviewer.moc:155
#28 0xae37669c in KJavaAppletViewerLiveConnectExtension::jsEvent (this=0x9d0fc68, args=...) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/khtml/java/kjavaappletviewer.cpp:654
#29 0xae3767aa in KJavaAppletViewerLiveConnectExtension::qt_metacall (this=0x9d0fc68, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbff0aa68)
    at /home/dalemayehu/Projects/build/KDE/trunk/kdelibs/khtml/java/kjavaappletviewer.moc:143
#30 0xb6f296ea in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#31 0xb6f38715 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#32 0xae3592e3 in KJavaApplet::jsEvent (this=0x9ce2098, _t1=...) at /home/dalemayehu/Projects/build/KDE/trunk/kdelibs/khtml/java/kjavaapplet.moc:84
#33 0xae359929 in KJavaApplet::jsData (this=0x9ce2098, width=500, height=340) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/khtml/java/kjavaapplet.h:237
#34 KJavaApplet::resizeAppletWidget (this=0x9ce2098, width=500, height=340) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/khtml/java/kjavaapplet.cpp:157
#35 0xae35be5e in KJavaAppletContext::received (this=0x9cf0318, cmd=..., arg=...) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/khtml/java/kjavaappletcontext.cpp:180
#36 0xae3633e9 in KJavaAppletServer::slotJavaRequest (this=0x9cf0638, qb=...) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/khtml/java/kjavaappletserver.cpp:704
#37 0xae365f41 in KJavaAppletServer::qt_metacall (this=0x9cf0638, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbff0b0e8)
    at /home/dalemayehu/Projects/build/KDE/trunk/kdelibs/khtml/java/kjavaappletserver.moc:77
#38 0xb6f296ea in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#39 0xb6f38715 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#40 0xae368373 in KJavaProcess::received (this=0x9cf0ce0, _t1=...) at /home/dalemayehu/Projects/build/KDE/trunk/kdelibs/khtml/java/kjavaprocess.moc:94
#41 0xae368802 in KJavaProcess::slotReceivedData (this=0x9cf0ce0) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/khtml/java/kjavaprocess.cpp:279
#42 0xae368d43 in KJavaProcess::qt_metacall (this=0x9cf0ce0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbff0b25c)
    at /home/dalemayehu/Projects/build/KDE/trunk/kdelibs/khtml/java/kjavaprocess.moc:81
#43 0xb6f296ea in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#44 0xb6f38715 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#45 0xb6ebf287 in QProcess::readyReadStandardOutput() () from /usr/lib/libQtCore.so.4
#46 0xb6ec35ab in ?? () from /usr/lib/libQtCore.so.4
#47 0xb6ec3e26 in QProcess::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#48 0xb71b292a in KProcess::qt_metacall (this=0x9cf0ce0, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0xbff0b488) at /home/dalemayehu/Projects/build/KDE/trunk/kdelibs/kdecore/kprocess.moc:69
#49 0xae368cfa in KJavaProcess::qt_metacall (this=0x9cf0ce0, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0xbff0b488)
    at /home/dalemayehu/Projects/build/KDE/trunk/kdelibs/khtml/java/kjavaprocess.moc:74
#50 0xb6f296ea in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#51 0xb6f38715 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#52 0xb6f81b93 in QSocketNotifier::activated(int) () from /usr/lib/libQtCore.so.4
#53 0xb6f3d3b7 in QSocketNotifier::event(QEvent*) () from /usr/lib/libQtCore.so.4
#54 0xb64445f4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#55 0xb64487ee in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#56 0xb760e86a in KApplication::notify (this=0xbff0bd7c, receiver=0x9c4b9f8, event=0xbff0b914) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/kdeui/kernel/kapplication.cpp:302
#57 0xb6f237db in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#58 0xb6f4df47 in ?? () from /usr/lib/libQtCore.so.4
#59 0xb5da2f72 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#60 0xb5da3750 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#61 0xb5da3a04 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#62 0xb6f4e57c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#63 0xb64f04d5 in ?? () from /usr/lib/libQtGui.so.4
#64 0xb6f22a29 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#65 0xb6f22c9a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#66 0xb6f274cf in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#67 0xb6441d17 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#68 0xb3218f25 in kdemain (argc=2, argv=0x9560b18) at /home/dalemayehu/Projects/source/KDE/trunk/kdebase/apps/konqueror/src/konqmain.cpp:228
#69 0x0804d979 in launch (argc=2, _name=0x953655c "/usr/bin/konqueror", args=<value optimized out>, cwd=0x0, envc=0, envs=<value optimized out>, reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x9536580 "dim-e510;1275151151;433949;1769_TIME4786327") at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/kinit/kinit.cpp:722
#70 0x0804e3ed in handle_launcher_request (sock=<value optimized out>, sock=<value optimized out>) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/kinit/kinit.cpp:1214
#71 0x0804ea1f in handle_requests (waitForPid=0) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/kinit/kinit.cpp:1407
#72 0x0804f72b in main (argc=) at /home/dalemayehu/Projects/source/KDE/trunk/kdelibs/kinit/kinit.cpp:1855

Reported using DrKonqi
Comment 1 Nicolas L. 2010-08-12 15:14:39 UTC
*** Bug 247488 has been marked as a duplicate of this bug. ***
Comment 2 Justin Zobel 2020-12-07 05:10:26 UTC
Thank you for the report, Dawit.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 3 Bug Janitor Service 2020-12-22 04:34:32 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2021-01-06 04:34:04 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!