Bug 218866 - crash when closing window with javascript [testcase] [KHTMLPart::removeJSErrorExtension, ~KHTMLPart, QObject::event]
Summary: crash when closing window with javascript [testcase] [KHTMLPart::removeJSErro...
Status: CLOSED DUPLICATE of bug 228255
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-16 01:50 UTC by David Palacio
Modified: 2010-02-25 17:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Palacio 2009-12-16 01:50:17 UTC
Application: konqueror (4.3.82 (KDE 4.3.82 (KDE 4.4 >= 20091211)))
KDE Platform Version: 4.3.82 (KDE 4.3.82 (KDE 4.4 >= 20091211)) (Compiled from sources)
Qt Version: 4.6.0
Operating System: Linux 2.6.26-2-amd64 x86_64
Distribution: Debian GNU/Linux 5.0.3 (lenny)

-- Information about the crash:
How to reproduce:
1. Open
http://www.kde-apps.org/content/show.php/kchmviewer?content=25125&PHPSESSID=4d10bce867caf859599c38db17980afa

2. Click on a thumbnail (it should open a window)

3. Click on the image (should close the window and crash the application)

The crash can be reproduced everytime.

 -- Backtrace:
Application: Konqueror (kdeinit4), signal: Segmentation fault
[Current thread is 0 (LWP 3392)]

Thread 2 (Thread 0x418e0950 (LWP 3394)):
#0  0xffffffffff60012d in ?? ()
#1  0x00007fff97fff532 in ?? ()
#2  0x00007f5a33fdbaad in clock_gettime () from /lib/librt.so.1
#3  0x00007f5a38a1782f in qt_gettime () at kernel/qcore_unix.cpp:109
#4  0x00007f5a38a1c94d in QTimerInfoList::updateCurrentTime (this=0x418dfdf0) at kernel/qeventdispatcher_unix.cpp:340
#5  0x00007f5a38a1c975 in QTimerInfoList::timerWait (this=0x418dfdf0, tm=@0x418dfdf0) at kernel/qeventdispatcher_unix.cpp:443
#6  0x00007f5a38a1a78c in timerSourcePrepareHelper (src=<value optimized out>, timeout=0x418dff04) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f5a38a1a835 in timerSourcePrepare (source=0x418dfdf0, timeout=0x418dfdf0) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f5a33d4fcb2 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#9  0x00007f5a33d5005f in ?? () from /lib/libglib-2.0.so.0
#10 0x00007f5a33d5052c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#11 0x00007f5a38a1a576 in QEventDispatcherGlib::processEvents (this=0x2c36110, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:409
#12 0x00007f5a389ee512 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1099825232}) at kernel/qeventloop.cpp:149
#13 0x00007f5a389ee8e4 in QEventLoop::exec (this=0x418e0090, flags={i = 1099825328}) at kernel/qeventloop.cpp:201
#14 0x00007f5a388f6847 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#15 0x00007f5a389cedc8 in QInotifyFileSystemWatcherEngine::run (this=0x2c2fad0) at io/qfilesystemwatcher_inotify.cpp:248
#16 0x00007f5a388f9425 in QThreadPrivate::start (arg=0x2c2fad0) at thread/qthread_unix.cpp:244
#17 0x00007f5a38659fc7 in start_thread () from /lib/libpthread.so.0
#18 0x00007f5a36cd95ad in clone () from /lib/libc.so.6
#19 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f5a3aaeb6f0 (LWP 3392)):
[KCrash Handler]
#5  0x00007f5a25f9dd9e in KHTMLPart::removeJSErrorExtension (this=0x88b03b0) at /home/kde/src/KDE/kdelibs/khtml/khtml_part.cpp:1276
#6  0x00007f5a25fb7d0d in ~KHTMLPart (this=0x88b03b0) at /home/kde/src/KDE/kdelibs/khtml/khtml_part.cpp:593
#7  0x00007f5a38a001b5 in QObject::event (this=0x88b03b0, e=0x0) at kernel/qobject.cpp:1243
#8  0x00007f5a378fb12d in QApplicationPrivate::notify_helper (this=0x23fb700, receiver=0x88b03b0, e=0x7465f40) at kernel/qapplication.cpp:4242
#9  0x00007f5a379016ca in QApplication::notify (this=0x7fff97ec7dc0, receiver=0x88b03b0, e=0x7465f40) at kernel/qapplication.cpp:4125
#10 0x00007f5a391bbedb in KApplication::notify (this=0x7fff97ec7dc0, receiver=0x88b03b0, event=0x7465f40) at /home/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#11 0x00007f5a389efc4c in QCoreApplication::notifyInternal (this=0x7fff97ec7dc0, receiver=0x88b03b0, event=0x7465f40) at kernel/qcoreapplication.cpp:704
#12 0x00007f5a389f0b74 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x2369270) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#13 0x00007f5a38a1aa03 in postEventSourceDispatch (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#14 0x00007f5a33d4caca in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#15 0x00007f5a33d50368 in ?? () from /lib/libglib-2.0.so.0
#16 0x00007f5a33d5052c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#17 0x00007f5a38a1a55c in QEventDispatcherGlib::processEvents (this=0x236a7e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#18 0x00007f5a379ad75f in QGuiEventDispatcherGlib::processEvents (this=0x6e85e60, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#19 0x00007f5a389ee512 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1746109824}) at kernel/qeventloop.cpp:149
#20 0x00007f5a389ee8e4 in QEventLoop::exec (this=0x7fff97ec7ac0, flags={i = -1746109744}) at kernel/qeventloop.cpp:201
#21 0x00007f5a389f0df6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#22 0x00007f5a2d6a2759 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /home/kde/src/KDE/kdebase/apps/konqueror/src/konqmain.cpp:257
#23 0x00000000004074e7 in launch (argc=2, _name=0x23b6308 "/home/kde/KDE/bin/konqueror", args=<value optimized out>, cwd=0x0, envc=0, envs=0x23b6335 "", reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x23b633d "sun;1260919085;145732;3265_TIME454972") at /home/kde/src/KDE/kdelibs/kinit/kinit.cpp:705
#24 0x0000000000407cc8 in handle_launcher_request (sock=7, who=<value optimized out>) at /home/kde/src/KDE/kdelibs/kinit/kinit.cpp:1197
#25 0x000000000040825e in handle_requests (waitForPid=0) at /home/kde/src/KDE/kdelibs/kinit/kinit.cpp:1390
#26 0x000000000040896b in main (argc=4, argv=0x7fff97ec9558, envp=0x7fff97ec9580) at /home/kde/src/KDE/kdelibs/kinit/kinit.cpp:1825

Reported using DrKonqi
Comment 1 Dario Andres 2009-12-31 16:11:48 UTC
Mh, I can't reproduce even when I enabled the JS Debugger and the "report errors" option. Here using:

Qt: 4.6.0 (kde-qt master commit 747ff8e6ef6f5a1163dfa75bc9ac4755ce7083d1
        Date:   Tue Dec 15 11:58:13 2009 +0100)
KDE Development Platform: 4.3.85 (KDE 4.3.85 (KDE 4.4 Beta2))
kdelibs svn rev. 1067378 / kdebase svn rev. 1067378
on ArchLinux i686 - Kernel 2.6.31.6

- Can you still reproduce with an updated build ? Thanks
Comment 2 David Palacio 2010-01-01 21:19:00 UTC
Qt: 4.6.0
Plataforma de desarrollo de KDE: 4.3.86 (KDE 4.3.86 (KDE 4.4 >= 20091231))

Still crashes on updated build. Same backtrace.

Try to disable javascript and whitelist www.kde-apps.org.
Global options:
no debugger, no error report
Open new windows set to intelligent
Resize, move, focus window; modify status bar text: Ignore
Comment 3 David Faure 2010-02-25 15:04:04 UTC
Fixed for 4.4.1.

*** This bug has been marked as a duplicate of bug 228255 ***