Steps to reproduce the crash (I've reproduced on r902007). 1) Press CTRL+R on a webpage with a textarea (CTRL+R will reload the page) 2) right click on the textarea -> crash This is the bactkrace: Application: Konqueror (konqueror), signal SIGSEGV 0x00007f083d1f1001 in nanosleep () from /lib/libc.so.6 Thread 1 (Thread 0x7f08421ee750 (LWP 3408)): [KCrash Handler] #5 0x0000000000000001 in ?? () #6 0x00007f0840835cd1 in KTextEdit::contextMenuEvent (this=0x3627f10, event=0x7fff4a329a90) at /home/test/KDE4/src/kdelibs/kdeui/widgets/ktextedit.cpp:513 #7 0x00007f08331141ad in khtml::RenderWidget::handleEvent (this=0x3a93650, ev=@0x30c7d50) at /home/test/KDE4/src/kdelibs/khtml/rendering/render_replaced.cpp:1078 #8 0x00007f083307f073 in DOM::HTMLGenericFormElementImpl::defaultEventHandler (this=0x4c3a120, evt=0x30c7d50) at /home/test/KDE4/src/kdelibs/khtml/html/html_formimpl.cpp:1027 #9 0x00007f08330178dc in DOM::NodeImpl::dispatchGenericEvent (this=0x4c3a120, evt=0x30c7d50) at /home/test/KDE4/src/kdelibs/khtml/xml/dom_nodeimpl.cpp:524 #10 0x00007f0833017aae in DOM::NodeImpl::dispatchEvent (this=0x4c3a120, evt=0x30c7d50, exceptioncode=@0x7fff4a329eec, tempEvent=true) at /home/test/KDE4/src/kdelibs/khtml/xml/dom_nodeimpl.cpp:451 #11 0x00007f0832f72ec1 in KHTMLView::dispatchMouseEvent (this=0x3be53e0, eventId=4, targetNode=0x4c3a120, targetNodeNonShared=<value optimized out>, cancelable=<value optimized out>, detail=1, _mouse=0x7fff4a32adc0, setUnder=true, mouseEventType=0, orient=0) at /home/test/KDE4/src/kdelibs/khtml/khtmlview.cpp:3721 #12 0x00007f0832f804b3 in KHTMLView::mousePressEvent (this=0x3be53e0, _mouse=0x7fff4a32adc0) at /home/test/KDE4/src/kdelibs/khtml/khtmlview.cpp:1285 #13 0x00007f083ed96582 in QWidget::event () from /usr/lib/libQtGui.so.4 #14 0x00007f0832f7b4bd in KHTMLView::widgetEvent (this=0x3be53e0, e=0x7f083d270088) at /home/test/KDE4/src/kdelibs/khtml/khtmlview.cpp:2365 #15 0x00007f0832f7b774 in KHTMLView::eventFilter (this=0x3be53e0, o=0x309fc40, e=0x7fff4a32adc0) at /home/test/KDE4/src/kdelibs/khtml/khtmlview.cpp:2229 #16 0x00007f083f92a6c8 in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib/libQtCore.so.4 #17 0x00007f083ed494ac in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4 #18 0x00007f083ed500ee in QApplication::notify () from /usr/lib/libQtGui.so.4 #19 0x00007f084073b6ab in KApplication::notify (this=0x7fff4a32bc20, receiver=0x309fc40, event=0x7fff4a32adc0) at /home/test/KDE4/src/kdelibs/kdeui/kernel/kapplication.cpp:307 #20 0x00007f083f92b3d1 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4 #21 0x00007f083ed51498 in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4 #22 0x00007f083eda7b1c in ?? () from /usr/lib/libQtGui.so.4 #23 0x00007f083eda6c99 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4 #24 0x00007f083edca744 in ?? () from /usr/lib/libQtGui.so.4 #25 0x00007f083b387aa2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #26 0x00007f083b38b21d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0 #27 0x00007f083b38b3db in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #28 0x00007f083f94f89f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4 #29 0x00007f083edc9fff in ?? () from /usr/lib/libQtGui.so.4 #30 0x00007f083f929d42 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #31 0x00007f083f929ed5 in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #32 0x00007f083f92c025 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4 #33 0x00007f0841ee5ad9 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /home/test/KDE4/src/kdebase/apps/konqueror/src/konqmain.cpp:257 #34 0x00007f083d170546 in __libc_start_main () from /lib/libc.so.6 #35 0x00000000004007c9 in _start ()
Here using: Qt: 4.4.3 + qt-copy-patches-889120 KDE: 4.1.86 (KDE 4.1.86 (KDE 4.2 >= 20081221)) kdelibs svn rev. 901624 / kdebase svn rev. 901624 on ArchLinux x86_64 - Kernel 2.6.27.10 I can't reproduce the crash. Can you reproduce it with every page with a textarea inside ? Also, bug 170643 may probably related to this. (similar backtrace and probably the same conditions)
I've just updated to r902024 and I cannot reproduce the crash anymore... the last words... reproduced right now :-) But it is a bit harder: 1) press CTRL+R 2) while the page is reloading right click on a text area (for example this one on bugs.kde.org Initially I was able to reproduce even after the page was completely loaded. Now I've to right click quickly on the textarea. About bug #170643, it could be similar, both crashes on KTextEdit::contextMenuEvent but the crash occours in different part of the code. I'll leave a reference to this bug on bug #170643
Mh, I have reproduced it. However it doesn't occurs all the time. I had to right-click faster many times :P Here using: Qt: 4.4.3 + qt-copy-patches-889120 KDE: 4.1.86 (KDE 4.1.86 (KDE 4.2 >= 20081221)) kdelibs svn rev. 902031 / kdebase svn rev. 902032 on ArchLinux x86_64 - Kernel 2.6.27.10 Backtrace: Application: Konqueror (konqueror), signal SIGSEGV 0x00007feef8607001 in nanosleep () from /lib/libc.so.6 Thread 1 (Thread 0x7feefd682750 (LWP 5326)): [KCrash Handler] #5 0x00007feefbcc3cde in KTextEdit::contextMenuEvent (this=0x18a0e00, event=0x7fff057c0d80) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/widgets/ktextedit.cpp:513 #6 0x00007feeee6621ad in khtml::RenderWidget::handleEvent (this=0x1812620, ev=@0xe79590) at /home/kde-devel/kde/src/KDE/kdelibs/khtml/rendering/render_replaced.cpp:1078 #7 0x00007feeee5cd073 in DOM::HTMLGenericFormElementImpl::defaultEventHandler (this=0x1761020, evt=0xe79590) at /home/kde-devel/kde/src/KDE/kdelibs/khtml/html/html_formimpl.cpp:1027 #8 0x00007feeee5658dc in DOM::NodeImpl::dispatchGenericEvent (this=0x1761020, evt=0xe79590) at /home/kde-devel/kde/src/KDE/kdelibs/khtml/xml/dom_nodeimpl.cpp:524 #9 0x00007feeee565aae in DOM::NodeImpl::dispatchEvent (this=0x1761020, evt=0xe79590, exceptioncode=@0x7fff057c11dc, tempEvent=true) at /home/kde-devel/kde/src/KDE/kdelibs/khtml/xml/dom_nodeimpl.cpp:451 #10 0x00007feeee4c0ec1 in KHTMLView::dispatchMouseEvent (this=0xfab870, eventId=4, targetNode=0x1761020, targetNodeNonShared=<value optimized out>, cancelable=<value optimized out>, detail=1, _mouse=0x7fff057c20b0, setUnder=true, mouseEventType=0, orient=0) at /home/kde-devel/kde/src/KDE/kdelibs/khtml/khtmlview.cpp:3721 #11 0x00007feeee4ce4b3 in KHTMLView::mousePressEvent (this=0xfab870, _mouse=0x7fff057c20b0) at /home/kde-devel/kde/src/KDE/kdelibs/khtml/khtmlview.cpp:1285 #12 0x00007feefa1b2c9a in QWidget::event (this=0xfab870, event=0x7fff057c20b0) at kernel/qwidget.cpp:7159 #13 0x00007feeee4c94bd in KHTMLView::widgetEvent (this=0xfab870, e=0x7feef8686088) at /home/kde-devel/kde/src/KDE/kdelibs/khtml/khtmlview.cpp:2365 #14 0x00007feeee4c9774 in KHTMLView::eventFilter (this=0xfab870, o=0x10ed580, e=0x7fff057c20b0) at /home/kde-devel/kde/src/KDE/kdelibs/khtml/khtmlview.cpp:2229 #15 0x00007feefada97f7 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x10ed580, event=0x7fff057c20b0) at kernel/qcoreapplication.cpp:694 #16 0x00007feefa16007c in QApplicationPrivate::notify_helper (this=0x9542d0, receiver=0x10ed580, e=0x7fff057c20b0) at kernel/qapplication.cpp:3799 #17 0x00007feefa167c65 in QApplication::notify (this=<value optimized out>, receiver=0x10ed580, e=0x7fff057c20b0) at kernel/qapplication.cpp:3528 #18 0x00007feefbbc96bb in KApplication::notify (this=0x7fff057c2f20, receiver=0x10ed580, event=0x7fff057c20b0) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307 #19 0x00007feefada9d90 in QCoreApplication::notifyInternal (this=0x7fff057c2f20, receiver=0x10ed580, event=0x7fff057c20b0) at kernel/qcoreapplication.cpp:583 #20 0x00007feefa166fe2 in QApplicationPrivate::sendMouseEvent (receiver=0x10ed580, event=0x7fff057c20b0, alienWidget=0x10ed580, nativeWidget=0xb1d420, buttonDown=<value optimized out>, lastMouseReceiver=@0x7feefaa50450) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212 #21 0x00007feefa1c4bec in QETWidget::translateMouseEvent (this=0xb1d420, event=<value optimized out>) at kernel/qapplication_x11.cpp:4044 #22 0x00007feefa1c3d47 in QApplication::x11ProcessEvent (this=0x7c, event=0x7fff057c2980) at kernel/qapplication_x11.cpp:3162 #23 0x00007feefa1e8724 in x11EventSourceDispatch (s=0x957930, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142 #24 0x00007feef679daa2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #25 0x00007feef67a121d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0 #26 0x00007feef67a13db in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #27 0x00007feefadd0cdf in QEventDispatcherGlib::processEvents (this=0x929170, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319 #28 0x00007feefa1e7f7f in QGuiEventDispatcherGlib::processEvents (this=0x124e500, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198 #29 0x00007feefada89c2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 92023920}) at kernel/qeventloop.cpp:143 #30 0x00007feefada8b55 in QEventLoop::exec (this=0x7fff057c2cb0, flags={i = 92024000}) at kernel/qeventloop.cpp:190 #31 0x00007feefadad8f7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845 #32 0x00007feefd37bac9 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdebase/apps/konqueror/src/konqmain.cpp:257 #33 0x00007feef8586546 in __libc_start_main () from /lib/libc.so.6 #34 0x00000000004007c9 in _start ()
Cannot reproduce using current trunk r925889. Now the problem seems really fixed :-)