[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#833625: kmail crash at start



¡Hola Samuele!

El 2016-08-11 a las 20:46 +0200, Samuele Battarra escribió:
On Tuesday 09 August 2016 10:19:56 Maximiliano Curia wrote:
I was expecting kcrash to catch a kmail crash and show a window with the backtrace information, if that's not the case, then running kmail under gdb should give something similar:

No kcrash, here the gdb log. After some run the message error changed, now it is: konadicore_log: Failed CollectionCreateJob. "Could not create collection templates, resourceId: 2" repeated for every folder, see attachment

Thanks for the information.

Sadly to have an idea of the code error we still need more debug symbols. Could you produce the backtrace again after installing qtbase5-dbg , libkf5mailcommon5-dbgsym and kde-style-breeze-dbgsym ?

Database "/home/samuele/.local/share/akonadi/akonadi.db" opened using driver "QSQLITE3"

Please be aware that the sqlite support hasn't been the most cared for upstream for quite some long time now.

> DATABASE ERROR:
> Error code: 2067
> DB error:  "UNIQUE constraint failed: CollectionTable.parentId, CollectionTable.name"
> Error text: "UNIQUE constraint failed: CollectionTable.parentId, CollectionTable.name Unable to fetch row"
> Query: "INSERT INTO CollectionTable (remoteId, remoteRevision, name, parentId, resourceId, enabled, syncPref, displayPref, indexPref, cachePolicyInherit, cachePolicyCheckInterval, cachePolicyCacheTimeout, cachePolicySyncOnDemand, cachePolicyLocalParts, isVirtual) VALUES (:0, :1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, :14)"
> Error during insertion into table "CollectionTable" "UNIQUE constraint failed: CollectionTable.parentId, CollectionTable.name Unable to fetch row"
> akonadicore_log: Failed SpecialCollectionsRequestJob::slotResult "Could not create collection outbox, resourceId: 2"
> log_maildispatcher: Failed to get outbox folder. Retrying in:  5000
> akonadicore_log: Failed CollectionCreateJob. "Could not create collection outbox, resourceId: 2"
> QDBusObjectPath Akonadi::Server::NotificationManager::subscribe(const QString&, bool) Akonadi::Server::NotificationManager(0x801dd0) "akonadi_mailfilter_agent_6555_8m4kX2" false
> DATABASE ERROR:
> Error code: 2067
> DB error:  "UNIQUE constraint failed: CollectionTable.parentId, CollectionTable.name"
> Error text: "UNIQUE constraint failed: CollectionTable.parentId, CollectionTable.name Unable to fetch row"
> Query: "INSERT INTO CollectionTable (remoteId, remoteRevision, name, parentId, resourceId, enabled, syncPref, displayPref, indexPref, cachePolicyInherit, cachePolicyCheckInterval, cachePolicyCacheTimeout, cachePolicySyncOnDemand, cachePolicyLocalParts, isVirtual) VALUES (:0, :1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, :14)"
> Error during insertion into table "CollectionTable" "UNIQUE constraint failed: CollectionTable.parentId, CollectionTable.name Unable to fetch row"

(mostly speaking to myself)

And the database seems to be corrupted somehow. Maybe the schema update from the previous version failed, maybe it was already corrupted in a way that wasn't affecting kmail before. This is going to be very hard to figure out.

> log_pop3resource: Got a slave error: "Your POP3 server claims to support TLS but negotiation was unsuccessful.\nYou can disable TLS in the POP account settings dialog."
> log_pop3resource: ============== ERROR DURING POP3 SYNC ==========================
> log_pop3resource: "Unable to login to the server localhost.\nYour POP3 server claims to support TLS but negotiation was unsuccessful.\nYou can disable TLS in the POP account settings dialog."
> log_pop3resource: UID list from server is not valid.
> [Thread 0x7fff357f9700 (LWP 6839) exited]
> Shutting down "/subscriber/kmail2_6510_5GV1Hh" ...
> [Thread 0x7fff6a904700 (LWP 6784) exited]
> [Thread 0x7fffd2afe700 (LWP 6515) exited]
> void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_6510_NKaXvq" now serving: ()
> void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_6510_JUYr6i" now serving: ()
> void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_6510_JHAa4N" now serving: ()
> void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_6510_pb3V52" now serving: ()
> void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_6510_5GV1Hh" now serving: ()
> void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2_6510_9a2EVf" now serving:

> Thread 1 "kmail" received signal SIGSEGV, Segmentation fault.
> 0x00007fffd2d96c00 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/styles/breeze.so

The segfault seems to be in breeze.so, this could be related to the pop3 error.

> Thread 1 (Thread 0x7fffd5813940 (LWP 6510)):
> #0  0x00007fffd2d96c00 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/styles/breeze.so
...
> #3  0x00007ffff6e90dcb in QStyleFactory::create(QString const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
...
> #23 0x00007ffff547abc5 in exit () from /lib/x86_64-linux-gnu/libc.so.6
> #24 0x00007ffff40f6449 in MailCommon::Kernel::emergencyExit(QString const&) () from /usr/lib/x86_64-linux-gnu/libKF5MailCommon.so.5

This is really weird. exit should have closed kmail, not started calling something in breeze. Maybe it's the way kcrash works, in that case kcrash is crashing, I not sure. The emergency exit is probably related to either the database error or an unhandled pop3 error.

> #25 0x00007ffff40f684d in MailCommon::Kernel::createDefaultCollectionDone(KJob*) () from /usr/lib/x86_64-linux-gnu/libKF5MailCommon.so.5

Happy hacking,
--
"If it ain't broke, don't fix it" -- Bert Lance
"If we can't fix it, it ain't broke" -- Lieutenant Colonel Walt Weir
Saludos /\/\ /\ >< `/

Attachment: signature.asc
Description: Digital signature


Reply to: