Bug 228704 - Kopete crashes when using backspace in chat window (4.5trunk regression)
Summary: Kopete crashes when using backspace in chat window (4.5trunk regression)
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
: 228712 229713 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-27 03:48 UTC by Martin Herkt
Modified: 2010-06-17 13:53 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
kopete-20100302.kcrash (6.52 KB, text/plain)
2010-03-02 18:50 UTC, Timo Gurr
Details
New crash information added by DrKonqi (7.69 KB, text/plain)
2010-03-08 17:55 UTC, Daniil
Details
New crash information added by DrKonqi (7.13 KB, text/plain)
2010-04-02 18:29 UTC, Zachary Klein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Herkt 2010-02-27 03:48:59 UTC
Application: kopete (1.0.80)
KDE Platform Version: 4.4.65 (KDE 4.4.65 (KDE 4.5 >= 20100224)) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.33-rc8-21-lachs0r x86_64
Distribution: "CirnOS Pre-Alpha 0 (x86_64)"

-- Information about the crash:
Using backspace in a chat window after typing some text instantly crashes Kopete. Very annoying.

(also happens on Arch Linux with Qt 4.6.2)

The crash can be reproduced every time.

 -- Backtrace:
Application: Kopete (kopete), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f9cab0bc760 (LWP 24660))]

Thread 3 (Thread 0x7f9c9f092710 (LWP 24686)):
#0  0x00000034c1ec7d53 in poll () from /lib64/libc.so.6
#1  0x00000034c4a3f394 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00000034c4a3f8cd in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f9cad5eb606 in QEventDispatcherGlib::processEvents (this=0x18984c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007f9cad5c1fe2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f9cad5c221c in QEventLoop::exec (this=0x1819f90, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f9ca004355b in QCA::SyncThread::run() () from /usr/lib64/libqca.so.2
#7  0x00007f9cad4d9dc5 in QThreadPrivate::start (arg=0x16ddd10) at thread/qthread_unix.cpp:248
#8  0x00000034c2a06a3f in start_thread () from /lib64/libpthread.so.0
#9  0x00000034c1ed0ecd in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f9c9e891710 (LWP 24687)):
#0  0x00000034c1ec7d53 in poll () from /lib64/libc.so.6
#1  0x00000034c4a3f394 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00000034c4a3f8cd in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f9cad5eb606 in QEventDispatcherGlib::processEvents (this=0x1da0fb0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007f9cad5c1fe2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f9cad5c221c in QEventLoop::exec (this=0x15c9e80, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f9ca04b0c1f in XMPP::SyncThread::run (this=0x18d8bd0) at /mnt/trunk/KDE/kdenetwork/kopete/protocols/jabber/libiris/iris/irisnet/corelib/netinterface.cpp:151
#7  0x00007f9cad4d9dc5 in QThreadPrivate::start (arg=0x18d8bd0) at thread/qthread_unix.cpp:248
#8  0x00000034c2a06a3f in start_thread () from /lib64/libpthread.so.0
#9  0x00000034c1ed0ecd in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9cab0bc760 (LWP 24660)):
[KCrash Handler]
#5  QTextDocumentPrivate::finishEdit (this=0x7fffb3f0d250) at text/qtextdocument_p.cpp:1168
#6  0x00007f9cac99d9d7 in QTextCursorPrivate::remove (this=0x2a13d00) at text/qtextcursor.cpp:174
#7  0x00007f9cac9a3057 in QTextCursor::deletePreviousChar (this=0x275e2c0) at text/qtextcursor.cpp:1418
#8  0x00007f9cac93fa3a in QTextControlPrivate::keyPressEvent (this=0x275e220, e=0x7fffb3f0e920) at text/qtextcontrol.cpp:1202
#9  0x00007f9cac941ea3 in QTextControl::processEvent (this=0x27583b0, e=0x7fffb3f0e920, matrix=..., contextWidget=0x275cf60) at text/qtextcontrol.cpp:918
#10 0x00007f9cac93770a in QTextControl::processEvent (this=0x27583b0, e=0x7fffb3f0e920, coordinateOffset=..., contextWidget=0x275cf60) at text/qtextcontrol.cpp:880
#11 0x00007f9cacb3e1e6 in sendControlEvent (e=0x7fffb3f0e920, this=0x27589a0) at widgets/qtextedit_p.h:99
#12 QTextEdit::keyPressEvent (e=0x7fffb3f0e920, this=0x27589a0) at widgets/qtextedit.cpp:1299
#13 0x00007f9cae065ef7 in KTextEdit::keyPressEvent (this=0x2758940, event=0x7fffb3f0e920) at /mnt/trunk/KDE/kdelibs/kdeui/widgets/ktextedit.cpp:1067
#14 0x00007f9cae051d5b in KRichTextEdit::keyPressEvent (this=0x2758940, event=0x7fffb3f0e920) at /mnt/trunk/KDE/kdelibs/kdeui/widgets/krichtextedit.cpp:482
#15 0x00007f9cac75e516 in QWidget::event (this=0x2758940, event=0x7fffb3f0e920) at kernel/qwidget.cpp:8049
#16 0x00007f9cacad6386 in QFrame::event (this=0x2758940, e=0x7fffb3f0e920) at widgets/qframe.cpp:557
#17 0x00007f9cacb54d2b in QAbstractScrollArea::event (this=0x2758940, e=0x7fffb3f0e920) at widgets/qabstractscrollarea.cpp:989
#18 0x00007f9cacb41900 in QTextEdit::event (this=0x2758940, e=0x7fffb3f0e920) at widgets/qtextedit.cpp:1070
#19 0x00007f9ca192700b in KopeteRichTextWidget::event (this=0x2758940, event=0x7fffb3f0e920) at /mnt/trunk/KDE/kdenetwork/kopete/kopete/chatwindow/kopeterichtextwidget.cpp:458
#20 0x00007f9cac70eaa4 in QApplicationPrivate::notify_helper (this=0xfd34d0, receiver=0x2758940, e=0x7fffb3f0e920) at kernel/qapplication.cpp:4300
#21 0x00007f9cac713292 in QApplication::notify (this=<value optimized out>, receiver=<value optimized out>, e=0x7fffb3f0e920) at kernel/qapplication.cpp:3763
#22 0x00007f9cadf79676 in KApplication::notify (this=0x7fffb3f0f8b0, receiver=0x2758940, event=0x7fffb3f0e920) at /mnt/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#23 0x00007f9cad5c2bfc in QCoreApplication::notifyInternal (this=0x7fffb3f0f8b0, receiver=0x2758940, event=0x7fffb3f0e920) at kernel/qcoreapplication.cpp:704
#24 0x00007f9cac7aaeca in QKeyMapper::sendKeyEvent (keyWidget=0x2758940, grab=<value optimized out>, type=KeyPress, code=16777219, modifiers=<value optimized out>, text=..., autorepeat=false, count=
    1, nativeScanCode=22, nativeVirtualKey=65288, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1875
#25 0x00007f9cac7ab34f in QKeyMapperPrivate::translateKeyEvent (this=<value optimized out>, keyWidget=0x2758940, event=<value optimized out>, grab=<value optimized out>)
    at kernel/qkeymapper_x11.cpp:1845
#26 0x00007f9cac78837c in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffb3f0f4f0) at kernel/qapplication_x11.cpp:3396
#27 0x00007f9cac7ae522 in x11EventSourceDispatch (s=0xfd6e50, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#28 0x00000034c4a3ee53 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#29 0x00000034c4a3f600 in ?? () from /usr/lib64/libglib-2.0.so.0
#30 0x00000034c4a3f8cd in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#31 0x00007f9cad5eb5af in QEventDispatcherGlib::processEvents (this=0xf86460, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#32 0x00007f9cac7ae1de in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007f9cad5c1fe2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007f9cad5c221c in QEventLoop::exec (this=0x7fffb3f0f800, flags=...) at kernel/qeventloop.cpp:201
#35 0x00007f9cad5c654b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#36 0x000000000041569e in main (argc=<value optimized out>, argv=<value optimized out>) at /mnt/trunk/KDE/kdenetwork/kopete/kopete/main.cpp:105

Reported using DrKonqi
Comment 1 Dario Andres 2010-02-27 14:32:01 UTC
*** Bug 228712 has been marked as a duplicate of this bug. ***
Comment 2 Timo Gurr 2010-03-02 18:48:41 UTC
Same here, attached is another backtrace.

Application: kopete (1.0.80)
KDE Platform Version: 4.4.65 (KDE 4.4.65 (KDE 4.5 >= 20100224)) (Compiled from
sources)
Qt Version: 4.6.3
Operating System: Linux exherbo 2.6.32.8 #1 SMP Tue Feb 16 03:06:36 CET 2010 x86_64 GNU/Linux
Distribution: "Exherbo Linux (x86_64)"
Comment 3 Timo Gurr 2010-03-02 18:50:34 UTC
Created attachment 41264 [details]
kopete-20100302.kcrash
Comment 4 Panagiotis Papadopoulos 2010-03-07 12:52:12 UTC
*** Bug 229713 has been marked as a duplicate of this bug. ***
Comment 5 Panagiotis Papadopoulos 2010-03-07 12:53:08 UTC
I can confirm this.
Comment 6 Daniil 2010-03-08 17:55:19 UTC
Created attachment 41447 [details]
New crash information added by DrKonqi

- What I was doing when the application crashed:

That was the test. I've opened kopete to test the ufter backspace pressing behaviour. That was a test, cos I've installed current update.
Comment 7 Panagiotis Papadopoulos 2010-03-11 12:08:51 UTC
It also crashes when using older Kopete versions…
So it might be some Qt error.

I use the packages from the openSUSE KDE Unstable Repository, containing trunk packages (also for Qt).
Comment 8 LuRan 2010-03-30 16:11:00 UTC
I had this kind of crash with svn r1107823, but the crash only happens when I enable the gramma check, after disable it, the backspace does not trigger the crash any more. Hope this can help tracking the bug.
Comment 9 Martin Herkt 2010-03-30 20:02:55 UTC
Update: It doesn't crash when auto spell check is disabled.
Comment 10 Zachary Klein 2010-04-02 18:29:47 UTC
Created attachment 42445 [details]
New crash information added by DrKonqi

kopete (1.0.80) on KDE Platform 4.4.70 (KDE 4.4.70 (KDE 4.5 >= 20100330)) "release 1" using Qt 4.6.3

Looks like the same issue here; running KDE Trunk from the openSUSE Bulid Service.

-- Backtrace (Reduced):
#6  QTextDocumentPrivate::finishEdit (this=0x4545454545454545) at text/qtextdocument_p.cpp:1140
#7  0x00007fc4b743ab57 in QTextCursorPrivate::remove (this=0x12e3570) at text/qtextcursor.cpp:174
#8  0x00007fc4b74401c7 in QTextCursor::deletePreviousChar (this=0xef7830) at text/qtextcursor.cpp:1418
#9  0x00007fc4b73dc98a in QTextControlPrivate::keyPressEvent (this=0xef7790, e=0x7fff37a4aed0) at text/qtextcontrol.cpp:1202
#10 0x00007fc4b73dedf3 in QTextControl::processEvent (this=0xec8500, e=0x7fff37a4aed0, matrix=..., contextWidget=0xefaa60) at text/qtextcontrol.cpp:918
Comment 11 Anselmo L. S. Melo (anselmolsm) 2010-05-28 12:37:40 UTC
I experienced this bug for a while, but it's working fine since beginning of May.

Can anyone else confirm that?
Thanks

My setup here:
Kopete Version 1.0.80
Using KDE Development Platform 4.4.80 (svn trunk r1131192, compiled from sources)
Qt 4.6.3+4.6.20100427-1.3 from openSUSE build service
openSUSE 11.2 - kernel 2.6.31.12-0.2-default
Comment 12 Timo Gurr 2010-05-29 00:34:11 UTC
I can confirm this, too. Kopete doesn't crash anymore.

Application: Kopete (1.0.80)
KDE Platform Version: KDE 4.4.81 (KDE 4.4.81 (KDE 4.5 >= 20100527))(Compiled from
sources)
Qt Version: 4.6.3
Operating System: Linux exherbo 2.6.33.3 #1 SMP Mon Apr 26 19:28:39 CEST 2010 x86_64 GNU/Linux
Distribution: "Exherbo Linux (x86_64)"
Comment 13 Martin Herkt 2010-06-17 13:53:05 UTC
I don't know what caused the bug and how it's been fixed, but I guess we were trying to pass empty strings to Sonnet or something like that.