Bug 478416 - Crash on eMail sending since yesterdays git master snapshot built
Summary: Crash on eMail sending since yesterdays git master snapshot built
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: Git (master)
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-11 22:06 UTC by Robby Engelmann
Modified: 2023-12-29 13:54 UTC (History)
4 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 Robby Engelmann 2023-12-11 22:06:59 UTC
SUMMARY
Since yesterdays git master snapshot of the qt6 megarelease as being provided by openSUSE, Email sending does not work anymore



SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20231210
KDE Plasma Version: 5.90.90
KDE Frameworks Version: 5.247.0
Qt Version: 6.6.1
Kernel Version: 6.6.3-1-default (64-bit)
Graphics Platform: Wayland
Processors: 20 × 13th Gen Intel® Core™ i7-13700H
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: TUXEDO
Product Name: TUXEDO InfinityBook Pro Gen8 (MK1)
Comment 1 Laurent Montel 2023-12-12 05:52:33 UTC
Hi,
backtrace please.
Thanks
Comment 2 Robby Engelmann 2023-12-12 07:03:49 UTC
BTW, there is also no pop3 working, but the ews ressource did its job
Comment 3 Robby Engelmann 2023-12-12 07:04:52 UTC
this is what shows up in konsole:
>kmail
qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "stateChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMState
qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "connectivityChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMConnectivityState
qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "deviceTypeChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMDeviceType
qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "meteredChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMMetered
org.kde.pim.kmail_expertplugin: toggle_mimeparttree is not defined 
 lstFilters  0
 lstFilters  7
doh set to ""  --  SystemOnly
gpg.qgpgme: found no group for entry verbose of component "tpm2daemon"
gpg.qgpgme: found no group for entry quiet of component "tpm2daemon"
gpg.qgpgme: found no group for entry debug-level of component "tpm2daemon"
gpg.qgpgme: found no group for entry log-file of component "tpm2daemon"
*** KMail got signal 11 (Exiting)
*** Dead letters dumped.
KCrash: Application 'kmail' crashing... crashRecursionCounter = 2
Segmentation fault (core dumped)

The crash occurred when trying to send an email
Comment 4 Robby Engelmann 2023-12-12 07:21:56 UTC
(gdb) bt
#0  0x00007fffe9f536de in Akonadi::ItemCreateJob::doStart() () at /lib64/libKPim6AkonadiCore.so.6
#1  0x00007fffe9f59278 in  () at /lib64/libKPim6AkonadiCore.so.6
#2  0x00007fffebdcb2ae in QObject::event(QEvent*) (this=0x55555607e930, e=0x7ffe840026a0)
    at /usr/src/debug/qtbase-everywhere-src-6.6.1/src/corelib/kernel/qobject.cpp:1437
#3  0x00007fffecfc094e in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x55555607e930, e=0x7ffe840026a0)
    at /usr/src/debug/qtbase-everywhere-src-6.6.1/src/widgets/kernel/qapplication.cpp:3296
#4  0x00007fffebd878b8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55555607e930, event=0x7ffe840026a0)
    at /usr/src/debug/qtbase-everywhere-src-6.6.1/src/corelib/kernel/qcoreapplication.cpp:1121
#5  0x00007fffebd878f9 in QCoreApplication::sendEvent(QObject*, QEvent*) (receiver=<optimized out>, event=<optimized out>)
    at /usr/src/debug/qtbase-everywhere-src-6.6.1/src/corelib/kernel/qcoreapplication.cpp:1539
#6  0x00007fffebd87c17 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x5555555adee0)
    at /usr/src/debug/qtbase-everywhere-src-6.6.1/src/corelib/kernel/qcoreapplication.cpp:1901
#7  0x00007fffebfad9e3 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x5555556051a0)
    at /usr/src/debug/qtbase-everywhere-src-6.6.1/src/corelib/kernel/qeventdispatcher_glib.cpp:243
#8  0x00007fffe8cb1f30 in  () at /lib64/libglib-2.0.so.0
#9  0x00007fffe8cb3b58 in  () at /lib64/libglib-2.0.so.0
#10 0x00007fffe8cb420c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#11 0x00007fffebfabc6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x5555555962e0, flags=...)
    at /usr/src/debug/qtbase-everywhere-src-6.6.1/src/corelib/kernel/qeventdispatcher_glib.cpp:393
#12 0x00007fffebd9211b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fffffffc780, flags=...)
    at /usr/src/debug/qtbase-everywhere-src-6.6.1/build/include/QtCore/../../../src/corelib/global/qflags.h:34
#13 0x00007fffebd8bd46 in QCoreApplication::exec() ()
    at /usr/src/debug/qtbase-everywhere-src-6.6.1/build/include/QtCore/../../../src/corelib/global/qflags.h:74
#14 0x00007fffec5e268c in QGuiApplication::exec() () at /usr/src/debug/qtbase-everywhere-src-6.6.1/src/gui/kernel/qguiapplication.cpp:1925
#15 0x00007fffecfbdd85 in QApplication::exec() () at /usr/src/debug/qtbase-everywhere-src-6.6.1/src/widgets/kernel/qapplication.cpp:2574
#16 0x0000555555559138 in main(int, char**) (argc=<optimized out>, argv=<optimized out>)
    at /usr/src/debug/kmail-24.01.80git.20231211T021212~c1635d35/src/main.cpp:174
Comment 5 Robby Engelmann 2023-12-12 09:44:41 UTC
does this:
>qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "stateChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMState
>qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "connectivityChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMConnectivityState
>qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "deviceTypeChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMDeviceType
>qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "meteredChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMMetered

hint, that kmail is not able to establish a network connection and this is why no mails can be pop'ed and the sending fails.
And the failed sending triggers a crash?
And the ews ressource works because making use of another connection protocol?
...I am only wildly guessing...
Comment 6 Luca Beltrame 2023-12-14 10:41:06 UTC
The EWS resource fails for me in the same manner, for the record. The backtrace lacks some debug symbols, here's a more complete one:

Thread 1 (Thread 0x7fcbac2de180 (LWP 5068)):
[KCrash Handler]
#4  0x00007fcb845536de in attributesToProtocolImpl<Akonadi::Item> (ns=false, entity=...) at /usr/src/debug/akonadi-24.01.80git.20231210T222818~b1023dc/src/core/protocolhelper.cpp:93
#5  Akonadi::ProtocolHelper::attributesToProtocol(Akonadi::Item const&, bool) (ns=false, item=...) at /usr/src/debug/akonadi-24.01.80git.20231210T222818~b1023dc/src/core/protocolhelper.cpp:184
#6  Akonadi::ItemCreateJob::doStart() (this=<optimized out>) at /usr/src/debug/akonadi-24.01.80git.20231210T222818~b1023dc/src/core/jobs/itemcreatejob.cpp:158
#7  0x00007fcb84559278 in Akonadi::JobPrivate::startQueued() (this=0x7fcba4055a20) at /usr/src/debug/akonadi-24.01.80git.20231210T222818~b1023dc/src/core/jobs/job.cpp:189
#8  0x00007fcbc1bcb2ae in QObject::event(QEvent*) () at /lib64/libQt6Core.so.6
#9  0x00007fcbc2dc094e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt6Widgets.so.6
#10 0x00007fcbc1b878b8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt6Core.so.6
#11 0x00007fcbc1b87c17 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib64/libQt6Core.so.6
#12 0x00007fcbc1dad9e3 in  () at /lib64/libQt6Core.so.6
#13 0x00007fcbb6861f30 in  () at /lib64/libglib-2.0.so.0
#14 0x00007fcbb6863b58 in  () at /lib64/libglib-2.0.so.0
#15 0x00007fcbb686420c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#16 0x00007fcbc1dabc6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6
#17 0x00007fcbc1b9211b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6
#18 0x00007fcbc1b8bd46 in QCoreApplication::exec() () at /lib64/libQt6Core.so.6
#19 0x00005607fa46041d in  ()
#20 0x00007fcbc12281b0 in __libc_start_call_main () at /lib64/libc.so.6
#21 0x00007fcbc1228279 in __libc_start_main_impl () at /lib64/libc.so.6
#22 0x00005607fa4609f5 in  ()
Comment 7 Robby Engelmann 2023-12-14 11:40:40 UTC
This is right, the EWS fails here as well in terms of sending.
Comment 8 Luca Beltrame 2023-12-15 06:54:08 UTC
I wonder if it's related to 72af8c0b4b20813983a0ee0384ac248e097c4a21. I'll check...
Comment 9 Luca Beltrame 2023-12-15 07:14:06 UTC
I reverted the change and then reinstalled Akonadi. It did not crash, but it did not crash also when I went back again to master...

@Robby: Can you try issuing "akonadictl fsck" and see whether this changes anything?
Comment 10 Robby Engelmann 2023-12-15 07:55:27 UTC
akonadictl fsck did not help here,
nor directly try to send nor after a restart.
still crashing.

BTW, this bug started with the same timing:
https://bugs.kde.org/show_bug.cgi?id=478504
Comment 11 David Faure 2023-12-27 19:27:05 UTC
(In reply to Robby Engelmann from comment #5)
> does this:
> >qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "stateChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMState
> >qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "connectivityChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMConnectivityState
> >qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "deviceTypeChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMDeviceType
> >qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "meteredChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMMetered
> 
> hint, that kmail is not able to establish a network connection and this is
> why no mails can be pop'ed and the sending fails.
> And the failed sending triggers a crash?
> And the ews ressource works because making use of another connection
> protocol?
> ...I am only wildly guessing...

No these warnings were harmless and are now fixed in https://codereview.qt-project.org/c/qt/qtbase/+/527739.
Comment 12 Robby Engelmann 2023-12-29 13:54:42 UTC
Works in recent git master snapshots (for over one week)