<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>421614</bug_id>
          
          <creation_ts>2020-05-16 12:36:15 +0000</creation_ts>
          <short_desc>akonadiserver segfaults everytime it is stopped</short_desc>
          <delta_ts>2020-05-18 10:23:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>Akonadi</product>
          <component>server</component>
          <version>5.11.3</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>drkonqi</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Tamer Hassan">thameruddin</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1930288</commentid>
    <comment_count>0</comment_count>
    <who name="Tamer Hassan">thameruddin</who>
    <bug_when>2020-05-16 12:36:15 +0000</bug_when>
    <thetext>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&apos;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 &quot;/lib/x86_64-linux-gnu/libthread_db.so.1&quot;.
[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=&lt;optimized out&gt;) 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=&lt;optimized out&gt;) 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=&lt;optimized out&gt;) at qsql_mysql.cpp:1243
#11 0x00007f9b993eb10d in QMYSQLDriver::~QMYSQLDriver (this=0x55bd34c0c7c0, __in_chrg=&lt;optimized out&gt;) at qsql_mysql.cpp:1239
#12 0x00007f9b9e2bb5fb in QSqlDatabasePrivate::~QSqlDatabasePrivate (this=0x55bd34c0f220, __in_chrg=&lt;optimized out&gt;) at kernel/qsqldatabase.cpp:142
#13 0x00007f9b9e2bb88e in QSqlDatabase::~QSqlDatabase (this=0x55bd34c392d8, __in_chrg=&lt;optimized out&gt;) at kernel/qsqldatabase.cpp:724
#14 QSqlDatabase::~QSqlDatabase (this=0x55bd34c392d8, __in_chrg=&lt;optimized out&gt;) at kernel/qsqldatabase.cpp:720
#15 0x00007f9b9e2bd901 in QHashNode&lt;QString, QSqlDatabase&gt;::~QHashNode (this=0x55bd34c392c0, __in_chrg=&lt;optimized out&gt;) at ../../include/QtCore/../../src/corelib/tools/qhash.h:149
#16 QHash&lt;QString, QSqlDatabase&gt;::deleteNode2 (node=0x55bd34c392c0) at ../../include/QtCore/../../src/corelib/tools/qhash.h:547
#17 0x00007f9b9dd8c70c in QHashData::free_helper (this=0x55bd34c39280, node_delete=0x7f9b9e2bd8f0 &lt;QHash&lt;QString, QSqlDatabase&gt;::deleteNode2(QHashData::Node*)&gt;) at tools/qhash.cpp:572
#18 0x00007f9b9e2bbb4c in QHash&lt;QString, QSqlDatabase&gt;::freeData (this=&lt;synthetic pointer&gt;, x=&lt;optimized out&gt;) at ../../include/QtCore/../../src/corelib/tools/qhash.h:585
#19 QHash&lt;QString, QSqlDatabase&gt;::~QHash (this=&lt;synthetic pointer&gt;, __in_chrg=&lt;optimized out&gt;) at ../../include/QtCore/../../src/corelib/tools/qhash.h:254
#20 QHash&lt;QString, QSqlDatabase&gt;::operator= (other=..., this=0x7f9b9e2ed680 &lt;(anonymous namespace)::Q_QGS_dbDict::innerFunction()::holder&gt;) at ../../include/QtCore/../../src/corelib/tools/qhash.h:260
#21 QHash&lt;QString, QSqlDatabase&gt;::clear (this=0x7f9b9e2ed680 &lt;(anonymous namespace)::Q_QGS_dbDict::innerFunction()::holder&gt;) 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=&lt;optimized out&gt;) at kernel/qcoreapplication.cpp:894
#26 0x00007f9b9df00cdd in QCoreApplication::~QCoreApplication (this=0x55bd34c02e80, __in_chrg=&lt;optimized out&gt;) at kernel/qcoreapplication.cpp:892
#27 0x000055bd337badf4 in std::default_delete&lt;QCoreApplication&gt;::operator() (this=0x7ffe7c354560, __ptr=&lt;optimized out&gt;) at /usr/include/c++/9/bits/unique_ptr.h:75
#28 std::unique_ptr&lt;QCoreApplication, std::default_delete&lt;QCoreApplication&gt; &gt;::~unique_ptr (this=0x7ffe7c354560, __in_chrg=&lt;optimized out&gt;) at /usr/include/c++/9/bits/unique_ptr.h:284
#29 AkApplicationBase::~AkApplicationBase (this=0x7ffe7c354550, __in_chrg=&lt;optimized out&gt;) at ./src/shared/akapplication.cpp:49
#30 0x000055bd336220b0 in AkApplicationImpl&lt;QCoreApplication&gt;::~AkApplicationImpl (this=0x7ffe7c354550, __in_chrg=&lt;optimized out&gt;) at ./src/shared/akapplication.h:79
#31 main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at ./src/server/main.cpp:44
[Inferior 1 (process 12262) detached]

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1930774</commentid>
    <comment_count>1</comment_count>
    <who name="Tamer Hassan">thameruddin</who>
    <bug_when>2020-05-18 10:23:17 +0000</bug_when>
    <thetext>obviously a problem with current libmysqlclient21 (8.0.20) in (k)ubuntu
not problem with Akonadi

See:
https://bugs.launchpad.net/bugs/1877504</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>