Bug 421614 - akonadiserver segfaults everytime it is stopped
Summary: akonadiserver segfaults everytime it is stopped
Status: RESOLVED NOT A BUG
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: 5.11.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-05-16 12:36 UTC by Tamer Hassan
Modified: 2020-05-18 10:23 UTC (History)
0 users

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 Tamer Hassan 2020-05-16 12:36:15 UTC
Application: akonadiserver (5.11.3)

Qt Version: 5.12.4
Frameworks Version: 5.62.0
Operating System: Linux 5.3.0-51-generic x86_64
Distribution: Ubuntu 19.10

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

On shutdown, logout, or manually via `akonadictl stop`

This started happening only after I started using Kmail, as I've added one IMAP account.

The crash can be reproduced every time.

-- Backtrace:
Application: Akonadi Server (akonadiserver), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9b9a16bd40 (LWP 12262))]

Thread 2 (Thread 0x7f9b99bf7700 (LWP 12263)):
#0  __GI___libc_read (nbytes=16, buf=0x7f9b99bf6b60, fd=5) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=5, buf=0x7f9b99bf6b60, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f9b9c93d70f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9b9c8f55fe in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9b9c8f5a52 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9b9c8f5be3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f9b9df56653 in QEventDispatcherGlib::processEvents (this=0x7f9b94000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#7  0x00007f9b9defd5cb in QEventLoop::exec (this=this@entry=0x7f9b99bf6d70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#8  0x00007f9b9dd36a45 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#9  0x00007f9b9e21befa in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#10 0x00007f9b9dd37c92 in QThreadPrivate::start (arg=0x7f9b9e29ed80) at thread/qthread_unix.cpp:361
#11 0x00007f9b9d0e0669 in start_thread (arg=<optimized out>) at pthread_create.c:479
#12 0x00007f9b9d9a2323 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f9b9a16bd40 (LWP 12262)):
[KCrash Handler]
#6  0x00007f9b98d5a23f in charset_uninit () at ./mysys/charset.cc:925
#7  0x00007f9b98d5f753 in my_end (infoflag=infoflag@entry=0) at ./mysys/my_init.cc:200
#8  0x00007f9b98cfd173 in mysql_server_end () at ./libmysql/libmysql.cc:202
#9  0x00007f9b993eb0ee in qLibraryEnd () at qsql_mysql.cpp:1243
#10 QMYSQLDriver::~QMYSQLDriver (this=0x55bd34c0c7c0, __in_chrg=<optimized out>) at qsql_mysql.cpp:1243
#11 0x00007f9b993eb10d in QMYSQLDriver::~QMYSQLDriver (this=0x55bd34c0c7c0, __in_chrg=<optimized out>) at qsql_mysql.cpp:1239
#12 0x00007f9b9e2bb5fb in QSqlDatabasePrivate::~QSqlDatabasePrivate (this=0x55bd34c0f220, __in_chrg=<optimized out>) at kernel/qsqldatabase.cpp:142
#13 0x00007f9b9e2bb88e in QSqlDatabase::~QSqlDatabase (this=0x55bd34c392d8, __in_chrg=<optimized out>) at kernel/qsqldatabase.cpp:724
#14 QSqlDatabase::~QSqlDatabase (this=0x55bd34c392d8, __in_chrg=<optimized out>) at kernel/qsqldatabase.cpp:720
#15 0x00007f9b9e2bd901 in QHashNode<QString, QSqlDatabase>::~QHashNode (this=0x55bd34c392c0, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qhash.h:149
#16 QHash<QString, QSqlDatabase>::deleteNode2 (node=0x55bd34c392c0) at ../../include/QtCore/../../src/corelib/tools/qhash.h:547
#17 0x00007f9b9dd8c70c in QHashData::free_helper (this=0x55bd34c39280, node_delete=0x7f9b9e2bd8f0 <QHash<QString, QSqlDatabase>::deleteNode2(QHashData::Node*)>) at tools/qhash.cpp:572
#18 0x00007f9b9e2bbb4c in QHash<QString, QSqlDatabase>::freeData (this=<synthetic pointer>, x=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qhash.h:585
#19 QHash<QString, QSqlDatabase>::~QHash (this=<synthetic pointer>, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qhash.h:254
#20 QHash<QString, QSqlDatabase>::operator= (other=..., this=0x7f9b9e2ed680 <(anonymous namespace)::Q_QGS_dbDict::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/tools/qhash.h:260
#21 QHash<QString, QSqlDatabase>::clear (this=0x7f9b9e2ed680 <(anonymous namespace)::Q_QGS_dbDict::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/tools/qhash.h:593
#22 QSqlDatabasePrivate::cleanConnections () at kernel/qsqldatabase.cpp:156
#23 0x00007f9b9e2bbcb7 in cleanDriverDict () at kernel/qsqldatabase.cpp:164
#24 0x00007f9b9df00942 in qt_call_post_routines () at kernel/qcoreapplication.cpp:351
#25 0x00007f9b9df00a92 in QCoreApplication::~QCoreApplication (this=0x55bd34c02e80, __in_chrg=<optimized out>) at kernel/qcoreapplication.cpp:894
#26 0x00007f9b9df00cdd in QCoreApplication::~QCoreApplication (this=0x55bd34c02e80, __in_chrg=<optimized out>) at kernel/qcoreapplication.cpp:892
#27 0x000055bd337badf4 in std::default_delete<QCoreApplication>::operator() (this=0x7ffe7c354560, __ptr=<optimized out>) at /usr/include/c++/9/bits/unique_ptr.h:75
#28 std::unique_ptr<QCoreApplication, std::default_delete<QCoreApplication> >::~unique_ptr (this=0x7ffe7c354560, __in_chrg=<optimized out>) at /usr/include/c++/9/bits/unique_ptr.h:284
#29 AkApplicationBase::~AkApplicationBase (this=0x7ffe7c354550, __in_chrg=<optimized out>) at ./src/shared/akapplication.cpp:49
#30 0x000055bd336220b0 in AkApplicationImpl<QCoreApplication>::~AkApplicationImpl (this=0x7ffe7c354550, __in_chrg=<optimized out>) at ./src/shared/akapplication.h:79
#31 main (argc=<optimized out>, argv=<optimized out>) at ./src/server/main.cpp:44
[Inferior 1 (process 12262) detached]

Reported using DrKonqi
Comment 1 Tamer Hassan 2020-05-18 10:23:17 UTC
obviously a problem with current libmysqlclient21 (8.0.20) in (k)ubuntu
not problem with Akonadi

See:
https://bugs.launchpad.net/bugs/1877504