Crash occured during startup of kde. My system is very slow to start initially (as the root filesystem is on an SD card) so is very susceptible to concurrency issues. Therefore, many of the steps below may have been executing concurrently. Reproducible: Didn't try Steps to Reproduce: 1. Started KDE from console mode using "startx" script 2. Previous session was resumed, resulting in a Konsole launching during early startup 3. In the Konsole window, ran "sudo apt-get update" immediately after shell prompt became visible Actual Results: kded4 crashed, with the following stack trace: Thread 1 (Thread 0x7ffe2a8317c0 (LWP 1947)): [KCrash Handler] #5 0x00007ffe04818d48 in pkgPolicy::GetCandidateVer(pkgCache::PkgIterator const&) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 #6 0x00007ffe047e7f9b in pkgDepCache::Init(OpProgress*) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 #7 0x00007ffe04816050 in pkgCacheFile::BuildDepCache(OpProgress*) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 #8 0x00007ffe048160b2 in pkgCacheFile::Open(OpProgress*, bool) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 #9 0x00007ffe04ae86e3 in QApt::Backend::reloadCache() () from /usr/lib/libqapt.so.2 #10 0x00007ffe04ae94de in QApt::Backend::init() () from /usr/lib/libqapt.so.2 #11 0x00007ffe04f54a2e in ?? () from /usr/lib/kde4/kded_notificationhelper.so #12 0x00007ffe04f4635a in ?? () from /usr/lib/kde4/kded_notificationhelper.so #13 0x00007ffe294b487a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #14 0x00007ffe294bd70a in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #15 0x00007ffe294b8a31 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #16 0x00007ffe28839e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #17 0x00007ffe288404a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #18 0x00007ffe2a21fd1a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5 #19 0x00007ffe294a04dd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #20 0x00007ffe294d0323 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #21 0x00007ffe294cd5f1 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #22 0x00007ffe25191e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #23 0x00007ffe25192048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #24 0x00007ffe251920ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #25 0x00007ffe294cd7a1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #26 0x00007ffe288dbbb6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #27 0x00007ffe2949f0af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #28 0x00007ffe2949f3a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #29 0x00007ffe294a4b79 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #30 0x00007ffe152d6d1b in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_kded4.so #31 0x00000000004083ee in _start () Expected Results: no crash should have occurred Application: kded4 (4.13.3) KDE Platform Version: 4.13.3 Qt Version: 4.8.6 Operating System: Linux 3.13.0-36-generic x86_64 Distribution: Ubuntu 14.04 LTS
That is pretty much a crash in libapt-pkg. At that point qapt will open the pkgFileCache via ReadOnlyOpen() which opens the cache read-only without a lock. Alas, apparently there are conditions where a write to the cache can then make the open action itself trip. Best file a bug against apt in debian https://www.debian.org/Bugs/