Bug 397589 - Crash while first starting Kmail
Summary: Crash while first starting Kmail
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.8.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-18 15:43 UTC by Mateusz Szpakowski
Modified: 2023-01-19 09:02 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Szpakowski 2018-08-18 15:43:25 UTC
Application: KMail2
KDE Plaform version: 5.13.4-1 (plasma version)
Akonadi version: 5.8.3
KMail version: 5.8.3
Operating system: Arch Linux updated to 2018.08.12, kernel 4.17.11
mariadb version: 10.1.35-1

---Information about crash---
Application: akonadi_control (akonadi_control), signal: Aborted
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f7d9646fc80 (LWP 6997))]

Thread 2 (Thread 0x7f7d92f54700 (LWP 7001)):
#0  0x00007f7d9c96e991 in poll () from /usr/lib/libc.so.6
#1  0x00007f7d99e28180 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f7d99e29e4b in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007f7d95d03e1a in ?? () from /usr/lib/libQt5XcbQpa.so.5
#4  0x00007f7d9ccaf005 in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f7d9c864a8d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f7d9c979823 in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f7d9646fc80 (LWP 6997)):
[KCrash Handler]
#6  0x00007f7d9c8b5b5f in raise () from /usr/lib/libc.so.6
#7  0x00007f7d9c8a0452 in abort () from /usr/lib/libc.so.6
#8  0x00007f7d9cc6b7fc in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/libQt5Core.so.5
#9  0x00005640ac5ac0cf in ?? ()
#10 0x00005640ac5cf7f5 in ?? ()
#11 0x00005640ac5ac16d in ?? ()
#12 0x00007f7d9c8a2003 in __libc_start_main () from /usr/lib/libc.so.6
#13 0x00005640ac5ac89a in _start ()
--- end info---
Comment 1 Christophe Marin 2018-08-18 20:24:14 UTC
Please run KMail in a terminal and paste the output
Comment 2 Mateusz Szpakowski 2018-08-19 13:39:14 UTC
First message in console while starting:

-----
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
-----

After second (or two) kmail prints these messages (likely after/while akonadi startup):
-----------
akonadi.collectionattributetable                   OK
akonadi.collectionmimetyperelation                 OK
akonadi.collectionpimitemrelation                  OK
akonadi.collectiontable                            OK
akonadi.flagtable                                  OK
akonadi.mimetypetable                              OK
akonadi.parttable                                  OK
akonadi.parttypetable                              OK
akonadi.pimitemflagrelation                        OK
akonadi.pimitemtable                               OK
akonadi.pimitemtagrelation                         OK
akonadi.relationtable                              OK
akonadi.relationtypetable                          OK
akonadi.resourcetable                              OK
akonadi.schemaversiontable                         OK
akonadi.tagattributetable                          OK
akonadi.tagremoteidresourcerelationtable           OK
akonadi.tagtable                                   OK
akonadi.tagtypetable                               OK
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
"No file selected."
org.kde.pim.akonadicontrol: Reference to unknown agent type "akonadi_notes_agent" in agentsrc
QDBusConnection: name 'org.freedesktop.Akonadi.Control' had owner '' but we thought it was ':1.46'
QDBusConnection: name 'org.freedesktop.Akonadi.Control' had owner '' but we thought it was ':1.46'
org.kde.pim.maildispatcher: Item 28483 has invalid transport.
org.kde.pim.maildispatcher: Item 28339 has invalid transport.
org.kde.pim.maildispatcher: Item 28338 has invalid transport.
org.kde.pim.maildispatcher: Item 28333 has invalid transport.
org.kde.pim.maildispatcher: Item 28332 has invalid transport.
org.kde.pim.maildispatcher: Item 28331 has invalid transport.
org.kde.pim.maildispatcher: Item 28326 has invalid transport.
org.kde.pim.maildispatcher: Item 28152 has invalid transport.
org.kde.pim.maildispatcher: Item 28151 has invalid transport.
org.kde.pim.maildispatcher: Item 4827 has invalid transport.
org.kde.pim.maildispatcher: Item 335 has invalid transport.
org.kde.pim.maildispatcher: Item 334 has invalid transport.
QDBusConnection: name 'org.freedesktop.Akonadi.Control' had owner '' but we thought it was ':1.46'
org.kde.pim.akonadiserver: Received ModifySubscription command before RegisterSubscriber
org.kde.pim.akonadicore: "QLocalSocket: Remote closed" "/tmp/akonadi-mat.hhTBw6/akonadiserver-ntf.socket"
Error loading text-to-speech plug-in "speechd"
QDBusConnection: name 'org.freedesktop.Akonadi.Control' had owner '' but we thought it was ':1.46'
-----
Comment 3 Daniel Vrátil 2018-08-25 11:15:00 UTC
The backtrace is not very helpful, but usually when akonadi_control crashes it indicates a problem with DBus. Probably something in the session startup happens too quickly...
Comment 4 Martin Tlustos 2018-09-25 05:00:30 UTC
Looks like a duplicate of 392092
Comment 5 Christoph Feck 2018-10-11 00:26:26 UTC
From the backtrace, could be. But the fatal() message could also be different, and without the Qt logging output, we cannot know. Comment #2 either does not show the complete output, or Qt logging was redirected elsewhere (xorg-session.log, systemd log, ...)
Comment 6 Martin Tlustos 2018-10-11 04:27:55 UTC
In case the reporter does not supply more info, should I try to run kmail in gdb?
Comment 7 Freek de Kruijf 2018-12-01 10:15:51 UTC
I started the Plasma session which starts the akonadi system and got the bugsymbol in the system bar. After that I got the following crash information:

Application: akonadi_maildispatcher_agent (akonadi_maildispatcher_agent), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fbac6d37500 (LWP 3454))]

Thread 5 (Thread 0x7fbac1190700 (LWP 3485)):
#0  0x00007fbacbc902c9 in poll () from /lib64/libc.so.6
#1  0x00007fbac93c6f46 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fbac93c706c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fbacc3d1b1b in QEventDispatcherGlib::processEvents (this=0x7fbaac000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fbacc37eafb in QEventLoop::exec (this=this@entry=0x7fbac118fc60, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#5  0x00007fbacc1cdde6 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#6  0x00007fbacc1d79b7 in QThreadPrivate::start (arg=0x55b70d0ae530) at thread/qthread_unix.cpp:367
#7  0x00007fbaca4b9554 in start_thread () from /lib64/libpthread.so.0
#8  0x00007fbacbc9accf in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7fbac1991700 (LWP 3465)):
[KCrash Handler]
#6  0x00007fbacbbd808b in raise () from /lib64/libc.so.6
#7  0x00007fbacbbc14e9 in abort () from /lib64/libc.so.6
#8  0x00007fbacc010973 in ?? () from /usr/lib64/libstdc++.so.6
#9  0x00007fbacc0168c8 in ?? () from /usr/lib64/libstdc++.so.6
#10 0x00007fbacc016913 in std::terminate() () from /usr/lib64/libstdc++.so.6
#11 0x00007fbacc195dc5 in qTerminate () at global/qglobal.cpp:3193
#12 0x00007fbacc198198 in QThreadPrivate::start (arg=0x55b70d090770) at thread/qthread_unix.cpp:379
#13 0x00007fbaca4b9554 in start_thread () from /lib64/libpthread.so.0
#14 0x00007fbacbc9accf in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fbac2487700 (LWP 3463)):
#0  0x00007fbacbc902c9 in poll () from /lib64/libc.so.6
#1  0x00007fbac93c6f46 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fbac93c706c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fbacc3d1b1b in QEventDispatcherGlib::processEvents (this=0x7fbab4000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fbacc37eafb in QEventLoop::exec (this=this@entry=0x7fbac2486c30, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#5  0x00007fbacc1cdde6 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#6  0x00007fbacccfc545 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007fbacc1d79b7 in QThreadPrivate::start (arg=0x7fbaccd76d60) at thread/qthread_unix.cpp:367
#8  0x00007fbaca4b9554 in start_thread () from /lib64/libpthread.so.0
#9  0x00007fbacbc9accf in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fbac4081700 (LWP 3459)):
#0  0x00007fbacbc902c9 in poll () from /lib64/libc.so.6
#1  0x00007fbac8c30cc7 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007fbac8c328ea in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007fbac5066519 in QXcbEventReader::run (this=0x55b70cfb26c0) at qxcbconnection.h:409
#4  0x00007fbacc1d79b7 in QThreadPrivate::start (arg=0x55b70cfb26c0) at thread/qthread_unix.cpp:367
#5  0x00007fbaca4b9554 in start_thread () from /lib64/libpthread.so.0
#6  0x00007fbacbc9accf in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fbac6d37500 (LWP 3454)):
#0  0x00007fbacbc902c9 in poll () from /lib64/libc.so.6
#1  0x00007fbac93c6f46 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fbac93c706c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fbacc3d1b1b in QEventDispatcherGlib::processEvents (this=0x55b70d01b5c0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fbac50f99d1 in QPAEventDispatcherGlib::processEvents (this=0x55b70d01b5c0, flags=...) at qeventdispatcher_glib.cpp:69
#5  0x00007fbacc37eafb in QEventLoop::exec (this=this@entry=0x7ffeca91be80, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007fbacc386c72 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x00007fbacd2c2c5a in Akonadi::AgentBase::init(Akonadi::AgentBase*) () from /usr/lib64/libKF5AkonadiAgentBase.so.5
#8  0x000055b70b7a3174 in ?? ()
#9  0x00007fbacbbc2feb in __libc_start_main () from /lib64/libc.so.6
#10 0x000055b70b79ec7a in _start ()
[Inferior 1 (process 3454) detached]

I did "akonadictl stop" in a console and started kmail there. I got the following output, which did not show a crash:
> kmail
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Connection to speech-dispatcher failed
Connection to speech-dispatcher failed
Connection to speech-dispatcher failed
Connection to speech-dispatcher failed
Connection to speech-dispatcher failed
Connection to speech-dispatcher failed
Connection to speech-dispatcher failed
Connection to speech-dispatcher failed
Connection to speech-dispatcher failed
akonadi.collectionattributetable                   OK
akonadi.collectionmimetyperelation                 OK
akonadi.collectionpimitemrelation                  OK
akonadi.collectiontable                            OK
akonadi.flagtable                                  OK
akonadi.mimetypetable                              OK
akonadi.parttable                                  OK
akonadi.parttypetable                              OK
akonadi.pimitemflagrelation                        OK
akonadi.pimitemtable                               OK
akonadi.pimitemtagrelation                         OK
akonadi.relationtable                              OK
akonadi.relationtypetable                          OK
akonadi.resourcetable                              OK
akonadi.schemaversiontable                         OK
akonadi.tagattributetable                          OK
akonadi.tagremoteidresourcerelationtable           OK
akonadi.tagtable                                   OK
akonadi.tagtypetable                               OK
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1754, resource id: 6291533, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1769, resource id: 6291533, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1773, resource id: 6291533, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1966, resource id: 6291533, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1976, resource id: 6291533, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1979, resource id: 6291533, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 2068, resource id: 6291533, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 2078, resource id: 6291533, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 2081, resource id: 6291533, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 9572, resource id: 6291533, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 9592, resource id: 6291533, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 9596, resource id: 6291533, major code: 130 (Unknown), minor code: 3
"Item query returned empty result set"
"Item query returned empty result set"
"Item query returned empty result set"

Hope this shows some clue.
Comment 8 Freek de Kruijf 2018-12-01 10:39:19 UTC
After closing kmail, starting kontact and working in kmail I got the following messages in the console. Somehow error output was send there.org.kde.pim.akonadiserver: DATABASE ERROR:
org.kde.pim.akonadiserver:   Error code: "1062"
org.kde.pim.akonadiserver:   DB error:  "Duplicate entry '162175-1' for key 'PRIMARY'"
org.kde.pim.akonadiserver:   Error text: "Duplicate entry '162175-1' for key 'PRIMARY' QMYSQL3: Unable to execute statement"
org.kde.pim.akonadiserver:   Query: "INSERT INTO PimItemFlagRelation (PimItem_id, Flag_id) VALUES (?, ?)"
org.kde.pim.akonadiserver: Unable to update item access time
org.kde.pim.akonadiserver: DATABASE ERROR:
org.kde.pim.akonadiserver:   Error code: "1062"
org.kde.pim.akonadiserver:   DB error:  "Duplicate entry '162140-1' for key 'PRIMARY'"
org.kde.pim.akonadiserver:   Error text: "Duplicate entry '162140-1' for key 'PRIMARY' QMYSQL3: Unable to execute statement"
org.kde.pim.akonadiserver:   Query: "INSERT INTO PimItemFlagRelation (PimItem_id, Flag_id) VALUES (?, ?)"
org.kde.pim.akonadiserver: Unable to update item access time
org.kde.pim.akonadiserver: DATABASE ERROR:
org.kde.pim.akonadiserver:   Error code: "1062"
org.kde.pim.akonadiserver:   DB error:  "Duplicate entry '162163-7' for key 'PartTable_pimItemIdTypeIndex'"
org.kde.pim.akonadiserver:   Error text: "Duplicate entry '162163-7' for key 'PartTable_pimItemIdTypeIndex' QMYSQL3: Unable to execute statement"
org.kde.pim.akonadiserver:   Query: "INSERT INTO PartTable (pimItemId, partTypeId, data, datasize, version) VALUES (?, ?, ?, ?, ?)"
org.kde.pim.akonadiserver: Unable to update item access time
org.kde.pim.akonadiserver: DATABASE ERROR:
org.kde.pim.akonadiserver:   Error code: "1062"
org.kde.pim.akonadiserver:   DB error:  "Duplicate entry '162167-1' for key 'PRIMARY'"
org.kde.pim.akonadiserver:   Error text: "Duplicate entry '162167-1' for key 'PRIMARY' QMYSQL3: Unable to execute statement"
org.kde.pim.akonadiserver:   Query: "INSERT INTO PimItemFlagRelation (PimItem_id, Flag_id) VALUES (?, ?)"
org.kde.pim.akonadiserver: Unable to update item access time
org.kde.pim.akonadiserver: DATABASE ERROR:
org.kde.pim.akonadiserver:   Error code: "1062"
org.kde.pim.akonadiserver:   DB error:  "Duplicate entry '162177-7' for key 'PartTable_pimItemIdTypeIndex'"
org.kde.pim.akonadiserver:   Error text: "Duplicate entry '162177-7' for key 'PartTable_pimItemIdTypeIndex' QMYSQL3: Unable to execute statement"
org.kde.pim.akonadiserver:   Query: "INSERT INTO PartTable (pimItemId, partTypeId, data, datasize, version) VALUES (?, ?, ?, ?, ?)"
org.kde.pim.akonadiserver: Unable to update item access time
org.kde.pim.akonadiserver: DATABASE ERROR:
org.kde.pim.akonadiserver:   Error code: "1062"
org.kde.pim.akonadiserver:   DB error:  "Duplicate entry '162146-7' for key 'PartTable_pimItemIdTypeIndex'"
org.kde.pim.akonadiserver:   Error text: "Duplicate entry '162146-7' for key 'PartTable_pimItemIdTypeIndex' QMYSQL3: Unable to execute statement"
org.kde.pim.akonadiserver:   Query: "INSERT INTO PartTable (pimItemId, partTypeId, data, datasize, version) VALUES (?, ?, ?, ?, ?)"
org.kde.pim.akonadiserver: Unable to update item access time
org.kde.pim.akonadiserver: DATABASE ERROR:
org.kde.pim.akonadiserver:   Error code: "1062"
org.kde.pim.akonadiserver:   DB error:  "Duplicate entry '162129-7' for key 'PartTable_pimItemIdTypeIndex'"
org.kde.pim.akonadiserver:   Error text: "Duplicate entry '162129-7' for key 'PartTable_pimItemIdTypeIndex' QMYSQL3: Unable to execute statement"
org.kde.pim.akonadiserver:   Query: "INSERT INTO PartTable (pimItemId, partTypeId, data, datasize, version) VALUES (?, ?, ?, ?, ?)"
org.kde.pim.akonadiserver: Unable to update item access time
org.kde.pim.akonadiserver: DATABASE ERROR:
org.kde.pim.akonadiserver:   Error code: "1062"
org.kde.pim.akonadiserver:   DB error:  "Duplicate entry '162128-1' for key 'PRIMARY'"
org.kde.pim.akonadiserver:   Error text: "Duplicate entry '162128-1' for key 'PRIMARY' QMYSQL3: Unable to execute statement"
org.kde.pim.akonadiserver:   Query: "INSERT INTO PimItemFlagRelation (PimItem_id, Flag_id) VALUES (?, ?)"
org.kde.pim.akonadiserver: Unable to update item access time
org.kde.pim.akonadiserver: DATABASE ERROR:
org.kde.pim.akonadiserver:   Error code: "1062"
org.kde.pim.akonadiserver:   DB error:  "Duplicate entry '162122-7' for key 'PartTable_pimItemIdTypeIndex'"
org.kde.pim.akonadiserver:   Error text: "Duplicate entry '162122-7' for key 'PartTable_pimItemIdTypeIndex' QMYSQL3: Unable to execute statement"
org.kde.pim.akonadiserver:   Query: "INSERT INTO PartTable (pimItemId, partTypeId, data, datasize, version) VALUES (?, ?, ?, ?, ?)"
org.kde.pim.akonadiserver: Unable to update item access time
org.kde.pim.imapresource: Called item() while state holds multiple items!
"Item query returned empty result set"
"Item query returned empty result set"
Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.
org.kde.pim.ksmtp: Socket error: 2 "The remote host closed the connection"

The email message I did send was send without a problem.
Comment 9 Justin Zobel 2023-01-19 00:18:54 UTC
Thank you for reporting this issue 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 issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 10 Freek de Kruijf 2023-01-19 09:02:22 UTC
(In reply to Justin Zobel from comment #9)
> Thank you for reporting this issue 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 issue with a recent software version?
> 
> If you can reproduce the issue, please change the status to "REPORTED" when
> replying. Thank you!

Stil present in the latest version, 22.12.1, of the akonadi software.