Bug 439165 - Kontact crashed while in background
Summary: Kontact crashed while in background
Alias: None
Product: kontact
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE RPMs Linux
: NOR crash with 20 votes (vote)
Target Milestone: ---
Assignee: kdepim bugs
Keywords: drkonqi
Depends on:
Reported: 2021-06-25 20:44 UTC by Bob Mattes
Modified: 2021-10-13 08:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:

New crash information added by DrKonqi (6.01 KB, text/plain)
2021-07-13 19:15 UTC, Bob Mattes
New crash information added by DrKonqi (6.03 KB, text/plain)
2021-07-15 14:03 UTC, Bob Mattes
New crash information added by DrKonqi (5.94 KB, text/plain)
2021-07-26 13:08 UTC, Bob Mattes
New crash information added by DrKonqi (4.32 KB, text/plain)
2021-10-13 08:13 UTC, Christian Nitschkowski

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Mattes 2021-06-25 20:44:17 UTC
Application: kontact (5.17.2 (21.04.2))

Qt Version: 5.15.2
Frameworks Version: 5.83.0
Operating System: Linux 5.12.12-1-default x86_64
Windowing System: Wayland
Drkonqi Version: 5.22.1
Distribution: "openSUSE Tumbleweed"

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

I was in my browser (Vivaldi) when Kontact crashed in the background. It was running as a background window. I restarted Kontact, and then after about 5 minutes it crashed again. I was not actively using Kontact at the time.

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
Content of s_kcrashErrorMessage: [Current thread is 1 (Thread 0x7f8ce9996040 (LWP 17688))]
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#7  0x00007f8cfb9e3864 in __GI_abort () at abort.c:79
#8  0x00007f8cfbc359b6 in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#9  0x00007f8cfbc4119c in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
#10 0x00007f8cfbc41207 in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58
#11 0x00007f8cfbc414a9 in __cxxabiv1::__cxa_throw (obj=<optimized out>, tinfo=0x7f8caa626c70 <typeinfo for Xapian::DatabaseCorruptError>, dest=0x7f8caa2edfc0 <Xapian::DatabaseCorruptError::~DatabaseCorruptError()>) at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:95
#12 0x00007f8caa2a9602 in GlassTable::block_to_cursor (this=<optimized out>, C_=<optimized out>, j=<optimized out>, n=<optimized out>) at /usr/include/c++/11/bits/allocator.h:162
#13 0x00007f8caa346e2d in GlassTable::find (this=0x556c7b3e7a60, C_=0x556c7b3e7b28) at backends/glass/glass_table.cc:544
#14 0x00007f8caa347e91 in GlassTable::get_exact_entry (tag=..., key=..., this=<optimized out>) at backends/glass/glass_table.cc:1483
#15 GlassTable::get_exact_entry (this=0x556c7b3e7a60, key=..., tag=...) at backends/glass/glass_table.cc:1467
#16 0x00007f8caa33d56a in GlassPostListTable::get_freqs (this=0x556c7b3e7a60, term=..., termfreq_ptr=0x7ffd390274f4, collfreq_ptr=0x0, wdfub_ptr=0x0) at backends/glass/glass_postlist.cc:160
#17 0x00007f8caa2c4775 in Xapian::Database::get_termfreq (tname=..., this=0x7ffd39027550) at api/omdatabase.cc:332
#18 Xapian::Database::get_termfreq (this=this@entry=0x7ffd39027550, tname=...) at api/omdatabase.cc:323
#19 0x00007f8caa61fccb in Akonadi::Search::PIM::IndexedItemsPrivate::indexedItemsInDatabase (term=..., dbPath=..., this=<optimized out>) at /usr/src/debug/akonadi-search-21.04.2-1.1.x86_64/lib/indexeditems.cpp:123
#20 0x00007f8caa61fe94 in Akonadi::Search::PIM::IndexedItemsPrivate::indexedItems (id=<optimized out>, this=0x556c66279900) at /usr/src/debug/akonadi-search-21.04.2-1.1.x86_64/lib/indexeditems.cpp:129
#21 Akonadi::Search::PIM::IndexedItems::indexedItems (this=this@entry=0x556c66239fb0, id=<optimized out>) at /usr/src/debug/akonadi-search-21.04.2-1.1.x86_64/lib/indexeditems.cpp:200
#22 0x00007f8ca91e169c in CheckIndexingJob::slotCollectionPropertiesFinished (this=0x556c66276b20, job=<optimized out>) at /usr/src/debug/kmail-21.04.2-1.1.x86_64/src/search/checkindexingjob.cpp:59
#23 0x00007f8cfc0b70f3 in QtPrivate::QSlotObjectBase::call (a=0x7ffd39027850, r=0x556c66276b20, this=0x556c6645fca0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#24 doActivate<false> (sender=0x556c6be15280, signal_index=6, argv=0x7ffd39027850) at kernel/qobject.cpp:3886
#25 0x00007f8cfc0b05bf in QMetaObject::activate (sender=sender@entry=0x556c6be15280, m=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffd39027850) at kernel/qobject.cpp:3946
#26 0x00007f8cfd2bb9cc in KJob::result (this=this@entry=0x556c6be15280, _t1=<optimized out>, _t1@entry=0x556c6be15280, _t2=...) at /usr/src/debug/kcoreaddons-5.83.0-1.1.x86_64/build/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:636
#27 0x00007f8cfd2c0303 in KJob::finishJob (this=0x556c6be15280, emitResult=<optimized out>) at /usr/src/debug/kcoreaddons-5.83.0-1.1.x86_64/src/lib/jobs/kjob.cpp:97
#28 0x00007f8cfc0ad09e in QObject::event (this=0x556c6be15280, e=0x7f8c6c0068d0) at kernel/qobject.cpp:1314
#29 0x00007f8cfcc3ca5f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x556c6be15280, e=0x7f8c6c0068d0) at kernel/qapplication.cpp:3632
#30 0x00007f8cfc080aaa in QCoreApplication::notifyInternal2 (receiver=0x556c6be15280, event=0x7f8c6c0068d0) at kernel/qcoreapplication.cpp:1063
#31 0x00007f8cfc083af7 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x556c656f2840) at kernel/qcoreapplication.cpp:1817
#32 0x00007f8cfc0d8a73 in postEventSourceDispatch (s=s@entry=0x556c6577f900) at kernel/qeventdispatcher_glib.cpp:277
#33 0x00007f8cf292380f in g_main_dispatch (context=0x556c65764310) at ../glib/gmain.c:3337
#34 g_main_context_dispatch (context=0x556c65764310) at ../glib/gmain.c:4055
#35 0x00007f8cf2923b98 in g_main_context_iterate (context=context@entry=0x556c65764310, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4131
#36 0x00007f8cf2923c4f in g_main_context_iteration (context=0x556c65764310, may_block=1) at ../glib/gmain.c:4196
#37 0x00007f8cfc0d80f4 in QEventDispatcherGlib::processEvents (this=0x556c6577f410, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#38 0x00007f8cfc07f4bb in QEventLoop::exec (this=this@entry=0x7ffd39027c60, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#39 0x00007f8cfc087790 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#40 0x00007f8cfc4de1fc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#41 0x00007f8cfcc3c9d5 in QApplication::exec () at kernel/qapplication.cpp:2824
#42 0x0000556c636bdfb8 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kontact-21.04.2-1.1.x86_64/src/main.cpp:208
[Inferior 1 (process 17688) detached]

Possible duplicates by query: bug 432084, bug 429344, bug 427384, bug 424911, bug 423222.

Reported using DrKonqi
Comment 1 Bob Mattes 2021-07-12 21:03:24 UTC
This is still an issue in Plasma 5.22.3, Qt 5.15.2, Kernel 5.13.0. Behavior identical to that earlier reported.
Comment 2 Bob Mattes 2021-07-13 19:15:03 UTC
Created attachment 140034 [details]
New crash information added by DrKonqi

kontact (5.17.3 (21.04.3)) using Qt 5.15.2

- What I was doing when the application crashed:

Normal computer use with Kontact in the background. I also tried this with just KMail running, but same result. I seems like the same amount of time before crashing every time, but I haven't timed it exactly yet.

-- Backtrace (Reduced):
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#7  0x00007fa7dd4de864 in __GI_abort () at abort.c:79
#8  0x00007fa7dd7309b6 in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#9  0x00007fa7dd73c19c in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
#10 0x00007fa7dd73c207 in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58
Comment 3 Bob Mattes 2021-07-15 14:03:28 UTC
Created attachment 140081 [details]
New crash information added by DrKonqi

kontact (5.17.3 (21.04.3)) using Qt 5.15.2

- What I was doing when the application crashed:

I was reading a document in Ocular when Kontact crashed in the background. Kontact reliably crashes every time a few minutes after running it. Seems to work correctly before the crash. This behavior has been consistent for several weeks.

-- Backtrace (Reduced):
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#7  0x00007f9dae082864 in __GI_abort () at abort.c:79
#8  0x00007f9dae2d49b6 in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#9  0x00007f9dae2e019c in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
#10 0x00007f9dae2e0207 in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58
Comment 4 Bob Mattes 2021-07-26 13:08:42 UTC
Created attachment 140340 [details]
New crash information added by DrKonqi

kontact (5.17.3 (21.04.3)) using Qt 5.15.2

Same as before. I was browsing and doing file management when Kontact crashed after a few minutes in the background. Very consistent behavior every time that Kontact is opened.

-- Backtrace (Reduced):
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#7  0x00007fbffcc2c864 in __GI_abort () at abort.c:79
#8  0x00007fbffce7e9b6 in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#9  0x00007fbffce8a19c in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
#10 0x00007fbffce8a207 in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58
Comment 5 Christian Nitschkowski 2021-10-13 08:13:24 UTC
Created attachment 142383 [details]
New crash information added by DrKonqi

kontact (5.16.2 (20.12.2)) using Qt 5.15.2

- What I was doing when the application crashed:

I have Kontact opened but wasn't actively using it. I can reproduce this 100% of the time. After a certain amount of time (approximately 5 minutes, I haven't exactly timed it yet) Kontact crashes. It doesn't matter if it's just "sitting there" in the foreground, background or if I'm actively using it.

-- Backtrace (Reduced):
#12 0x00007f33ea571ddd in GlassTable::find(Glass::Cursor*) const () from /lib64/libxapian.so.30
#13 0x00007f33ea572e69 in GlassTable::get_exact_entry(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) const () from /lib64/libxapian.so.30
#14 0x00007f33ea56850e in GlassPostListTable::get_freqs(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int*, unsigned int*, unsigned int*) const () from /lib64/libxapian.so.30
#15 0x00007f33ea4ecca5 in Xapian::Database::get_termfreq(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const () from /lib64/libxapian.so.30
#17 0x00007f33ea921ff8 in Akonadi::Search::PIM::IndexedItems::indexedItems(long long) () from /lib64/libKF5AkonadiSearchPIM.so.5