Bug 443784 - Kmail crashes with segfault after not being able to read (or better read again) the password of kwallet manager
Summary: Kmail crashes with segfault after not being able to read (or better read agai...
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: POP3 Resource (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-10-15 13:07 UTC by stakanov.s
Modified: 2021-10-15 13:07 UTC (History)
1 user (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 stakanov.s 2021-10-15 13:07:07 UTC
Application: akonadi_pop3_resource (5.18.1 (21.08.1))

Qt Version: 5.15.2
Frameworks Version: 5.86.0
Operating System: Linux 5.14.9-1-default x86_64
Windowing System: X11
Drkonqi Version: 5.22.5
Distribution: openSUSE Tumbleweed

-- Information about the crash:
- What I was doing when the application crashed:
Kmail opens normally, principal password accepted and mail retrieved. After some time delay, kmail is not able to open the password any more and shows an input window asking for it. 
If you do not give this password, you cannot retrive mail any more. So you retrive the password in wallet (were it still is). You input it into the request, all works and post is retrived...but, shortly after the program segfaults (in it's part pop server as it seems. 

- Unusual behavior I noticed:
sudden incapacity of reading kwallet , sometimes but not only mitigated by exeting the kwallemanager and restarting akonadi. 
when setting the password as contained in the wallet, in a high percentage (70% of cases) the pop server of kmail then segfaults and gives this output. 
This is repeatable. 

- Custom settings of the application:

mixed setting pop and imap accounts. 
The wallet previously was not presenting the problem, it could be a problem of the current TW KDE version.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: mailbox.org (akonadi_pop3_resource), signal: Segmentation fault
Content of s_kcrashErrorMessage: [Current thread is 1 (Thread 0x7f8a96f62e00 (LWP 6361))]
[KCrash Handler]
#6  std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x5) at /usr/include/c++/11/bits/atomic_base.h:479
#7  QAtomicOps<int>::loadRelaxed<int> (_q_value=...) at /usr/include/qt5/QtCore/qatomic_cxx11.h:239
#8  QBasicAtomicInteger<int>::loadRelaxed (this=0x5) at /usr/include/qt5/QtCore/qbasicatomic.h:107
#9  QWeakPointer<QObject>::internalData (this=0x5602326b7080) at /usr/include/qt5/QtCore/qsharedpointer_impl.h:698
#10 QPointer<KIO::Slave>::data (this=0x5602326b7080) at /usr/include/qt5/QtCore/qpointer.h:77
#11 QPointer<KIO::Slave>::operator KIO::Slave* (this=0x5602326b7080) at /usr/include/qt5/QtCore/qpointer.h:83
#12 POPSession::getSlave (this=0x5602326b7070) at /usr/src/debug/kdepim-runtime-21.08.1-1.2.x86_64/resources/pop3/jobs.cpp:158
#13 LoginJob::slaveConnected (slave=0x560232664ec0, this=0x7f8a84047bd0) at /usr/src/debug/kdepim-runtime-21.08.1-1.2.x86_64/resources/pop3/jobs.cpp:276
#14 LoginJob::qt_static_metacall (_c=<optimized out>, _id=<optimized out>, _a=<optimized out>, _o=0x7f8a84047bd0) at /usr/src/debug/kdepim-runtime-21.08.1-1.2.x86_64/build/resources/pop3/akonadi_pop3_resource_autogen/EWIEGA46WW/moc_jobs.cpp:311
#15 LoginJob::qt_static_metacall (_o=0x7f8a84047bd0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/kdepim-runtime-21.08.1-1.2.x86_64/build/resources/pop3/akonadi_pop3_resource_autogen/EWIEGA46WW/moc_jobs.cpp:305
#16 0x00007f8a97499048 in doActivate<false> (sender=0x560232484470, signal_index=3, argv=0x7fff54057590) at kernel/qobject.cpp:3898
#17 0x00007f8a974924df in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f8a982da4e0 <KIO::Scheduler::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff54057590) at kernel/qobject.cpp:3946
#18 0x00007f8a982395bf in KIO::Scheduler::slaveConnected (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/kio-5.86.0-1.3.x86_64/build/src/core/KF5KIOCore_autogen/include/moc_scheduler.cpp:214
#19 0x00007f8a97499048 in doActivate<false> (sender=0x560232664ec0, signal_index=6, argv=0x7fff54057640) at kernel/qobject.cpp:3898
#20 0x00007f8a974924df in QMetaObject::activate (sender=sender@entry=0x560232664ec0, m=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x0) at kernel/qobject.cpp:3946
#21 0x00007f8a98211ef3 in KIO::SlaveInterface::connected (this=this@entry=0x560232664ec0) at /usr/src/debug/kio-5.86.0-1.3.x86_64/build/src/core/KF5KIOCore_autogen/include/moc_slaveinterface.cpp:458
#22 0x00007f8a982189a0 in KIO::SlaveInterface::dispatch (this=0x560232664ec0, _cmd=103, rawdata=...) at /usr/src/debug/kio-5.86.0-1.3.x86_64/src/core/slaveinterface.cpp:194
#23 0x00007f8a98211d79 in KIO::SlaveInterface::dispatch (this=0x560232664ec0) at /usr/src/debug/kio-5.86.0-1.3.x86_64/src/core/slaveinterface.cpp:78
#24 0x00007f8a982157ba in KIO::Slave::gotInput (this=0x560232664ec0) at /usr/src/debug/kio-5.86.0-1.3.x86_64/src/core/slave.cpp:404
#25 0x00007f8a97499013 in QtPrivate::QSlotObjectBase::call (a=0x7fff54057880, r=0x560232664ec0, this=0x560232668910) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#26 doActivate<false> (sender=0x560232663b30, signal_index=3, argv=0x7fff54057880) at kernel/qobject.cpp:3886
#27 0x00007f8a9748efbe in QObject::event (this=0x560232663b30, e=0x5602326efd00) at kernel/qobject.cpp:1314
#28 0x00007f8a97985a7f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x560232663b30, e=0x5602326efd00) at kernel/qapplication.cpp:3632
#29 0x00007f8a974629ca in QCoreApplication::notifyInternal2 (receiver=0x560232663b30, event=0x5602326efd00) at kernel/qcoreapplication.cpp:1064
#30 0x00007f8a97465a17 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x560232270050) at kernel/qcoreapplication.cpp:1821
#31 0x00007f8a974ba823 in postEventSourceDispatch (s=s@entry=0x5602323ec480) at kernel/qeventdispatcher_glib.cpp:277
#32 0x00007f8a95f76d5f in g_main_dispatch (context=0x7f8a8c005000) at ../glib/gmain.c:3381
#33 g_main_context_dispatch (context=0x7f8a8c005000) at ../glib/gmain.c:4099
#34 0x00007f8a95f770e8 in g_main_context_iterate (context=context@entry=0x7f8a8c005000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4175
#35 0x00007f8a95f7719f in g_main_context_iteration (context=0x7f8a8c005000, may_block=1) at ../glib/gmain.c:4240
#36 0x00007f8a974b9ea4 in QEventDispatcherGlib::processEvents (this=0x5602323e7bf0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#37 0x00007f8a974613cb in QEventLoop::exec (this=this@entry=0x7fff54057c90, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#38 0x00007f8a974696b0 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#39 0x00007f8a965e519c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#40 0x00007f8a979859f5 in QApplication::exec () at kernel/qapplication.cpp:2824
#41 0x00007f8a9857fb45 in Akonadi::ResourceBase::init (r=...) at /usr/src/debug/akonadi-server-21.08.1-1.2.x86_64/src/agentbase/resourcebase.cpp:563
#42 0x0000560231dceb92 in Akonadi::ResourceBase::init<POP3Resource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/KF5/AkonadiAgentBase/resourcebase.h:182
#43 0x00007f8a96d65540 in __libc_start_call_main (main=main@entry=0x560231dbb6f0 <main(int, char**)>, argc=argc@entry=3, argv=argv@entry=0x7fff54058198) at ../sysdeps/nptl/libc_start_call_main.h:58
#44 0x00007f8a96d655ec in __libc_start_main_impl (main=0x560231dbb6f0 <main(int, char**)>, argc=3, argv=0x7fff54058198, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff54058188) at ../csu/libc-start.c:409
#45 0x0000560231dbb725 in _start () at ../sysdeps/x86_64/start.S:116
[Inferior 1 (process 6361) detached]

Possible duplicates by query: bug 440840, bug 439645, bug 439597, bug 438659, bug 437855.

Reported using DrKonqi