<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>218866</bug_id>
          
          <creation_ts>2009-12-16 01:50:17 +0000</creation_ts>
          <short_desc>crash when closing window with javascript [testcase] [KHTMLPart::removeJSErrorExtension, ~KHTMLPart, QObject::event]</short_desc>
          <delta_ts>2010-02-25 17:46:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>228255</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="David Palacio">dpalacio</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>andresbajotierra</cc>
    
    <cc>faure</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>880542</commentid>
    <comment_count>0</comment_count>
    <who name="David Palacio">dpalacio</who>
    <bug_when>2009-12-16 01:50:17 +0000</bug_when>
    <thetext>Application: konqueror (4.3.82 (KDE 4.3.82 (KDE 4.4 &gt;= 20091211)))
KDE Platform Version: 4.3.82 (KDE 4.3.82 (KDE 4.4 &gt;= 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&amp;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=&lt;value optimized out&gt;, 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=&lt;value optimized out&gt;) at kernel/qeventdispatcher_glib.cpp:409
#12 0x00007f5a389ee512 in QEventLoop::processEvents (this=&lt;value optimized out&gt;, 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=&lt;value optimized out&gt;) 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=&lt;value optimized out&gt;) 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=&lt;value optimized out&gt;) at kernel/qeventdispatcher_glib.cpp:407
#18 0x00007f5a379ad75f in QGuiEventDispatcherGlib::processEvents (this=0x6e85e60, flags=&lt;value optimized out&gt;) at kernel/qguieventdispatcher_glib.cpp:202
#19 0x00007f5a389ee512 in QEventLoop::processEvents (this=&lt;value optimized out&gt;, 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=&lt;value optimized out&gt;, argv=&lt;value optimized out&gt;) at /home/kde/src/KDE/kdebase/apps/konqueror/src/konqmain.cpp:257
#23 0x00000000004074e7 in launch (argc=2, _name=0x23b6308 &quot;/home/kde/KDE/bin/konqueror&quot;, args=&lt;value optimized out&gt;, cwd=0x0, envc=0, envs=0x23b6335 &quot;&quot;, reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x23b633d &quot;sun;1260919085;145732;3265_TIME454972&quot;) at /home/kde/src/KDE/kdelibs/kinit/kinit.cpp:705
#24 0x0000000000407cc8 in handle_launcher_request (sock=7, who=&lt;value optimized out&gt;) 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>889875</commentid>
    <comment_count>1</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-12-31 16:11:48 +0000</bug_when>
    <thetext>Mh, I can&apos;t reproduce even when I enabled the JS Debugger and the &quot;report errors&quot; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>890301</commentid>
    <comment_count>2</comment_count>
    <who name="David Palacio">dpalacio</who>
    <bug_when>2010-01-01 21:19:00 +0000</bug_when>
    <thetext>Qt: 4.6.0
Plataforma de desarrollo de KDE: 4.3.86 (KDE 4.3.86 (KDE 4.4 &gt;= 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>924074</commentid>
    <comment_count>3</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2010-02-25 15:04:04 +0000</bug_when>
    <thetext>Fixed for 4.4.1.

*** This bug has been marked as a duplicate of bug 228255 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>