Bug 412228

Summary: Kopete crash if join a jabber-room
Product: [Unmaintained] kopete Reporter: Stefan <shadow_7>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: irb_kde, kde-bugs, migtavares, sbob, shawn
Priority: HI Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Stefan 2019-09-23 07:47:34 UTC
Application: kopete (1.13.0)

Qt Version: 5.11.3
Frameworks Version: 5.54.0
Operating System: Linux 4.19.0-6-amd64 x86_64
Distribution: Debian GNU/Linux 10 (buster)

-- Information about the crash:
- What I was doing when the application crashed:

I try to connect to a jabber room, it happens every time I try it.

The crash can be reproduced every time.

-- Backtrace:
Application: Kopete (kopete), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc2c6d0fdc0 (LWP 21973))]

Thread 3 (Thread 0x7fc2bfb83700 (LWP 21999)):
#0  0x00007fc2ca882494 in __GI___libc_read (nbytes=16, buf=0x7fc2bfb82ac0, fd=18) at ../sysdeps/unix/sysv/linux/read.c:26
#1  0x00007fc2ca882494 in __GI___libc_read (fd=18, buf=0x7fc2bfb82ac0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007fc2c8e40aa0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc2c8dfac0f in g_main_context_check () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fc2c8dfb0e0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fc2c8dfb25c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fc2cb8638fe in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007fc2cb83538f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fc2cb83565e in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fc2cb73af96 in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007fc2c1e41ed5 in XMPP::NetTrackerThread::run() (this=0x55bb2b208df0) at ./protocols/jabber/libiris/src/irisnet/corelib/netinterface.cpp:168
#11 0x00007fc2cb73d726 in  () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#12 0x00007fc2c8f03fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#13 0x00007fc2ca8914cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fc2c0384700 (LWP 21998)):
#0  0x00007fc2ca886819 in __GI___poll (fds=0x7fc2b8005430, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc2c8dfb136 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc2c8dfb25c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc2cb8638fe in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fc2cb83538f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007fc2cb83565e in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fc2c19b1cbf in QCA::SyncThread::run() () at /usr/lib/x86_64-linux-gnu/libqca.so.2
#7  0x00007fc2cb73d726 in  () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fc2c8f03fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#9  0x00007fc2ca8914cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fc2c6d0fdc0 (LWP 21973)):
[KCrash Handler]
#6  0x00007fc2cb84bb9e in QObject::connect(QObject const*, char const*, QObject const*, char const*, Qt::ConnectionType) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007fc2c1d0ea70 in JabberGroupContact::addSubContact(XMPP::RosterItem const&, bool) (this=this@entry=0x55bb2b1450f0, rosterItem=..., addToManager=addToManager@entry=true) at ./protocols/jabber/jabbergroupcontact.cpp:297
#8  0x00007fc2c1cf0cce in JabberAccount::slotGroupChatPresence(XMPP::Jid const&, XMPP::Status const&) (this=<optimized out>, jid=..., status=...) at ./protocols/jabber/jabberaccount.cpp:1639
#9  0x00007fc2c1cf57d0 in JabberAccount::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x55bb2b3f94b0, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at ./obj-x86_64-linux-gnu/protocols/jabber/jabberaccount.moc:151
#10 0x00007fc2cb84ac90 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007fc2c1d35dea in JabberClient::groupChatPresence(XMPP::Jid const&, XMPP::Status const&) (this=<optimized out>, _t1=..., _t2=...) at ./obj-x86_64-linux-gnu/protocols/jabber/jabberclient.moc:341
#12 0x00007fc2cb84ac90 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#13 0x00007fc2c1d4517a in XMPP::Client::groupChatPresence(XMPP::Jid const&, XMPP::Status const&) (this=this@entry=0x55bb2a898990, _t1=..., _t2=...) at ./obj-x86_64-linux-gnu/protocols/jabber/libiris/moc_xmpp_client.cpp:308
#14 0x00007fc2c1d64bb0 in XMPP::Client::ppPresence(XMPP::Jid const&, XMPP::Status const&) (this=0x55bb2a898990, j=..., s=...) at ./protocols/jabber/libiris/src/xmpp/xmpp-im/client.cpp:745
#15 0x00007fc2c1d41510 in XMPP::Client::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at ./obj-x86_64-linux-gnu/protocols/jabber/libiris/moc_xmpp_client.cpp:136
#16 0x00007fc2cb84ac90 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#17 0x00007fc2c1d45697 in XMPP::JT_PushPresence::presence(XMPP::Jid const&, XMPP::Status const&) (this=this@entry=0x55bb2c2b9dd0, _t1=..., _t2=...) at ./obj-x86_64-linux-gnu/protocols/jabber/libiris/moc_xmpp_tasks.cpp:440
#18 0x00007fc2c1db559e in XMPP::JT_PushPresence::take(QDomElement const&) (this=this@entry=0x55bb2c2b9dd0, e=...) at ./protocols/jabber/libiris/src/xmpp/xmpp-im/xmpp_tasks.cpp:803
#19 0x00007fc2c1dbb31f in XMPP::JT_PushPresence::take(QDomElement const&) (this=0x55bb2c2b9dd0, e=...) at /usr/include/qt4/QtCore/qatomic_x86_64.h:134
#20 0x00007fc2c1d9a7fb in XMPP::Task::take(QDomElement const&) (this=<optimized out>, x=...) at ./protocols/jabber/libiris/src/xmpp/xmpp-im/xmpp_task.cpp:156
#21 0x00007fc2c1d66847 in XMPP::Client::distribute(QDomElement const&) (this=this@entry=0x55bb2a898990, x=...) at ./protocols/jabber/libiris/src/xmpp/xmpp-im/client.cpp:592
#22 0x00007fc2c1d67117 in XMPP::Client::streamReadyRead() (this=0x55bb2a898990) at ./protocols/jabber/libiris/src/xmpp/xmpp-im/client.cpp:526
#23 0x00007fc2c1d41575 in XMPP::Client::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at ./obj-x86_64-linux-gnu/protocols/jabber/libiris/moc_xmpp_client.cpp:131
#24 0x00007fc2cb84ac90 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#25 0x00007fc2c1d43263 in XMPP::Stream::readyRead() (this=<optimized out>) at ./obj-x86_64-linux-gnu/protocols/jabber/libiris/moc_xmpp_stream.cpp:118
#26 0x00007fc2c1ddad65 in XMPP::ClientStream::doReadyRead() (this=<optimized out>) at ./protocols/jabber/libiris/src/xmpp/xmpp-core/stream.cpp:964
#27 0x00007fc2c1d40755 in XMPP::ClientStream::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at ./obj-x86_64-linux-gnu/protocols/jabber/libiris/moc_xmpp_clientstream.cpp:123
#28 0x00007fc2cb84f601 in QObject::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#29 0x00007fc2cad17a2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#30 0x00007fc2cad1e212 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#31 0x00007fc2cbedebba in KApplication::notify(QObject*, QEvent*) () at /usr/lib/libkdeui.so.5
#32 0x00007fc2cb836afb in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#33 0x00007fc2cb839815 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#34 0x00007fc2cb8637b3 in  () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#35 0x00007fc2c8dfaf2e in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007fc2c8dfb1c8 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007fc2c8dfb25c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007fc2cb8638e1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#39 0x00007fc2cadb71f7 in  () at /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#40 0x00007fc2cb83538f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#41 0x00007fc2cb83565e in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#42 0x00007fc2cb83ab2a in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#43 0x000055bb285b6f47 in main(int, char**) (argc=3, argv=0x7ffecaf1e428) at ./kopete/main.cpp:105
[Inferior 1 (process 21973) detached]

Possible duplicates by query: bug 401931.

Reported using DrKonqi
Comment 1 Christoph Feck 2020-08-03 17:50:09 UTC
*** Bug 401931 has been marked as a duplicate of this bug. ***
Comment 2 Christoph Feck 2020-08-03 17:50:49 UTC
*** Bug 414273 has been marked as a duplicate of this bug. ***
Comment 3 Christoph Feck 2020-08-03 17:51:26 UTC
*** Bug 419243 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Feck 2020-08-03 17:51:48 UTC
*** Bug 424366 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Feck 2020-08-03 17:53:00 UTC
*** Bug 421843 has been marked as a duplicate of this bug. ***
Comment 6 Justin Zobel 2022-10-12 03:49:52 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 7 Miguel 2022-10-12 21:41:13 UTC
Indeed it still crashes:

Qt Version: 5.15.5
Frameworks Version: 5.96.0
Operation System: Linux 5.15.69
Distribution: gentoo

Segfault still happens when connecting to a jabber chat room.

Application: Kopete (kopete), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f47f0548f22 in JabberGroupContact::addSubContact(XMPP::RosterItem const&, bool) () from /usr/lib64/qt5/plugins/kopete_jabber.so
#5  0x00007f47f052ac3a in JabberAccount::slotGroupChatPresence(XMPP::Jid const&, XMPP::Status const&) () from /usr/lib64/qt5/plugins/kopete_jabber.so
#6  0x00007f482afaed4c in void doActivate<false>(QObject*, int, void**) () from /usr/lib64/libQt5Core.so.5
#7  0x00007f47f04d070a in JabberClient::groupChatPresence(XMPP::Jid const&, XMPP::Status const&) () from /usr/lib64/qt5/plugins/kopete_jabber.so
#8  0x00007f482afaed4c in void doActivate<false>(QObject*, int, void**) () from /usr/lib64/libQt5Core.so.5
#9  0x00007f47f05a6ba7 in XMPP::Client::ppPresence(XMPP::Jid const&, XMPP::Status const&) () from /usr/lib64/qt5/plugins/kopete_jabber.so
#10 0x00007f482afaed4c in void doActivate<false>(QObject*, int, void**) () from /usr/lib64/libQt5Core.so.5
#11 0x00007f47f05783b7 in XMPP::JT_PushPresence::presence(XMPP::Jid const&, XMPP::Status const&) () from /usr/lib64/qt5/plugins/kopete_jabber.so
#12 0x00007f47f0600bc4 in XMPP::JT_PushPresence::take(QDomElement const&) () from /usr/lib64/qt5/plugins/kopete_jabber.so
#13 0x00007f47f05db48c in XMPP::Task::take(QDomElement const&) () from /usr/lib64/qt5/plugins/kopete_jabber.so
#14 0x00007f47f05a7979 in XMPP::Client::distribute(QDomElement const&) () from /usr/lib64/qt5/plugins/kopete_jabber.so
#15 0x00007f47f05a806d in XMPP::Client::streamReadyRead() () from /usr/lib64/qt5/plugins/kopete_jabber.so
#16 0x00007f482afaed4c in void doActivate<false>(QObject*, int, void**) () from /usr/lib64/libQt5Core.so.5
#17 0x00007f482afa6be6 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#18 0x00007f482b9b1a5f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#19 0x00007f482af7b228 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#20 0x00007f482af7e8b5 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#21 0x00007f482afcdac3 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5Core.so.5
#22 0x00007f48291aa36b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#23 0x00007f48291aa628 in g_main_context_iterate.constprop () from /usr/lib64/libglib-2.0.so.0
#24 0x00007f48291aa6df in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#25 0x00007f482afcd554 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#26 0x00007f482af79c0b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#27 0x00007f482af8226d in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#28 0x000055d2a2189d47 in main ()
[Inferior 1 (process 22424) detached]

(In reply to Justin Zobel from comment #6)
> Thank you for reporting this crash in KDE software. As it has been a while
> since this issue was reported, can we please ask you to see if you can
> reproduce the crash with a recent software version?
> 
> If you can reproduce the issue, please change the status to "CONFIRMED" when
> replying. Thank you!
Comment 8 Christoph Cullmann 2024-09-18 18:28:25 UTC
Dear user, unfortunately Kopete is no longer maintained.

Please migrate to another solution, e.g. for Jabber a possibility is Kaidan, for Matrix a candidate is NeoChat.