Bug 405881

Summary: Kopete crash when trying to manage xoauth2 tokens
Product: [Unmaintained] kopete Reporter: Mike Krutov <nekoxmachina>
Component: generalAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: jscott
Priority: NOR Keywords: drkonqi
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mike Krutov 2019-03-26 09:21:51 UTC
Application: kopete (1.13.0)

Qt Version: 5.12.0
Frameworks Version: 5.56.0
Operating System: Linux 4.15.0-46-generic x86_64
Distribution: KDE neon User Edition 5.15

-- Information about the crash:
- What I was doing when the application crashed:
1) Enter some JID on google talks
2) Enter google talks server information
3) Click "Manage XOauth tokens"

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 0x7f5827a3e380 (LWP 16254))]

Thread 4 (Thread 0x7f57f86a6700 (LWP 16273)):
#0  0x00007f581c6619f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5636ab072c88) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x5636ab072c38, cond=0x5636ab072c60) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x5636ab072c60, mutex=0x5636ab072c38) at pthread_cond_wait.c:655
#3  0x00007f57f982bdcb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f57f982baf7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f581c65b6db in start_thread (arg=0x7f57f86a6700) at pthread_create.c:463
#6  0x00007f58222c588f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f580cfef700 (LWP 16270)):
#0  0x00007f58222b40b4 in __GI___libc_read (fd=9, buf=0x7f580cfeeb10, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f581a70ccd0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f581a6c8027 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f581a6c84e0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f581a6c864c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5822bfb15b in QEventDispatcherGlib::processEvents (this=0x7f5804000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x00007f5822b9c64a in QEventLoop::exec (this=this@entry=0x7f580cfeed20, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007f58229c441a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#8  0x00007f58229c5bc2 in QThreadPrivate::start (arg=0x5636aad74860) at thread/qthread_unix.cpp:361
#9  0x00007f581c65b6db in start_thread (arg=0x7f580cfef700) at pthread_create.c:463
#10 0x00007f58222c588f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f580e200700 (LWP 16259)):
#0  0x00007f58222b8bf9 in __GI___poll (fds=0x7f580002c160, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f581a6c8539 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f581a6c864c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5822bfb15b in QEventDispatcherGlib::processEvents (this=0x7f5800000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f5822b9c64a in QEventLoop::exec (this=this@entry=0x7f580e1ffcf0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007f58229c441a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#6  0x00007f5824632015 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f58229c5bc2 in QThreadPrivate::start (arg=0x7f58248a9d80) at thread/qthread_unix.cpp:361
#8  0x00007f581c65b6db in start_thread (arg=0x7f580e200700) at pthread_create.c:463
#9  0x00007f58222c588f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f5827a3e380 (LWP 16254)):
[KCrash Handler]
#6  Kopete::PasswordedAccount::password (this=0x0) at ./libkopete/kopetepasswordedaccount.cpp:50
#7  0x00007f57f5d486e4 in DlgJabberXOAuth2::DlgJabberXOAuth2 (this=0x5636ab256b90, account=<optimized out>, parent=<optimized out>) at ./protocols/jabber/ui/dlgjabberxoauth2.cpp:34
#8  0x00007f57f5d2d8ce in JabberEditAccountWidget::slotManageXOAuth2Clicked (this=0x5636aae80540) at ./protocols/jabber/ui/jabbereditaccountwidget.cpp:443
#9  0x00007f5822bcde25 in QMetaObject::activate (sender=sender@entry=0x5636ab2dd890, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffcb50b64c0) at kernel/qobject.cpp:3778
#10 0x00007f5822bce4f7 in QMetaObject::activate (sender=sender@entry=0x5636ab2dd890, m=m@entry=0x7f582406bba0 <QAbstractButton::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffcb50b64c0) at kernel/qobject.cpp:3631
#11 0x00007f5823a7b6f2 in QAbstractButton::clicked (this=this@entry=0x5636ab2dd890, _t1=<optimized out>) at .moc/moc_qabstractbutton.cpp:312
#12 0x00007f5823a7b90a in QAbstractButtonPrivate::emitClicked (this=0x5636ab210de0) at widgets/qabstractbutton.cpp:414
#13 0x00007f5823a7ccea in QAbstractButtonPrivate::click (this=0x5636ab210de0) at widgets/qabstractbutton.cpp:407
#14 0x00007f5823a7cedd in QAbstractButton::mouseReleaseEvent (this=0x5636ab2dd890, e=0x7ffcb50b6a30) at widgets/qabstractbutton.cpp:1011
#15 0x00007f58239d4838 in QWidget::event (this=0x5636ab2dd890, event=0x7ffcb50b6a30) at kernel/qwidget.cpp:9268
#16 0x00007f582399483c in QApplicationPrivate::notify_helper (this=this@entry=0x5636aad12d40, receiver=receiver@entry=0x5636ab2dd890, e=e@entry=0x7ffcb50b6a30) at kernel/qapplication.cpp:3752
#17 0x00007f582399cca8 in QApplication::notify (this=<optimized out>, receiver=0x5636ab2dd890, e=0x7ffcb50b6a30) at kernel/qapplication.cpp:3213
#18 0x00007f5822b9e328 in QCoreApplication::notifyInternal2 (receiver=0x5636ab2dd890, event=0x7ffcb50b6a30) at kernel/qcoreapplication.cpp:1061
#19 0x00007f5822b9e50e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x5636ab2dd890, event=event@entry=0x7ffcb50b6a30) at kernel/qcoreapplication.cpp:1463
#20 0x00007f582399b29f in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x5636ab2dd890, event=event@entry=0x7ffcb50b6a30, alienWidget=0x5636ab2dd890, nativeWidget=0x5636ab170be0, buttonDown=buttonDown@entry=0x7f58240958b0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2699
#21 0x00007f58239efa80 in QWidgetWindow::handleMouseEvent (this=this@entry=0x5636ab1bab60, event=event@entry=0x7ffcb50b6ec0) at kernel/qwidgetwindow.cpp:661
#22 0x00007f58239f234a in QWidgetWindow::event (this=0x5636ab1bab60, event=0x7ffcb50b6ec0) at kernel/qwidgetwindow.cpp:281
#23 0x00007f582399483c in QApplicationPrivate::notify_helper (this=this@entry=0x5636aad12d40, receiver=receiver@entry=0x5636ab1bab60, e=e@entry=0x7ffcb50b6ec0) at kernel/qapplication.cpp:3752
#24 0x00007f582399bdd0 in QApplication::notify (this=0x7ffcb50b7a60, receiver=0x5636ab1bab60, e=0x7ffcb50b6ec0) at kernel/qapplication.cpp:3499
#25 0x00007f5822b9e328 in QCoreApplication::notifyInternal2 (receiver=0x5636ab1bab60, event=0x7ffcb50b6ec0) at kernel/qcoreapplication.cpp:1061
#26 0x00007f5822b9e50e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x5636ab1bab60, event=event@entry=0x7ffcb50b6ec0) at kernel/qcoreapplication.cpp:1463
#27 0x00007f582316652b in QGuiApplicationPrivate::processMouseEvent (e=0x7f5808003200) at kernel/qguiapplication.cpp:2102
#28 0x00007f5823167695 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x7f5808003200) at kernel/qguiapplication.cpp:1837
#29 0x00007f582314014b in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1068
#30 0x00007f58114ec30a in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#31 0x00007f581a6c8387 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f581a6c85c0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f581a6c864c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f5822bfb13f in QEventDispatcherGlib::processEvents (this=0x5636aad635f0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#35 0x00007f5822b9c64a in QEventLoop::exec (this=this@entry=0x7ffcb50b7260, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#36 0x00007f5823b85067 in QDialog::exec (this=0x5636ab170be0) at dialogs/qdialog.cpp:557
#37 0x00005636aa3595d8 in KopeteApplication::slotLoadPlugins (this=<optimized out>) at ./kopete/kopeteapplication.cpp:232
#38 0x00007f5822bce992 in QObject::event (this=this@entry=0x7ffcb50b7a60, e=e@entry=0x5636ab166500) at kernel/qobject.cpp:1249
#39 0x00007f5822ba574c in QCoreApplication::event (this=this@entry=0x7ffcb50b7a60, e=e@entry=0x5636ab166500) at kernel/qcoreapplication.cpp:1932
#40 0x00007f5823162634 in QGuiApplication::event (this=this@entry=0x7ffcb50b7a60, e=e@entry=0x5636ab166500) at kernel/qguiapplication.cpp:1801
#41 0x00007f582399a35f in QApplication::event (this=0x7ffcb50b7a60, e=0x5636ab166500) at kernel/qapplication.cpp:2007
#42 0x00007f582399483c in QApplicationPrivate::notify_helper (this=this@entry=0x5636aad12d40, receiver=receiver@entry=0x7ffcb50b7a60, e=e@entry=0x5636ab166500) at kernel/qapplication.cpp:3752
#43 0x00007f582399bdd0 in QApplication::notify (this=0x7ffcb50b7a60, receiver=0x7ffcb50b7a60, e=0x5636ab166500) at kernel/qapplication.cpp:3499
#44 0x00007f5822b9e328 in QCoreApplication::notifyInternal2 (receiver=0x7ffcb50b7a60, event=0x5636ab166500) at kernel/qcoreapplication.cpp:1061
#45 0x00007f5822b9e4fe in QCoreApplication::sendEvent (receiver=<optimized out>, event=event@entry=0x5636ab166500) at kernel/qcoreapplication.cpp:1451
#46 0x00007f5822ba0e87 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x5636aad10b60) at kernel/qcoreapplication.cpp:1800
#47 0x00007f5822ba1428 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1654
#48 0x00007f5822bfbb23 in postEventSourceDispatch (s=0x5636aad681a0) at kernel/qeventdispatcher_glib.cpp:276
#49 0x00007f581a6c8387 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007f581a6c85c0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#51 0x00007f581a6c864c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#52 0x00007f5822bfb13f in QEventDispatcherGlib::processEvents (this=0x5636aad635f0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#53 0x00007f5822b9c64a in QEventLoop::exec (this=this@entry=0x7ffcb50b7980, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#54 0x00007f5822ba5800 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1364
#55 0x00005636aa3586b5 in main (argc=<optimized out>, argv=<optimized out>) at ./kopete/main.cpp:123

Reported using DrKonqi
Comment 1 Mike Krutov 2019-03-26 09:32:05 UTC
Crash happens only if i have my "password" field empty in the account settings.
Comment 2 John Scott 2019-06-14 01:50:01 UTC
This happens to me with XMPP too, without having to enter any details. Click to add account -> Jabber -> Connection and then manage the tokens. I've got this backtrace on Debian Buster with Kopete 1.13.
Comment 3 John Scott 2019-06-14 01:55:33 UTC
(In reply to John Scott from comment #2)
> I've got this backtrace on Debian Buster with Kopete 1.13.

Forgot my backtrace.

Application: Kopete (kopete), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  Kopete::PasswordedAccount::password (this=0x0) at ./libkopete/kopetepasswordedaccount.cpp:46
#7  0x00007fe7cb3fbd0c in DlgJabberXOAuth2::DlgJabberXOAuth2 (this=0x5609650b3500, account=<optimized out>, parent=<optimized out>) at ./protocols/jabber/ui/dlgjabberxoauth2.cpp:34
#8  0x00007fe7cb3e52ae in JabberEditAccountWidget::slotManageXOAuth2Clicked (this=0x5609652c92c0) at ./protocols/jabber/ui/jabbereditaccountwidget.cpp:441
#9  0x00007fe7d9c5ac90 in QMetaObject::activate (sender=sender@entry=0x56096525c360, m=m@entry=0x7fe7d9a0cf80 <QAbstractButton::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffd5ca4f760) at kernel/qobject.cpp:3567
#10 0x00007fe7d9760b82 in QAbstractButton::clicked (this=this@entry=0x56096525c360, _t1=<optimized out>) at .moc/release-shared/moc_qabstractbutton.cpp:219
#11 0x00007fe7d94bea35 in QAbstractButtonPrivate::emitClicked (this=0x5609651e1fa0) at widgets/qabstractbutton.cpp:548
#12 0x00007fe7d94bfde4 in QAbstractButtonPrivate::click (this=0x5609651e1fa0) at widgets/qabstractbutton.cpp:541
#13 0x00007fe7d94bfed4 in QAbstractButton::mouseReleaseEvent (this=0x56096525c360, e=0x7ffd5ca4fc80) at widgets/qabstractbutton.cpp:1123
#14 0x00007fe7d9179a28 in QWidget::event (this=0x56096525c360, event=0x7ffd5ca4fc80) at kernel/qwidget.cpp:8590
#15 0x00007fe7d9127a2c in QApplicationPrivate::notify_helper (this=this@entry=0x560965037f60, receiver=receiver@entry=0x56096525c360, e=e@entry=0x7ffd5ca4fc80) at kernel/qapplication.cpp:4570
#16 0x00007fe7d912e3fc in QApplication::notify (this=this@entry=0x7ffd5ca50470, receiver=receiver@entry=0x56096525c360, e=e@entry=0x7ffd5ca4fc80) at kernel/qapplication.cpp:4113
#17 0x00007fe7da2eebba in KApplication::notify (this=0x7ffd5ca50470, receiver=0x56096525c360, event=0x7ffd5ca4fc80) at ./kdeui/kernel/kapplication.cpp:311
#18 0x00007fe7d9c46afb in QCoreApplication::notifyInternal (this=0x7ffd5ca50470, receiver=receiver@entry=0x56096525c360, event=event@entry=0x7ffd5ca4fc80) at kernel/qcoreapplication.cpp:955
#19 0x00007fe7d912db3b in QCoreApplication::sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#20 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x56096525c360, event=event@entry=0x7ffd5ca4fc80, alienWidget=alienWidget@entry=0x56096525c360, nativeWidget=nativeWidget@entry=0x560965411d60, buttonDown=buttonDown@entry=0x7fe7d9a1e348 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3178
#21 0x00007fe7d91a0d84 in QETWidget::translateMouseEvent (this=0x560965411d60, event=<optimized out>) at kernel/qapplication_x11.cpp:4556
#22 0x00007fe7d919f9d0 in QApplication::x11ProcessEvent (this=0x7ffd5ca50470, event=event@entry=0x7ffd5ca4ffc0) at kernel/qapplication_x11.cpp:3674
#23 0x00007fe7d91c706c in x11EventSourceDispatch (s=0x560965039260, callback=0x0, user_data=0x0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:118
#24 0x00007fe7d720af2e in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fe7d720b1c8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fe7d720b25c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fe7d9c738e1 in QEventDispatcherGlib::processEvents (this=0x560964ffb8e0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#28 0x00007fe7d91c71f7 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/global/qglobal.h:2436
#29 0x00007fe7d9c4538f in QEventLoop::processEvents (this=this@entry=0x7ffd5ca503a0, flags=...) at ../../include/QtCore/../../src/corelib/global/qglobal.h:2436
#30 0x00007fe7d9c4565e in QEventLoop::exec (this=this@entry=0x7ffd5ca503a0, flags=...) at ../../include/QtCore/../../src/corelib/global/qglobal.h:2452
#31 0x00007fe7d9c4ab2a in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qglobal.h:2437
#32 0x0000560963875f47 in main (argc=3, argv=0x7ffd5ca505d8) at ./kopete/main.cpp:105
[Inferior 1 (process 3261) detached]
Comment 4 Justin Zobel 2022-09-22 12:29:33 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 5 Bug Janitor Service 2022-10-07 04:51:16 UTC
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!
Comment 6 Bug Janitor Service 2022-10-22 05:01:13 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!