Bug 453753 - Akonadi crashes when opening KMail
Summary: Akonadi crashes when opening KMail
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-05-13 17:25 UTC by Dennis Schridde
Modified: 2022-06-21 16:42 UTC (History)
4 users (show)

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 Dennis Schridde 2022-05-13 17:25:11 UTC
Application: akonadiserver (5.20.0 (22.04.0))

Qt Version: 5.15.3
Frameworks Version: 5.93.0
Operating System: Linux 5.17.7-gentoo-dist x86_64
Windowing System: Wayland
Distribution: "Gentoo Base System release 2.8"
DrKonqi: 5.24.5 [KCrashBackend]

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

When I open KMail, it tries to start Akonadi, which immediately crashes. This is reproducible every time I open KMail.

The crash can be reproduced every time.

-- Backtrace:
Application: Akonadi Server (akonadiserver), signal: Segmentation fault

[KCrash Handler]
#4  0x0000565000140274 in Akonadi::Server::SchemaVersion::generation (this=this@entry=0x7fb6a5bdc850) at /usr/include/qt5/QtCore/qshareddata.h:82
#5  0x00005650001f97ba in Akonadi::Server::NotificationSubscriber::NotificationSubscriber (this=this@entry=0x7fb6983186f0, manager=manager@entry=0x565000581070, socketDescriptor=socketDescriptor@entry=163) at /usr/include/qt5/QtCore/qsharedpointer_impl.h:307
#6  0x00005650001f61bf in Akonadi::Server::NotificationManager::registerConnection (this=0x565000581070, socketDescriptor=163) at /tmp/portage/kde-apps/akonadi-22.04.0/work/akonadi-22.04.0/src/server/notificationmanager.cpp:87
#7  0x00007fb6aae63d16 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007fb6aae38415 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#9  0x00007fb6aae3bab5 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#10 0x00007fb6aae8ab73 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5Core.so.5
#11 0x00007fb6a935d60b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#12 0x00007fb6a935d8c8 in ?? () from /usr/lib64/libglib-2.0.so.0
#13 0x00007fb6a935d97f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#14 0x00007fb6aae8a604 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#15 0x00007fb6aae36e3b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#16 0x00007fb6aac817aa in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#17 0x00007fb6aac82949 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#18 0x00007fb6aa808f5a in ?? () from /usr/lib64/libc.so.6
#19 0x00007fb6aa88e6fc in ?? () from /usr/lib64/libc.so.6

Thread 2 (Thread 0x7fb6a6aa6640 (LWP 19369) "QDBusConnection"):
#1  0x00007fb6aa8541a9 in clock_gettime () from /usr/lib64/libc.so.6
#2  0x00007fb6aae89ec1 in qt_gettime() () from /usr/lib64/libQt5Core.so.5
#3  0x00007fb6aae88809 in QTimerInfoList::updateCurrentTime() () from /usr/lib64/libQt5Core.so.5
#4  0x00007fb6aae88c85 in QTimerInfoList::timerWait(timespec&) () from /usr/lib64/libQt5Core.so.5
#5  0x00007fb6aae8a8de in timerSourcePrepare(_GSource*, int*) () from /usr/lib64/libQt5Core.so.5
#6  0x00007fb6a935cd4b in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#7  0x00007fb6a935d783 in ?? () from /usr/lib64/libglib-2.0.so.0
#8  0x00007fb6a935d97f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#9  0x00007fb6aae8a68e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#10 0x00007fb6aae36e3b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#11 0x00007fb6aac817aa in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#12 0x00007fb6ab173537 in QDBusConnectionManager::run() () from /usr/lib64/libQt5DBus.so.5
#13 0x00007fb6aac82949 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#14 0x00007fb6aa808f5a in ?? () from /usr/lib64/libc.so.6
#15 0x00007fb6aa88e6fc in ?? () from /usr/lib64/libc.so.6

Thread 1 (Thread 0x7fb6a6ed8cc0 (LWP 19362) "akonadiserver"):
#1  0x00007fb6aa808624 in pthread_cond_timedwait () from /usr/lib64/libc.so.6
#2  0x00007fb6aac882a5 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib64/libQt5Core.so.5
#3  0x00007fb6aac82681 in QThread::wait(QDeadlineTimer) () from /usr/lib64/libQt5Core.so.5
#4  0x00007fb6aac8149c in QThread::wait(unsigned long) () from /usr/lib64/libQt5Core.so.5
#5  0x0000565000223a40 in Akonadi::Server::AkThread::quitThread (this=this@entry=0x565000581070) at /tmp/portage/kde-apps/akonadi-22.04.0/work/akonadi-22.04.0/src/server/akthread.cpp:55
#6  0x00005650001f527e in Akonadi::Server::NotificationManager::~NotificationManager (this=0x565000581070, __in_chrg=<optimized out>) at /tmp/portage/kde-apps/akonadi-22.04.0/work/akonadi-22.04.0/src/server/notificationmanager.cpp:40
#7  0x00005650001f53d9 in Akonadi::Server::NotificationManager::~NotificationManager (this=0x565000581070, __in_chrg=<optimized out>) at /tmp/portage/kde-apps/akonadi-22.04.0/work/akonadi-22.04.0/src/server/notificationmanager.cpp:41
#8  0x00005650000c9b8b in std::default_delete<Akonadi::Server::NotificationManager>::operator() (__ptr=<optimized out>, this=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/unique_ptr.h:79
#9  std::unique_ptr<Akonadi::Server::NotificationManager, std::default_delete<Akonadi::Server::NotificationManager> >::~unique_ptr (this=0x7ffe04cf6b58, __in_chrg=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/unique_ptr.h:361
#10 Akonadi::Server::AkonadiServer::~AkonadiServer (this=0x7ffe04cf6b10, __in_chrg=<optimized out>) at /tmp/portage/kde-apps/akonadi-22.04.0/work/akonadi-22.04.0/src/server/akonadi.cpp:165
#11 0x00005650000c6a2d in main (argc=<optimized out>, argv=<optimized out>) at /tmp/portage/kde-apps/akonadi-22.04.0/work/akonadi-22.04.0/src/server/main.cpp:72
[Inferior 1 (process 19362) detached]

The reporter indicates this bug may be a duplicate of or related to bug 383185.

Possible duplicates by query: bug 383185, bug 377324.

Reported using DrKonqi
Comment 1 Urs Joss 2022-06-15 10:08:30 UTC
Same here on two machines (Arch and Manjaro) with latest packages:

Jun 15 11:56:47 optravisnb027 akonadiserver[31356]: org.kde.pim.akonadiserver: Starting up the Akonadi Server...
Jun 15 11:56:52 optravisnb027 akonadiserver[31356]: org.kde.pim.akonadiserver: database server stopped unexpectedly
Jun 15 11:56:52 optravisnb027 akonadiserver[31356]: org.kde.pim.akonadiserver: Database process exited unexpectedly during initial connection!
Jun 15 11:56:52 optravisnb027 akonadiserver[31356]: org.kde.pim.akonadiserver: executable: "/usr/bin/mysqld"
Jun 15 11:56:52 optravisnb027 akonadiserver[31356]: org.kde.pim.akonadiserver: arguments: ("--defaults-file=/home/urs/.local/share/akonadi/mysql.conf", "--datadir=/home/urs/.local/share/akonadi/db_data/", >
Jun 15 11:56:52 optravisnb027 akonadiserver[31356]: org.kde.pim.akonadiserver: stdout: ""
Jun 15 11:56:52 optravisnb027 akonadiserver[31356]: org.kde.pim.akonadiserver: stderr: "2022-06-15 11:56:47 0 [Note] /usr/bin/mysqld (server 10.8.3-MariaDB) starting as process 31365 ...\n"
Jun 15 11:56:52 optravisnb027 akonadiserver[31356]: org.kde.pim.akonadiserver: exit code: 1
Jun 15 11:56:52 optravisnb027 akonadiserver[31356]: org.kde.pim.akonadiserver: process error: "Unknown error"
</pre>
Comment 2 Pedro Rosado 2022-06-16 04:29:29 UTC
I'm having the same issue. I get a crash notification that Akonadi stopped unexpectedly. When I open Kmail, a dialog appears with the message that Akonadi is starting. However, it doesn't. Then another window opens with a "Fatal error message, the Kmail closes.
Comment 3 Pedro Rosado 2022-06-19 05:57:34 UTC
(In reply to Pedro Rosado from comment #2)
> I'm having the same issue. I get a crash notification that Akonadi stopped
> unexpectedly. When I open Kmail, a dialog appears with the message that
> Akonadi is starting. However, it doesn't. Then another window opens with a
> "Fatal error message, the Kmail closes.

I'm getting this message:
The Email program encountered a fatal error and will terminate now.
The error was:
Unable to retrieve collection for listing
Comment 4 Vincent ROGER 2022-06-20 07:29:01 UTC
I also have this problem when launching kalendar on manjaro.
My akonadi version:
akonadiserver 5.20.2 (22.04.2)

The output I get when launching kalendar:
```
QML debugging is enabled. Only use this in a safe environment.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
org.kde.pim.akonadiserver: Starting up the Akonadi Server...
org.kde.pim.akonadiserver: database server stopped unexpectedly
org.kde.pim.akonadiserver: Database process exited unexpectedly during initial connection!
org.kde.pim.akonadiserver: executable: "/usr/bin/mysqld"
org.kde.pim.akonadiserver: arguments: ("--defaults-file=/home/user/.local/share/akonadi/mysql.conf", "--datadir=/home/user/.local/share/akonadi/db_data/", "--socket=/run/user/1000/akonadi/mysql.socket", "--pid-file=/run/user/1000/akonadi/mysql.pid")
org.kde.pim.akonadiserver: stdout: ""
org.kde.pim.akonadiserver: stderr: "2022-06-20  9:21:35 0 [Note] /usr/bin/mysqld (server 10.8.3-MariaDB) starting as process 31918 ...\n"
org.kde.pim.akonadiserver: exit code: 1
org.kde.pim.akonadiserver: process error: "Unknown error"
org.kde.pim.akonadiserver: Shutting down AkonadiServer...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadiserver' exited normally...
org.kde.pim.akonadicore: Could not start/stop Akonadi!
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
org.kde.pim.akonadiserver: Starting up the Akonadi Server...
zsh: segmentation fault (core dumped)  kalendar
org.kde.pim.akonadiserver: database server stopped unexpectedly                                         
org.kde.pim.akonadiserver: Database process exited unexpectedly during initial connection!
org.kde.pim.akonadiserver: executable: "/usr/bin/mysqld"
org.kde.pim.akonadiserver: arguments: ("--defaults-file=/home/user/.local/share/akonadi/mysql.conf", "--datadir=/home/user/.local/share/akonadi/db_data/", "--socket=/run/user/1000/akonadi/mysql.socket", "--pid-file=/run/user/1000/akonadi/mysql.pid")
org.kde.pim.akonadiserver: stdout: ""
org.kde.pim.akonadiserver: stderr: "2022-06-20  9:21:40 0 [Note] /usr/bin/mysqld (server 10.8.3-MariaDB) starting as process 31946 ...\n"
org.kde.pim.akonadiserver: exit code: 1
org.kde.pim.akonadiserver: process error: "Unknown error"
org.kde.pim.akonadiserver: Shutting down AkonadiServer...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadiserver' exited normally...
```