Bug 429973

Summary: configure google resource crash
Product: [Frameworks and Libraries] Akonadi Reporter: Cyrille Dunant <cyrille.dunant>
Component: Google ResourceAssignee: Daniel Vrátil <dvratil>
Status: RESOLVED FIXED    
Severity: crash CC: kdepim-bugs, montel
Priority: NOR    
Version: 5.16.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Cyrille Dunant 2020-12-03 14:48:01 UTC
Application: akonadi_google_resource (5.15.91 (20.11.90))

Qt Version: 5.15.2
Frameworks Version: 5.76.0
Operating System: Linux 5.9.11-1-default x86_64
Windowing system: X11
Distribution: "openSUSE Tumbleweed"

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

Starting from no calendars, adding a google groupware crashes as soon as the configure button is pressed

The crash can be reproduced every time.

-- Backtrace:
Application: Google Groupware (not configured) (akonadi_google_resource), signal: Segmentation fault

[New LWP 14281]
[New LWP 14282]
[New LWP 14284]
[New LWP 14287]
[New LWP 14288]
[New LWP 14289]
[New LWP 14290]
[New LWP 14291]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f00f8f4e83f in poll () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f00f5710940 (LWP 14280))]

Thread 9 (Thread 0x7f00e104c640 (LWP 14291)):
#0  0x00007f00f84236b2 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f00e2d7156b in  () at /usr/lib64/dri/i965_dri.so
#2  0x00007f00e2d70db7 in  () at /usr/lib64/dri/i965_dri.so
#3  0x00007f00f841d3e9 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f00f8f59943 in clone () at /lib64/libc.so.6

Thread 8 (Thread 0x7f00e184d640 (LWP 14290)):
#0  0x00007f00f84236b2 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f00e2d7156b in  () at /usr/lib64/dri/i965_dri.so
#2  0x00007f00e2d70db7 in  () at /usr/lib64/dri/i965_dri.so
#3  0x00007f00f841d3e9 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f00f8f59943 in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7f00e204e640 (LWP 14289)):
#0  0x00007f00f84236b2 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f00e2d7156b in  () at /usr/lib64/dri/i965_dri.so
#2  0x00007f00e2d70db7 in  () at /usr/lib64/dri/i965_dri.so
#3  0x00007f00f841d3e9 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f00f8f59943 in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7f00e284f640 (LWP 14288)):
#0  0x00007f00f84236b2 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f00e2d7156b in  () at /usr/lib64/dri/i965_dri.so
#2  0x00007f00e2d70db7 in  () at /usr/lib64/dri/i965_dri.so
#3  0x00007f00f841d3e9 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f00f8f59943 in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f00f1215640 (LWP 14287)):
#0  0x00007f00f768de7b in  () at /usr/lib64/libglib-2.0.so.0
#1  0x00007f00f768f403 in g_main_context_prepare () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f00f768ff3b in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f00f769012f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f00f954f7fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f00dc000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f00f94f6c4b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f00f1214bc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#6  0x00007f00f9315d0e in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007f00f9316e51 in QThreadPrivate::start(void*) (arg=0x55b5cccc3150) at thread/qthread_unix.cpp:329
#8  0x00007f00f841d3e9 in start_thread () at /lib64/libpthread.so.0
#9  0x00007f00f8f59943 in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f00f1a16640 (LWP 14284)):
#0  0x00007f00f8f4e83f in poll () at /lib64/libc.so.6
#1  0x00007f00f769000e in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f00f769012f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f00f954f7fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f00e8000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f00f94f6c4b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f00f1a15bc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f00f9315d0e in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f00f9316e51 in QThreadPrivate::start(void*) (arg=0x55b5cccb78f0) at thread/qthread_unix.cpp:329
#7  0x00007f00f841d3e9 in start_thread () at /lib64/libpthread.so.0
#8  0x00007f00f8f59943 in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f00f22d7640 (LWP 14282)):
#0  0x00007f00f8f4e83f in poll () at /lib64/libc.so.6
#1  0x00007f00f769000e in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f00f769012f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f00f954f7fb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f00e4000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f00f94f6c4b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f00f22d6b70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f00f9315d0e in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f00f98057c7 in QDBusConnectionManager::run() (this=0x7f00f9873420 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#7  0x00007f00f9316e51 in QThreadPrivate::start(void*) (arg=0x7f00f9873420 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:329
#8  0x00007f00f841d3e9 in start_thread () at /lib64/libpthread.so.0
#9  0x00007f00f8f59943 in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f00f3628640 (LWP 14281)):
#0  0x00007f00f8f4e83f in poll () at /lib64/libc.so.6
#1  0x00007f00f80b9862 in  () at /usr/lib64/libxcb.so.1
#2  0x00007f00f80bb26c in xcb_wait_for_event () at /usr/lib64/libxcb.so.1
#3  0x00007f00f3827fb0 in QXcbEventQueue::run() (this=0x55b5ccb6d9c0) at qxcbeventqueue.cpp:228
#4  0x00007f00f9316e51 in QThreadPrivate::start(void*) (arg=0x55b5ccb6d9c0) at thread/qthread_unix.cpp:329
#5  0x00007f00f841d3e9 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f00f8f59943 in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f00f5710940 (LWP 14280)):
[KCrash Handler]
#4  QString::QString(QString const&) (other=Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0x8: 
#5  KGAPI2::Account::accountName() const (this=this@entry=0x0) at /usr/src/debug/libkgapi-20.11.90-163.1.x86_64/src/core/account.cpp:86
#6  0x000055b5cabf3465 in GoogleSettingsDialog::slotConfigure() (this=0x7f00e4013ce0) at /usr/include/qt5/QtCore/qsharedpointer_impl.h:307
#7  0x00007f00f952e866 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffcef414410, r=0x7f00e4013ce0, this=0x55b5ccf88100) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#8  doActivate<false>(QObject*, int, void**) (sender=0x55b5ccd1c8b0, signal_index=9, argv=argv@entry=0x7ffcef414410) at kernel/qobject.cpp:3886
#9  0x00007f00f9527bc0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x55b5ccd1c8b0, m=m@entry=0x7f00fa68c4e0, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffcef414410) at kernel/qobject.cpp:3946
#10 0x00007f00fa27d3e2 in QAbstractButton::clicked(bool) (this=this@entry=0x55b5ccd1c8b0, _t1=<optimized out>) at .moc/moc_qabstractbutton.cpp:308
#11 0x00007f00fa27dd4a in QAbstractButtonPrivate::emitClicked() (this=this@entry=0x55b5ccb30a20) at widgets/qabstractbutton.cpp:415
#12 0x00007f00fa27f69f in QAbstractButtonPrivate::click() (this=this@entry=0x55b5ccb30a20) at widgets/qabstractbutton.cpp:408
#13 0x00007f00fa27f871 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) (this=0x55b5ccd1c8b0, e=0x7ffcef4149e0) at widgets/qabstractbutton.cpp:1044
#14 0x00007f00fa1d035e in QWidget::event(QEvent*) (this=0x55b5ccd1c8b0, event=0x7ffcef4149e0) at kernel/qwidget.cpp:9019
#15 0x00007f00fa19050f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55b5ccb6a7f0, receiver=receiver@entry=0x55b5ccd1c8b0, e=e@entry=0x7ffcef4149e0) at kernel/qapplication.cpp:3632
#16 0x00007f00fa1973fb in QApplication::notify(QObject*, QEvent*) (this=0x7ffcef4146e0, receiver=0x55b5ccd1c8b0, e=0x7ffcef4149e0) at kernel/qapplication.cpp:3076
#17 0x00007f00f94f828a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55b5ccd1c8b0, event=0x7ffcef4149e0) at ../../include/QtCore/5.15.2/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#18 0x00007f00fa196426 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) (receiver=receiver@entry=0x55b5ccd1c8b0, event=event@entry=0x7ffcef4149e0, alienWidget=alienWidget@entry=0x55b5ccd1c8b0, nativeWidget=0x7f00e4013ce0, buttonDown=buttonDown@entry=0x7f00fa6be670 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2614
#19 0x00007f00fa1e83c1 in QWidgetWindow::handleMouseEvent(QMouseEvent*) (this=0x55b5cccc81d0, event=0x7ffcef414ca0) at /usr/include/c++/10/bits/atomic_base.h:420
#20 0x00007f00fa1eb8ce in QWidgetWindow::event(QEvent*) (this=0x55b5cccc81d0, event=0x7ffcef414ca0) at kernel/qwidgetwindow.cpp:300
#21 0x00007f00fa19050f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x55b5cccc81d0, e=0x7ffcef414ca0) at kernel/qapplication.cpp:3632
#22 0x00007f00f94f828a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55b5cccc81d0, event=0x7ffcef414ca0) at ../../include/QtCore/5.15.2/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#23 0x00007f00f9a4ab73 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) (e=0x55b5cceff860) at kernel/qguiapplication.cpp:2282
#24 0x00007f00f9a20c5c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#25 0x00007f00f3828faa in xcbSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#26 0x00007f00f768fcf7 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#27 0x00007f00f7690078 in  () at /usr/lib64/libglib-2.0.so.0
#28 0x00007f00f769012f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#29 0x00007f00f954f7df in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55b5ccc8d420, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#30 0x00007f00f94f6c4b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffcef414fe0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#31 0x00007f00fa3893d7 in QDialog::exec() (this=0x7f00e4013ce0) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#32 0x000055b5cabeb67c in GoogleResource::configure(unsigned long long) (this=0x7ffcef4159b0, windowId=<optimized out>) at /usr/src/debug/kdepim-runtime-20.11.90-240.1.x86_64/resources/google-groupware/googleresource.cpp:143
#33 0x00007f00faebf2d3 in Akonadi__ControlAdaptor::qt_metacall(QMetaObject::Call, int, void**) (this=0x7f00e8005000, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x7ffcef4152b0) at /usr/src/debug/akonadi-server-20.11.90-254.1.x86_64/build/src/agentbase/controladaptor.moc:176
#34 0x00007f00f980f409 in QDBusConnectionPrivate::deliverCall(QObject*, int, QDBusMessage const&, QVector<int> const&, int) (this=<optimized out>, object=<optimized out>, msg=..., metaTypes=..., slotIdx=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qvarlengtharray.h:201
#35 0x00007f00f9812914 in QDBusConnectionPrivate::activateCall(QObject*, int, QDBusMessage const&) (this=this@entry=0x7f00e40088d0, object=<optimized out>, flags=flags@entry=273, msg=...) at qdbusintegrator.cpp:904
#36 0x00007f00f98131c3 in QDBusConnectionPrivate::activateCall(QObject*, int, QDBusMessage const&) (msg=..., flags=273, object=<optimized out>, this=0x7f00e40088d0) at qdbusintegrator.cpp:853
#37 QDBusConnectionPrivate::activateObject(QDBusConnectionPrivate::ObjectTreeNode&, QDBusMessage const&, int) (this=0x7f00e40088d0, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1497
#38 0x00007f00f9815618 in QDBusActivateObjectEvent::placeMetaCall(QObject*) (this=0x7f00e8006440) at qdbusintegrator.cpp:1617
#39 0x00007f00f95242b1 in QObject::event(QEvent*) (this=0x7ffcef4159b0, e=0x7f00e8006440) at kernel/qobject.cpp:1314
#40 0x00007f00fa19050f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x7ffcef4159b0, e=0x7f00e8006440) at kernel/qapplication.cpp:3632
#41 0x00007f00f94f828a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x7ffcef4159b0, event=0x7f00e8006440) at ../../include/QtCore/5.15.2/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#42 0x00007f00f94facc1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x55b5ccb2f770) at kernel/qcoreapplication.cpp:1817
#43 0x00007f00f9550153 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x55b5ccc8cd90) at kernel/qeventdispatcher_glib.cpp:277
#44 0x00007f00f768fcf7 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#45 0x00007f00f7690078 in  () at /usr/lib64/libglib-2.0.so.0
#46 0x00007f00f769012f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#47 0x00007f00f954f7df in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55b5ccc8d420, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#48 0x00007f00f94f6c4b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffcef415880, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#49 0x00007f00f94feec0 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#50 0x000055b5cabe6bec in Akonadi::ResourceBase::init<GoogleResource>(int, char**) (argv=<optimized out>, argc=<optimized out>) at /usr/include/qt5/QtCore/qstring.h:967
#51 main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdepim-runtime-20.11.90-240.1.x86_64/resources/google-groupware/googleresource.cpp:544
[Inferior 1 (process 14280) detached]

Possible duplicates by query: bug 429504, bug 429420, bug 429344, bug 428691, bug 427575.
Comment 1 Laurent Montel 2020-12-03 16:38:15 UTC
Akready fixed in 5.16.0 (official)