Application that crashed: konqueror Version of the application: 4.2.96 (KDE 4.2.96 (KDE 4.3 RC2)) KDE Version: 4.2.96 (KDE 4.2.96 (KDE 4.3 RC2)) Qt Version: 4.5.0 Operating System: Linux 2.6.28-13-generic x86_64 Distribution: Ubuntu 9.04 What I was doing when the application crashed: This bug is around sice KDE 4.0 or so and I reported this as part of bug 177245 already, but that one is a collection of various bugs (some fixed), so here's an extra one just for this (100% reproducable) crash. Bug 198494 seems to be the same bug as well, I didn't file this one as a dup because I've got reliable steps to reproduce it, I hope somebody finally fixes it *sigh* To reproduce, do the following: 1. Soup.io is a tumblelog you can try at http://try.soup.io/ without creating an account. 2. Go there. 3. Skip the welcome screen. 4. Click the plus sign at the bottom left. 5. Choose Text (the first option) 6. Click into the test input. 7. Everything still fine. 8. Type something, anything. 9. Notice that the input jumped down by one line, a line break was inserted. 10. Go to that first empty line. 11. Press Del to remove the line break. 12. Boom! Backspace to delete the newline has the same effect. -- Backtrace: Application: Konqueror (kdeinit4), signal: Segmentation fault [KCrash Handler] #5 debugPosition (prefix=0x7fcdc1330ac9 "ending position: ", pos=@0x7fffdb8b7050) at /build/buildd/kde4libs-4.2.96/khtml/editing/htmlediting_impl.cpp:218 #6 0x00007fcdc11679fb in khtml::DeleteSelectionCommandImpl::doApply (this=0x2e55520) at /build/buildd/kde4libs-4.2.96/khtml/editing/htmlediting_impl.cpp:1362 #7 0x00007fcdc115cab7 in khtml::EditCommandImpl::apply (this=0x7fcdc1330ac9) at /build/buildd/kde4libs-4.2.96/khtml/editing/htmlediting_impl.cpp:251 #8 0x00007fcdc11627de in khtml::CompositeEditCommandImpl::applyCommandToComposite (this=0x2e55bd0, cmd=@0x7fffdb8b7350) at /build/buildd/kde4libs-4.2.96/khtml/editing/htmlediting_impl.cpp:377 #9 0x00007fcdc1163067 in khtml::CompositeEditCommandImpl::deleteSelection (this=0x2e55bd0, selection=@0x7fffdb8b73e0) at /build/buildd/kde4libs-4.2.96/khtml/editing/htmlediting_impl.cpp:496 #10 0x00007fcdc1169f99 in khtml::TypingCommandImpl::issueCommandForDeleteKey (this=0x2e55bd0) at /build/buildd/kde4libs-4.2.96/khtml/editing/htmlediting_impl.cpp:2409 #11 0x00007fcdc115c31b in khtml::TypingCommand::deleteKeyPressed (document=0x6e09530) at /build/buildd/kde4libs-4.2.96/khtml/editing/htmlediting.cpp:781 #12 0x00007fcdc1157b27 in DOM::Editor::handleKeyEvent (this=0x50ece90, _ke=0x7fffdb8b75b0) at /build/buildd/kde4libs-4.2.96/khtml/editing/editor.cpp:506 #13 0x00007fcdc0fdd949 in DOM::ElementImpl::defaultEventHandler (this=0x30ef6f0, e=0x3f7dc40) at /build/buildd/kde4libs-4.2.96/khtml/xml/dom_elementimpl.cpp:809 #14 0x00007fcdc0fd4dcc in DOM::NodeImpl::dispatchGenericEvent (this=0x30ef6f0, evt=0x3f7dc40) at /build/buildd/kde4libs-4.2.96/khtml/xml/dom_nodeimpl.cpp:526 #15 0x00007fcdc0fd4fae in DOM::NodeImpl::dispatchEvent (this=0x30ef6f0, evt=0x3f7dc40, exceptioncode=@0x7fffdb8b7784, tempEvent=true) at /build/buildd/kde4libs-4.2.96/khtml/xml/dom_nodeimpl.cpp:453 #16 0x00007fcdc0fd58f0 in DOM::NodeImpl::dispatchKeyEvent (this=0x30ef6f0, key=0x4e9d900, keypress=<value optimized out>) at /build/buildd/kde4libs-4.2.96/khtml/xml/dom_nodeimpl.cpp:692 #17 0x00007fcdc0f37c8d in KHTMLView::dispatchKeyEvent (this=0x5784690, _ke=0x4e9d900) at /build/buildd/kde4libs-4.2.96/khtml/khtmlview.cpp:1626 #18 0x00007fcdc0f40a04 in KHTMLView::keyPressEvent (this=0x5784690, _ke=0x4e9d900) at /build/buildd/kde4libs-4.2.96/khtml/khtmlview.cpp:1747 #19 0x00007fcdc10c165d in khtml::RenderWidget::handleEvent (this=0x62c08f0, ev=@0x4e9d680) at /build/buildd/kde4libs-4.2.96/khtml/rendering/render_replaced.cpp:1137 #20 0x00007fcdc102f90d in DOM::HTMLFrameElementImpl::defaultEventHandler (this=0x672e5d0, e=0x4e9d680) at /build/buildd/kde4libs-4.2.96/khtml/html/html_baseimpl.cpp:296 #21 0x00007fcdc0fd4dcc in DOM::NodeImpl::dispatchGenericEvent (this=0x672e5e0, evt=0x4e9d680) at /build/buildd/kde4libs-4.2.96/khtml/xml/dom_nodeimpl.cpp:526 #22 0x00007fcdc0fd4fae in DOM::NodeImpl::dispatchEvent (this=0x672e5e0, evt=0x4e9d680, exceptioncode=@0x7fffdb8b7c54, tempEvent=true) at /build/buildd/kde4libs-4.2.96/khtml/xml/dom_nodeimpl.cpp:453 #23 0x00007fcdc0fd58f0 in DOM::NodeImpl::dispatchKeyEvent (this=0x672e5e0, key=0x6edbc00, keypress=<value optimized out>) at /build/buildd/kde4libs-4.2.96/khtml/xml/dom_nodeimpl.cpp:692 #24 0x00007fcdc0f37c8d in KHTMLView::dispatchKeyEvent (this=0x52da3c0, _ke=0x6edbc00) at /build/buildd/kde4libs-4.2.96/khtml/khtmlview.cpp:1626 #25 0x00007fcdc0f40a04 in KHTMLView::keyPressEvent (this=0x52da3c0, _ke=0x6edbc00) at /build/buildd/kde4libs-4.2.96/khtml/khtmlview.cpp:1747 #26 0x00007fcdc10c165d in khtml::RenderWidget::handleEvent (this=0x6c051b0, ev=@0x2e55470) at /build/buildd/kde4libs-4.2.96/khtml/rendering/render_replaced.cpp:1137 #27 0x00007fcdc102f90d in DOM::HTMLFrameElementImpl::defaultEventHandler (this=0x5514aa0, e=0x2e55470) at /build/buildd/kde4libs-4.2.96/khtml/html/html_baseimpl.cpp:296 #28 0x00007fcdc0fd4dcc in DOM::NodeImpl::dispatchGenericEvent (this=0x5514ab0, evt=0x2e55470) at /build/buildd/kde4libs-4.2.96/khtml/xml/dom_nodeimpl.cpp:526 #29 0x00007fcdc0fd4fae in DOM::NodeImpl::dispatchEvent (this=0x5514ab0, evt=0x2e55470, exceptioncode=@0x7fffdb8b8124, tempEvent=true) at /build/buildd/kde4libs-4.2.96/khtml/xml/dom_nodeimpl.cpp:453 #30 0x00007fcdc0fd58f0 in DOM::NodeImpl::dispatchKeyEvent (this=0x5514ab0, key=0x7fffdb8b87f0, keypress=<value optimized out>) at /build/buildd/kde4libs-4.2.96/khtml/xml/dom_nodeimpl.cpp:692 #31 0x00007fcdc0f37c8d in KHTMLView::dispatchKeyEvent (this=0x1f1f290, _ke=0x7fffdb8b87f0) at /build/buildd/kde4libs-4.2.96/khtml/khtmlview.cpp:1626 #32 0x00007fcdc0f40a04 in KHTMLView::keyPressEvent (this=0x1f1f290, _ke=0x7fffdb8b87f0) at /build/buildd/kde4libs-4.2.96/khtml/khtmlview.cpp:1747 #33 0x00007fcdc0f3f06f in KHTMLView::eventFilter (this=0x1f1f290, o=0x52da3c0, e=0x7fffdb8b87f0) at /build/buildd/kde4libs-4.2.96/khtml/khtmlview.cpp:2285 #34 0x00007fcdd33a2a68 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x52da3c0, event=0x7fffdb8b87f0) at kernel/qcoreapplication.cpp:718 #35 0x00007fcdd092c75c in QApplicationPrivate::notify_helper (this=0x18cb0f0, receiver=0x52da3c0, e=0x7fffdb8b87f0) at kernel/qapplication.cpp:4080 #36 0x00007fcdd09358bf in QApplication::notify (this=<value optimized out>, receiver=0x52da3c0, e=0x7fffdb8b87f0) at kernel/qapplication.cpp:3690 #37 0x00007fcdd1a6f63b in KApplication::notify (this=0x7fffdb8b9b90, receiver=0x52da3c0, event=0x7fffdb8b87f0) at /build/buildd/kde4libs-4.2.96/kdeui/kernel/kapplication.cpp:302 #38 0x00007fcdd33a375c in QCoreApplication::notifyInternal (this=0x7fffdb8b9b90, receiver=0x52da3c0, event=0x7fffdb8b87f0) at kernel/qcoreapplication.cpp:602 #39 0x00007fcdd09c16b4 in QKeyMapper::sendKeyEvent (keyWidget=0x52da3c0, grab=<value optimized out>, type=QEvent::KeyPress, code=16777223, modifiers={i = -611612128}, text=@0x7fffdb8b8a10, autorepeat=false, count=1, nativeScanCode=119, nativeVirtualKey=65535, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1675 #40 0x00007fcdd09c3a12 in QKeyMapperPrivate::translateKeyEvent (this=0x19006c0, keyWidget=0x52da3c0, event=0x7fffdb8b95e0, grab=80) at kernel/qkeymapper_x11.cpp:1645 #41 0x00007fcdd099c5bd in QApplication::x11ProcessEvent (this=0x7fffdb8b9b90, event=0x7fffdb8b95e0) at kernel/qapplication_x11.cpp:3436 #42 0x00007fcdd09c5464 in x11EventSourceDispatch (s=0x18cecd0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146 #43 0x00007fcdcf38a20a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #44 0x00007fcdcf38d8e0 in ?? () from /usr/lib/libglib-2.0.so.0 #45 0x00007fcdcf38da7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #46 0x00007fcdd33cce6f in QEventDispatcherGlib::processEvents (this=0x1840e70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:323 #47 0x00007fcdd09c4bef in QGuiEventDispatcherGlib::processEvents (this=0x7fcdc1330ac9, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202 #48 0x00007fcdd33a2002 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -611608368}) at kernel/qeventloop.cpp:149 #49 0x00007fcdd33a23cd in QEventLoop::exec (this=0x7fffdb8b9910, flags={i = -611608288}) at kernel/qeventloop.cpp:200 #50 0x00007fcdd33a4694 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880 #51 0x00007fcdc7f86d02 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/kdebase-4.2.96/apps/konqueror/src/konqmain.cpp:271 #52 0x0000000000407215 in launch (argc=2, _name=0x187e588 "/usr/bin/konqueror", args=<value optimized out>, cwd=0x0, envc=0, envs=0x187e5ad "", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x40a3c9 "0") at /build/buildd/kde4libs-4.2.96/kinit/kinit.cpp:676 #53 0x0000000000407a38 in handle_launcher_request (sock=7, who=<value optimized out>) at /build/buildd/kde4libs-4.2.96/kinit/kinit.cpp:1168 #54 0x0000000000407fe5 in handle_requests (waitForPid=0) at /build/buildd/kde4libs-4.2.96/kinit/kinit.cpp:1361 #55 0x0000000000408b26 in main (argc=2, argv=0x7fffdb8bb278, envp=0x7fffdb8bb290) at /build/buildd/kde4libs-4.2.96/kinit/kinit.cpp:1788 Reported using DrKonqi
I can reproduce the crash using the detailed steps here using: Qt: 4.5.2 (KDE-Qt git commit 46a247a2c9a8c0c4456a02f6a0922d859d88fe76 Date: Fri Jun 26 13:45:37 2009 +0200) KDE: 4.3.61 (KDE 4.3.61 (KDE 4.4 >= 20090717)) kdelibs svn rev. 999250 / kdebase svn rev. 999250 on ArchLinux i686 - Kernel 2.6.30.1 BTW; bug 198494 looks also related.
There was a problem with inserting text into layout like following: <body><div contenteditable=true><br> </div>; We incorrectly found upstream/downstream equivalent positions at borders (e.g. position(br, 0)). And thus inserted text into incorrect place. It's fixed by commit in my soc branch: http://github.com/vtokarev/khtml-soc09/commit/6b41fafabed826b1db31821a48eacdd2ea943b39 It will be merged later on into the trunk and will be part of 4.4 release.
Cool. Would be great if it could be backported to 4.3 as well.
*** Bug 215368 has been marked as a duplicate of this bug. ***
*** Bug 198494 has been marked as a duplicate of this bug. ***
*** Bug 221645 has been marked as a duplicate of this bug. ***
Created attachment 52759 [details] New crash information added by DrKonqi konqueror (4.5.2 (KDE 4.5.2)) on KDE Platform 4.5.2 (KDE 4.5.2) using Qt 4.7.0 - What I was doing when the application crashed: Konqueror crashed when trying to delete text in tinymce editor. Seems like this bug is still with us ... -- Backtrace (Reduced): #6 0x0000003ab880aa44 in khtml::DeleteSelectionCommandImpl::doApply (this=0x22bf470) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:1338 #7 0x0000003ab880252a in khtml::EditCommandImpl::apply (this=0x22bf470) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:236 #8 0x0000003ab8805580 in khtml::CompositeEditCommandImpl::applyCommandToComposite (this=0x22f17c0, cmd=<value optimized out>) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:351 #9 0x0000003ab88067b6 in khtml::CompositeEditCommandImpl::deleteSelection (this=0x22f17c0, selection=<value optimized out>) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:470 #10 0x0000003ab88068d9 in khtml::TypingCommandImpl::issueCommandForDeleteKey (this=0x22f17c0) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:2620
Thank you for the report, Malte. 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.
not the same issue, however, simply visiting https://www.tiny.cloud/ with KHTML (not WebEngine) causes Konqueror to enter some endless loop, so I can't even get to testing the editor ...
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!
Since KHMTL is unmaintained, I am resolving this issue.