Bug 183082 - Kopete crashes on editing rich-text info in coversation window
Summary: Kopete crashes on editing rich-text info in coversation window
Status: RESOLVED WORKSFORME
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:
Depends on:
Blocks:
 
Reported: 2009-02-03 23:57 UTC by Alexey Chernov
Modified: 2009-03-10 00:09 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Chernov 2009-02-03 23:57:39 UTC
Version:            (using KDE 4.2.0)
Compiler:          GCC 4.3.2 Target: x86_64-unknown-linux-gnu Configured with:  ../gcc-4.3.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,fortran,objc,treelang --disable-multilib --enable-c99 --enable-long-long Thread model: posix
OS:                Linux
Installed from:    Compiled From Sources

When editing (i guess, selecting) some pasted html text Kopete crashes. To reproduce:
1. Copy and paste some html from browser to input field in conversation window.
2. try to select it, try to backspace it.
3. Kopete crashes.
For me it crashes always when i paste a couple of comments from this page: http://habrahabr.ru/blogs/im/51005/ But it's russian so must be not very useful.
Comment 1 Alexey Chernov 2009-02-03 23:58:42 UTC
Backtrace:
Приложение: Kopete (kopete), сигнал SIGABRT
Using host libthread_db library "/lib/libthread_db.so.1".
0x00007f1207298671 in nanosleep () from /lib/libc.so.6
[Current thread is 0 (LWP 3705)]

Thread 5 (Thread 0x40c31950 (LWP 3791)):
#0  0x00007f1203c9915d in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#1  0x00007f1203c9953a in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#2  0x00007f1203c999fb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f1208edc508 in QEventDispatcherGlib::processEvents (this=0x18e2280, flags={i = 1086525072}) at kernel/qeventdispatcher_glib.cpp:320
#4  0x00007f1208ea0dd7 in QEventLoop::processEvents (this=0x18e1750, flags={i = 1086525184}) at kernel/qeventloop.cpp:144
#5  0x00007f1208ea0fe6 in QEventLoop::exec (this=0x18e1750, flags={i = 1086525600}) at kernel/qeventloop.cpp:195
#6  0x00007f11f46bdb7b in QCA::SyncThread::run (this=0x1a60520) at support/syncthread.cpp:195
#7  0x00007f1208d8bd57 in QThreadPrivate::start (arg=0x1a60520) at thread/qthread_unix.cpp:184
#8  0x00007f1208c05297 in start_thread () from /lib/libpthread.so.0
#9  0x00007f12072c570d in clone () from /lib/libc.so.6

Thread 4 (Thread 0x41432950 (LWP 3792)):
#0  0x00007f1208c09b69 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f1208d8c709 in QWaitConditionPrivate::wait (this=0x1f99180, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:82
#2  0x00007f1208d8c266 in QWaitCondition::wait (this=0x1f92f90, mutex=0x1f92f88, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:154
#3  0x00007f120a2540a6 in QHostInfoAgent::run (this=0x1f92f70) at kernel/qhostinfo.cpp:255
#4  0x00007f1208d8bd57 in QThreadPrivate::start (arg=0x1f92f70) at thread/qthread_unix.cpp:184
#5  0x00007f1208c05297 in start_thread () from /lib/libpthread.so.0
#6  0x00007f12072c570d in clone () from /lib/libc.so.6

Thread 3 (Thread 0x41c33950 (LWP 3793)):
#0  0x00007f12072bf322 in select () from /lib/libc.so.6
#1  0x00007f11f4112e9a in posix_timer_do () from /usr/lib/libortp.so.5
#2  0x00007f11f4113b65 in rtp_scheduler_schedule () from /usr/lib/libortp.so.5
#3  0x00007f1208c05297 in start_thread () from /lib/libpthread.so.0
#4  0x00007f12072c570d in clone () from /lib/libc.so.6

Thread 2 (Thread 0x42434950 (LWP 4940)):
#0  0x00007f12072bf322 in select () from /lib/libc.so.6
#1  0x00007f1208e7e3f9 in QProcessManager::run (this=0x1305f40) at io/qprocess_unix.cpp:300
#2  0x00007f1208d8bd57 in QThreadPrivate::start (arg=0x1305f40) at thread/qthread_unix.cpp:184
#3  0x00007f1208c05297 in start_thread () from /lib/libpthread.so.0
#4  0x00007f12072c570d in clone () from /lib/libc.so.6

Thread 1 (Thread 0x7f120cc63700 (LWP 3705)):
[KCrash Handler]
#5  0x00007f120723199b in raise () from /lib/libc.so.6
#6  0x00007f1207232d4e in abort () from /lib/libc.so.6
#7  0x00007f1208d7f7e8 in qt_message_output (msgType=QtFatalMsg, buf=0x2134f98 "ASSERT: \"false\" in file text/qtextobject.cpp, line 547") at global/qglobal.cpp:1993
#8  0x00007f1208d7f915 in qFatal (msg=0x7f1208f0bee0 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2188
#9  0x00007f1208d7fdef in qt_assert (assertion=0x7f12084ef52e "false", file=0x7f12084ef4fb "text/qtextobject.cpp", line=547) at global/qglobal.cpp:1764
#10 0x00007f1207fb0d5b in QTextFramePrivate::fragmentAdded (this=0x258dcf0, type=@0x7fff14ca58b0, fragment=2) at text/qtextobject.cpp:547
#11 0x00007f1207fcf566 in QTextDocumentPrivate::insert_block (this=0x24ce280, pos=0, strPos=1, format=3, blockFormat=5, op=QTextUndoCommand::MoveCursor, command=5) at text/qtextdocument_p.cpp:358
#12 0x00007f1207fcf817 in QTextDocumentPrivate::insertBlock (this=0x24ce280, blockSeparator=@0x7fff14ca5a10, pos=0, blockFormat=5, charFormat=3, op=QTextUndoCommand::MoveCursor)
    at text/qtextdocument_p.cpp:378
#13 0x00007f1207fcfe64 in QTextDocumentPrivate::insertBlock (this=0x24ce280, pos=0, blockFormat=5, charFormat=3, op=QTextUndoCommand::MoveCursor) at text/qtextdocument_p.cpp:411
#14 0x00007f1208007ada in QTextCopyHelper::appendFragment (this=0x7fff14ca5d60, pos=52, endPos=97, objectIndex=-1) at text/qtextdocumentfragment.cpp:123
#15 0x00007f1208007c1b in QTextCopyHelper::appendFragments (this=0x7fff14ca5d60, pos=52, endPos=97) at text/qtextdocumentfragment.cpp:142
#16 0x00007f12080080c3 in QTextCopyHelper::copy (this=0x7fff14ca5d60) at text/qtextdocumentfragment.cpp:206
#17 0x00007f12080084fe in QTextDocumentFragmentPrivate (this=0x251c920, _cursor=@0x233ddd0) at text/qtextdocumentfragment.cpp:220
#18 0x00007f12080089d9 in QTextDocumentFragment (this=0x7fff14ca5e40, cursor=@0x233ddd0) at text/qtextdocumentfragment.cpp:302
#19 0x00007f1207f809d4 in QTextControl::createMimeDataFromSelection (this=0x233dd20) at text/qtextcontrol.cpp:2271
#20 0x00007f12082743bf in QTextEdit::createMimeDataFromSelection (this=0x21ee1c0) at widgets/qtextedit.cpp:1975
#21 0x00007f120827a6a1 in QTextEditControl::createMimeDataFromSelection (this=0x233dd20) at widgets/qtextedit.cpp:82
#22 0x00007f1207f836b3 in QTextControlPrivate::setClipboardSelection (this=0x233dd40) at text/qtextcontrol.cpp:582
#23 0x00007f1207f86cbe in QTextControlPrivate::mouseReleaseEvent (this=0x233dd40, button=Qt::LeftButton, pos=@0x7fff14ca60e0) at text/qtextcontrol.cpp:1623
#24 0x00007f1207f8bbe3 in QTextControl::processEvent (this=0x233dd20, e=0x7fff14ca7090, matrix=@0x7fff14ca6430, contextWidget=0x2039c70) at text/qtextcontrol.cpp:907
#25 0x00007f1207f88380 in QTextControl::processEvent (this=0x233dd20, e=0x7fff14ca7090, coordinateOffset=@0x7fff14ca6490, contextWidget=0x2039c70) at text/qtextcontrol.cpp:855
#26 0x00007f120827a7e0 in QTextEditPrivate::sendControlEvent (this=0x261c730, e=0x7fff14ca7090) at widgets/qtextedit_p.h:95
#27 0x00007f1208274e12 in QTextEdit::mouseReleaseEvent (this=0x21ee1c0, e=0x7fff14ca7090) at widgets/qtextedit.cpp:1535
#28 0x00007f1207d34eb9 in QWidget::event (this=0x21ee1c0, event=0x7fff14ca7090) at kernel/qwidget.cpp:7393
#29 0x00007f12081e042b in QFrame::event (this=0x21ee1c0, e=0x7fff14ca7090) at widgets/qframe.cpp:554
#30 0x00007f120829203c in QAbstractScrollArea::viewportEvent (this=0x21ee1c0, e=0x7fff14ca7090) at widgets/qabstractscrollarea.cpp:957
#31 0x00007f120829513c in QAbstractScrollAreaPrivate::viewportEvent (this=0x261c730, event=0x7fff14ca7090) at widgets/qabstractscrollarea_p.h:95
#32 0x00007f1208295178 in QAbstractScrollAreaFilter::eventFilter (this=0x226db20, o=0x2039c70, e=0x7fff14ca7090) at widgets/qabstractscrollarea_p.h:106
#33 0x00007f1208ea228b in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x12e9530, receiver=0x2039c70, event=0x7fff14ca7090) at kernel/qcoreapplication.cpp:703
#34 0x00007f1207cc6c0b in QApplicationPrivate::notify_helper (this=0x12e9530, receiver=0x2039c70, e=0x7fff14ca7090) at kernel/qapplication.cpp:3963
#35 0x00007f1207cc79cd in QApplication::notify (this=0x7fff14ca8170, receiver=0x2039c70, e=0x7fff14ca7090) at kernel/qapplication.cpp:3669
#36 0x00007f1209b0b773 in KApplication::notify (this=0x7fff14ca8170, receiver=0x2039c70, event=0x7fff14ca7090) at /usr/src/packages/kde4/4.2.0/kdelibs-4.2.0/kdeui/kernel/kapplication.cpp:307
#37 0x00007f1208ea471b in QCoreApplication::notifyInternal (this=0x7fff14ca8170, receiver=0x2039c70, event=0x7fff14ca7090) at kernel/qcoreapplication.cpp:588
#38 0x00007f120af75767 in QCoreApplication::sendSpontaneousEvent () from /usr/lib/libQt3Support.so.4
#39 0x00007f1207ccc4b5 in QApplicationPrivate::sendMouseEvent (receiver=0x2039c70, event=0x7fff14ca7090, alienWidget=0x2039c70, nativeWidget=0x209f2c0, buttonDown=0x7f1208988668, 
    lastMouseReceiver=@0x7f1208988670) at kernel/qapplication.cpp:2887
#40 0x00007f1207d5eb75 in QETWidget::translateMouseEvent (this=0x209f2c0, event=0x7fff14ca7ce0) at kernel/qapplication_x11.cpp:4375
#41 0x00007f1207d5fcd7 in QApplication::x11ProcessEvent (this=0x7fff14ca8170, event=0x7fff14ca7ce0) at kernel/qapplication_x11.cpp:3371
#42 0x00007f1207d9033a in x11EventSourceDispatch (s=0x1305540, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:141
#43 0x00007f1203c960c1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#44 0x00007f1203c9983d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#45 0x00007f1203c999fb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#46 0x00007f1208edc4ea in QEventDispatcherGlib::processEvents (this=0x12a4440, flags={i = 348815264}) at kernel/qeventdispatcher_glib.cpp:318
#47 0x00007f1207d8f99b in QGuiEventDispatcherGlib::processEvents (this=0x12a4440, flags={i = 348815360}) at kernel/qguieventdispatcher_glib.cpp:197
#48 0x00007f1208ea0dd7 in QEventLoop::processEvents (this=0x7fff14ca80d0, flags={i = 348815472}) at kernel/qeventloop.cpp:144
#49 0x00007f1208ea0fe6 in QEventLoop::exec (this=0x7fff14ca80d0, flags={i = 348815584}) at kernel/qeventloop.cpp:195
#50 0x00007f1208ea5165 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:865
#51 0x00007f1207cc698a in QApplication::exec () at kernel/qapplication.cpp:3442
#52 0x000000000044d207 in main (argc=3, argv=0x7fff14ca8f28) at /usr/src/packages/kde4/4.2.0/kdenetwork-4.2.0/kopete/kopete/main.cpp:102
Comment 2 Dario Andres 2009-02-04 20:00:00 UTC
As you are using an unstable Qt (4.5) I suppose it's a Qt bug.
Can you try later with an updated Qt snapshot? (or a future beta) ?
Comment 3 Alexey Chernov 2009-02-04 20:02:16 UTC
Yes, of course, i will try it as Qt will be updated
Comment 4 Alexey Chernov 2009-02-06 12:53:44 UTC
I've updated Qt 4.5 to RC1 last night and the crash isn't reproducible anymore. I think it can be closed.
Comment 5 Dario Andres 2009-02-06 13:02:09 UTC
Reopen if you experience it again :)
Comment 6 Alexey Chernov 2009-02-06 13:11:13 UTC
Ok. I'll test it with future Qt prereleases to 4.5
Comment 7 Alexey Chernov 2009-03-10 00:09:11 UTC
Can't reproduce for Qt 4.5 final, so it remains closed. For 4.5 it isn't there.