<?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>264403</bug_id>
          
          <creation_ts>2011-01-27 03:02:53 +0000</creation_ts>
          <short_desc>[testcase] race condition: node&apos;s deletion (via .innerHTML = &apos;&apos;) when changing focus into it always make crash</short_desc>
          <delta_ts>2024-05-06 18:39:03 +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>khtml</component>
          <version>4.11.97</version>
          <rep_platform>Debian stable</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>UNMAINTAINED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>testcase</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Burladyan">eshkinkot</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>aiacovitti</cc>
    
    <cc>gatoso</cc>
    
    <cc>joanluc.laborda</cc>
    
    <cc>justin.zobel</cc>
    
    <cc>markpatton</cc>
    
    <cc>piratepenguin</cc>
    
    <cc>shydoow</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>1079187</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Burladyan">eshkinkot</who>
    <bug_when>2011-01-27 03:02:53 +0000</bug_when>
    <thetext>Application: konqueror (4.4.5 (KDE 4.4.5))
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.3
Operating System: Linux 2.6.32-5-amd64 x86_64
Distribution: Debian GNU/Linux 6.0 (squeeze)

-- Information about the crash:
Set focus into f1 field, then press Tab

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
//&lt;![CDATA[
document.observe(&quot;dom:loaded&quot;, function() {
    Event.observe(&apos;f1&apos;, &apos;blur&apos;, function() {
	$(&apos;clean&apos;).innerHTML = &apos;&apos;;
    });
});
//]]&gt;
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id=&quot;crash&quot; action=&quot;&quot;&gt;
&lt;input type=&quot;text&quot; id=&quot;f1&quot;&gt;&lt;/input&gt;
&lt;div id=&quot;clean&quot;&gt;&lt;a href=&quot;link&quot;&gt;focus link&lt;/a&gt;&lt;/div&gt;
&lt;input type=&quot;text&quot; id=&quot;f2&quot;&gt;&lt;/input&gt;
&lt;input type=&quot;submit&quot;&gt;&lt;/input&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;


The crash can be reproduced every time.

 -- Backtrace:
Application: Konqueror (konqueror), signal: Segmentation fault
[KCrash Handler]
#5  DOM::DocumentImpl::view (this=0x3ff0000000000000) at ../../khtml/xml/dom_docimpl.cpp:2908
#6  0x00007f5502e2ddad in DOM::NodeImpl::dispatchEvent (this=0x22b7d20, evt=0x21aa860, exceptioncode=@0x7fff17fb28bc, tempEvent=true) at ../../khtml/xml/dom_nodeimpl.cpp:451
#7  0x00007f5502e2f64a in DOM::NodeImpl::dispatchHTMLEvent (this=0x22b7d20, _id=24, canBubbleArg=&lt;value optimized out&gt;, cancelableArg=&lt;value optimized out&gt;) at ../../khtml/xml/dom_nodeimpl.cpp:552
#8  0x00007f5502e199a1 in DOM::DocumentImpl::setFocusNode (this=0x3285a70, newFocusNode=0x22b7d20) at ../../khtml/xml/dom_docimpl.cpp:2492
#9  0x00007f5502d9dc94 in KHTMLView::focusNextPrevNode (this=0x18f0fc0, next=true) at ../../khtml/khtmlview.cpp:2623
#10 0x00007f5502d9e159 in KHTMLView::focusNextPrevChild (this=0x18f0fc0, next=&lt;value optimized out&gt;) at ../../khtml/khtmlview.cpp:2014
#11 0x00007f5502e94687 in focusNextPrev (this=0x3319960, evt=0x29b4880) at ../../khtml/html/html_formimpl.cpp:1029
#12 DOM::HTMLGenericFormElementImpl::defaultEventHandler (this=0x3319960, evt=0x29b4880) at ../../khtml/html/html_formimpl.cpp:1093
#13 0x00007f5502ea43c2 in DOM::HTMLInputElementImpl::defaultEventHandler (this=0x3319960, evt=0x29b4880) at ../../khtml/html/html_formimpl.cpp:1954
#14 0x00007f5502e2dbc4 in DOM::NodeImpl::dispatchGenericEvent (this=0x3319960, evt=0x29b4880) at ../../khtml/xml/dom_nodeimpl.cpp:526
#15 0x00007f5502e2ddbe in DOM::NodeImpl::dispatchEvent (this=0x3319960, evt=0x29b4880, exceptioncode=@0x7fff17fb2c5c, tempEvent=true) at ../../khtml/xml/dom_nodeimpl.cpp:453
#16 0x00007f5502e2e6c2 in DOM::NodeImpl::dispatchKeyEvent (this=&lt;value optimized out&gt;, key=0x7fff17fb3430, keypress=&lt;value optimized out&gt;) at ../../khtml/xml/dom_nodeimpl.cpp:694
#17 0x00007f5502d9e4ed in KHTMLView::dispatchKeyEvent (this=0x18f0fc0, _ke=0x7fff17fb3430) at ../../khtml/khtmlview.cpp:1638
#18 0x00007f5502da9cb9 in KHTMLView::keyPressEvent (this=0x18f0fc0, _ke=0x7fff17fb3430) at ../../khtml/khtmlview.cpp:1762
#19 0x00007f5502da72c7 in KHTMLView::eventFilter (this=0x18f0fc0, o=0x34cd3a0, e=0x7fff17fb3430) at ../../khtml/khtmlview.cpp:2303
#20 0x00007f5510c794b7 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=&lt;value optimized out&gt;, receiver=0x34cd3a0, event=0x7fff17fb3430) at kernel/qcoreapplication.cpp:841
#21 0x00007f550fda12fc in QApplicationPrivate::notify_helper (this=0x1107ce0, receiver=0x34cd3a0, e=0x7fff17fb3430) at kernel/qapplication.cpp:4298
#22 0x00007f550fda8fc5 in QApplication::notify (this=&lt;value optimized out&gt;, receiver=0x34cd3a0, e=0x7fff17fb3430) at kernel/qapplication.cpp:3765
#23 0x00007f55116627a6 in KApplication::notify (this=0x7fff17fb4510, receiver=0x34cd3a0, event=0x7fff17fb3430) at ../../kdeui/kernel/kapplication.cpp:302
#24 0x00007f5510c7a09c in QCoreApplication::notifyInternal (this=0x7fff17fb4510, receiver=0x34cd3a0, event=0x7fff17fb3430) at kernel/qcoreapplication.cpp:726
#25 0x00007f550fe4bd6a in QKeyMapper::sendKeyEvent (keyWidget=0x34cd3a0, grab=&lt;value optimized out&gt;, type=QEvent::KeyPress, code=16777217, modifiers=&lt;value optimized out&gt;, text=..., autorepeat=false, count=1, nativeScanCode=23, nativeVirtualKey=65289, nativeModifiers=0) at kernel/qkeymapper_x11.cpp:1875
#26 0x00007f550fe4e2e1 in QKeyMapperPrivate::translateKeyEvent (this=0x1140630, keyWidget=0x34cd3a0, event=&lt;value optimized out&gt;, grab=32) at kernel/qkeymapper_x11.cpp:1845
#27 0x00007f550fe25a34 in QApplication::x11ProcessEvent (this=&lt;value optimized out&gt;, event=0x7fff17fb3fe0) at kernel/qapplication_x11.cpp:3406
#28 0x00007f550fe515a2 in x11EventSourceDispatch (s=0x110bb10, callback=&lt;value optimized out&gt;, user_data=&lt;value optimized out&gt;) at kernel/qguieventdispatcher_glib.cpp:146
#29 0x00007f550bfc86f2 in g_main_dispatch (context=0x110a920) at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c:1960
#30 IA__g_main_context_dispatch (context=0x110a920) at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c:2513
#31 0x00007f550bfcc568 in g_main_context_iterate (context=0x110a920, block=&lt;value optimized out&gt;, dispatch=&lt;value optimized out&gt;, self=&lt;value optimized out&gt;) at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c:2591
#32 0x00007f550bfcc71c in IA__g_main_context_iteration (context=0x110a920, may_block=1) at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c:2654
#33 0x00007f5510ca36b3 in QEventDispatcherGlib::processEvents (this=0x10eaf80, flags=&lt;value optimized out&gt;) at kernel/qeventdispatcher_glib.cpp:412
#34 0x00007f550fe5119e in QGuiEventDispatcherGlib::processEvents (this=0x3ff0000000000000, flags=&lt;value optimized out&gt;) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007f5510c789c2 in QEventLoop::processEvents (this=&lt;value optimized out&gt;, flags=) at kernel/qeventloop.cpp:149
#36 0x00007f5510c78d9c in QEventLoop::exec (this=0x7fff17fb4300, flags=) at kernel/qeventloop.cpp:201
#37 0x00007f5510c7da2b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#38 0x00007f55131f076b in kdemain (argc=&lt;value optimized out&gt;, argv=&lt;value optimized out&gt;) at ../../../../apps/konqueror/src/konqmain.cpp:257
#39 0x00007f5512deac4d in __libc_start_main (main=&lt;value optimized out&gt;, argc=&lt;value optimized out&gt;, ubp_av=&lt;value optimized out&gt;, init=&lt;value optimized out&gt;, fini=&lt;value optimized out&gt;, rtld_fini=&lt;value optimized out&gt;, stack_end=0x7fff17fb4ee8) at libc-start.c:228
#40 0x0000000000400699 in _start ()

Possible duplicates by query: bug 171909.

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1124373</commentid>
    <comment_count>1</comment_count>
    <who name="Andrea Iacovitti">aiacovitti</who>
    <bug_when>2011-05-28 10:39:11 +0000</bug_when>
    <thetext>Confirmed on kde 4.6.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1151650</commentid>
    <comment_count>2</comment_count>
      <attachid>62687</attachid>
    <who name="Andrea Iacovitti">aiacovitti</who>
    <bug_when>2011-08-08 21:51:01 +0000</bug_when>
    <thetext>Created attachment 62687
online testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1408188</commentid>
    <comment_count>3</comment_count>
    <who name="Andrea Iacovitti">aiacovitti</who>
    <bug_when>2013-11-01 18:04:54 +0000</bug_when>
    <thetext>*** Bug 134345 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1418610</commentid>
    <comment_count>4</comment_count>
    <who name="Andrea Iacovitti">aiacovitti</who>
    <bug_when>2013-12-15 08:13:53 +0000</bug_when>
    <thetext>*** Bug 328814 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1418612</commentid>
    <comment_count>5</comment_count>
    <who name="Andrea Iacovitti">aiacovitti</who>
    <bug_when>2013-12-15 08:17:31 +0000</bug_when>
    <thetext>*** Bug 315874 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1434992</commentid>
    <comment_count>6</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2014-03-11 00:39:00 +0000</bug_when>
    <thetext>*** Bug 331949 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1441555</commentid>
    <comment_count>7</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2014-04-16 00:30:44 +0000</bug_when>
    <thetext>*** Bug 333443 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1447974</commentid>
    <comment_count>8</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2014-05-13 01:31:04 +0000</bug_when>
    <thetext>*** Bug 334682 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984150</commentid>
    <comment_count>9</comment_count>
    <who name="Justin Zobel">justin.zobel</who>
    <bug_when>2020-12-14 01:31:44 +0000</bug_when>
    <thetext>Thank you for the crash reports.

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 &quot;needsinfo&quot; pending your response, please change back to &quot;reported&quot; or &quot;resolved/worksforme&quot; when you respond, thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984292</commentid>
    <comment_count>10</comment_count>
    <who name="Sergey Burladyan">eshkinkot</who>
    <bug_when>2020-12-14 16:14:15 +0000</bug_when>
    <thetext>You can check it by youself, use you mouse, click on attachment link and follow the instructions.

I am with Slackware now and Konqueror still crashing with this test case from attachment.

Konqueror
 4.14.13
 KDE 4.14.38

Anyway, thank you for answer after nine years of waiting! :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984412</commentid>
    <comment_count>11</comment_count>
    <who name="Justin Zobel">justin.zobel</who>
    <bug_when>2020-12-15 04:07:13 +0000</bug_when>
    <thetext>Thanks Sergey, setting status back to Confirmed, test case in attachment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2317261</commentid>
    <comment_count>12</comment_count>
    <who name="Christoph Cullmann">christoph</who>
    <bug_when>2024-05-06 18:39:03 +0000</bug_when>
    <thetext>Dear user,

KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6.

Please migrate to use a QWebEngine based HTML component.

We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes.

For security issues, please see:

https://kde.org/info/security/

Sorry that we did not fix this issue during the life-time of KHTML.

Greetings
Christoph Cullmann</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>62687</attachid>
            <date>2011-08-08 21:51:01 +0000</date>
            <delta_ts>2011-08-08 21:51:01 +0000</delta_ts>
            <desc>online testcase</desc>
            <filename>tc.html</filename>
            <type>text/html</type>
            <size>555</size>
            <attacher name="Andrea Iacovitti">aiacovitti</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgogIDxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0IiBzcmM9Imh0dHBz
Oi8vYWpheC5nb29nbGVhcGlzLmNvbS9hamF4L2xpYnMvcHJvdG90eXBlLzEuNy4wLjAvcHJvdG90
eXBlLmpzIj48L3NjcmlwdD4KICA8c2NyaXB0IHR5cGU9InRleHQvamF2YXNjcmlwdCIgY2hhcnNl
dD0idXRmLTgiPgogIC8vPCFbQ0RBVEFbCiAgZG9jdW1lbnQub2JzZXJ2ZSgiZG9tOmxvYWRlZCIs
IGZ1bmN0aW9uKCkgewogICAgICBFdmVudC5vYnNlcnZlKCd0ZXh0ZmllbGQnLCAnYmx1cicsIGZ1
bmN0aW9uKCkgewogICAgICAkKCdjbGVhbicpLmlubmVySFRNTCA9ICcnOwogICAgICB9KTsKICB9
KTsKICAvL11dPgogIDwvc2NyaXB0Pgo8L2hlYWQ+Cjxib2R5Pgo8cD5TZXQgZm9jdXMgaW50byB0
ZXh0IGZpZWxkLCB0aGVuIHByZXNzIFRhYi4uLiBDUkFTSCE8L3A+Cgo8aW5wdXQgdHlwZT0idGV4
dCIgaWQ9InRleHRmaWVsZCI+PC9pbnB1dD4KCjxkaXYgaWQ9ImNsZWFuIj4gPGEgaHJlZj0ibGlu
ayI+Zm9jdXMgbGluazwvYT4gPC9kaXY+Cgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>