Bug 342025

Summary: KDE crashes at login; recently removed nvidia driver
Product: [Applications] Discover Reporter: Jan Mulders <bugtraq.mulders>
Component: UpdatesAssignee: Jonathan Thomas <echidnaman>
Status: RESOLVED UPSTREAM    
Severity: crash CC: aleixpol, cfeck, sitter, stasnel
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jan Mulders 2014-12-19 09:01:35 UTC
The kde daemon crashes when I log in.
I can work after closing the bug report, but for example muon-updater crashes.
Probably related: a pop-up about QApt crashing or disappearing.

Reproducible: Always

Steps to Reproduce:
1. Just log in.

Actual Results:  
A pop-up soon shows reporting that the kde daemon has crashed.

Expected Results:  
No crash of kde daemon.

In the past I had problems with the nvidia driver, so I was using the nouveau driver instead.
A few days ago the nvidia driver was re-installed in a system update.
I solved the resulting problems by removing the nvidia-331 driver.
Comment 1 Christoph Feck 2014-12-20 00:58:11 UTC
Please add the backtrace for the crash. For more information, please see https://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 2 Jan Mulders 2014-12-23 21:11:23 UTC
Application: muon-updater (2.2.0)
KDE Platform Version: 4.13.3
Qt Version: 4.8.6
Operating System: Linux 3.13.0-43-generic x86_64
Distribution: Ubuntu 14.04.1 LTS

-- Backtrace:
Application: Muon beheerder voor bijwerken (muon-updater), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f38e9b6c7c0 (LWP 2456))]

Thread 2 (Thread 0x7f38d5d18700 (LWP 2458)):
#0  0x00007f38e71c3bad in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f38e408ffe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f38e40900ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f38e794a7be in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f38e791c0af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f38e791c3a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f38e7818c5f in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f38e78fd823 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f38e781b32f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f38e456f182 in start_thread (arg=0x7f38d5d18700) at pthread_create.c:312
#10 0x00007f38e71d0efd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f38e9b6c7c0 (LWP 2456)):
[KCrash Handler]
#5  0x00007f38ced18bca in pkgDepCache::Update(OpProgress*) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#6  0x00007f38ced1910c in pkgDepCache::Init(OpProgress*) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#7  0x00007f38ced47050 in pkgCacheFile::BuildDepCache(OpProgress*) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#8  0x00007f38ced470b2 in pkgCacheFile::Open(OpProgress*, bool) () from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#9  0x00007f38cf5356e3 in QApt::Backend::reloadCache() () from /usr/lib/libqapt.so.2
#10 0x00007f38cf5364de in QApt::Backend::init() () from /usr/lib/libqapt.so.2
#11 0x00007f38cf30f5cb in QAptActions::setBackend(QApt::Backend*) () from /usr/lib/libmuonapt.so
#12 0x00007f38cfddbf91 in ApplicationBackend::initBackend() () from /usr/lib/kde4/muon-appsbackend.so
#13 0x00007f38cfddb045 in ?? () from /usr/lib/kde4/muon-appsbackend.so
#14 0x00007f38e793187a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#15 0x00007f38e793a70a in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#16 0x00007f38e7935a31 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#17 0x00007f38e830fe2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#18 0x00007f38e83164a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x00007f38e901ad1a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#20 0x00007f38e791d4dd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#21 0x00007f38e794d323 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#22 0x00007f38e794a5f1 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#23 0x00007f38e408fe04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f38e4090048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f38e40900ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f38e794a7a1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#27 0x00007f38e83b1bb6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#28 0x00007f38e791c0af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#29 0x00007f38e791c3a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#30 0x00007f38e7921b79 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#31 0x000000000040ce11 in ?? ()
#32 0x00007f38e70f7ec5 in __libc_start_main (main=0x40ca30, argc=5, argv=0x7fff46148e38, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff46148e28) at libc-start.c:287
#33 0x000000000040ce84 in _start ()
Comment 3 Christoph Feck 2014-12-23 22:37:28 UTC
Thanks for the update, reassigning.
Comment 4 Harald Sitter 2014-12-28 15:22:14 UTC
That crash appears to be deep in apt, so most likely installing the nvidia driver somehow screwed up apt itself, which is entirely weird :O

Should it be reproducible by installing the nvidia driver I'd urge you to report a bug against apt with this command:

ubuntu-bug apt
Comment 5 Jan Mulders 2015-01-02 20:25:37 UTC
Even "apt-get check" results in a segmentation fault.

Triggered by an old question-and-answer on stackexchange, I tried running "apt-get clean".
After that, no crash happened anymore. Problem solved.