Bug 334947

Summary: Crash when attaching a second monitor
Product: [Unmaintained] kdelibs Reporter: Ettore Atalan <atalanttore>
Component: kdedAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: 85pando
Priority: NOR Keywords: drkonqi
Version: 4.13.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Ettore Atalan 2014-05-17 14:10:06 UTC
Application: kded4 (4.13.1)
KDE Platform Version: 4.13.1
Qt Version: 4.8.6
Operating System: Linux 3.13.0-27-generic x86_64
Distribution: Ubuntu 14.04 LTS

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

I was attaching a second monitor (Philips television) to my laptop via HDMI.

-- Backtrace:
Application: KDE-Dienst (kded4), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f16415927c0 (LWP 2765))]

Thread 6 (Thread 0x7f1621ca3700 (LWP 2767)):
#0  0x00007f163c5e87ee in __pthread_mutex_unlock_usercnt (decr=1, mutex=0x7f161c000a60) at pthread_mutex_unlock.c:57
#1  __GI___pthread_mutex_unlock (mutex=0x7f161c000a60) at pthread_mutex_unlock.c:310
#2  0x00007f163bf449c1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f163bf02680 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f163bf02f03 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f163bf030ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f164023e7be in QEventDispatcherGlib::processEvents (this=0x7f161c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#7  0x00007f16402100af in QEventLoop::processEvents (this=this@entry=0x7f1621ca2e20, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f16402103a5 in QEventLoop::exec (this=this@entry=0x7f1621ca2e20, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007f164010cc5f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:537
#10 0x00007f164010f32f in QThreadPrivate::start (arg=0x1883500) at thread/qthread_unix.cpp:349
#11 0x00007f163c5e5182 in start_thread (arg=0x7f1621ca3700) at pthread_create.c:312
#12 0x00007f163ee1230d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f160bfff700 (LWP 2776)):
#0  0x00007f163bf4462a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f163bf44989 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f163bf02bc6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f163bf03048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f163bf030ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f164023e7be in QEventDispatcherGlib::processEvents (this=0x7f16000008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#6  0x00007f16402100af in QEventLoop::processEvents (this=this@entry=0x7f160bffede0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f16402103a5 in QEventLoop::exec (this=this@entry=0x7f160bffede0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f164010cc5f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:537
#9  0x00007f1624940027 in KCupsConnection::run() () from /usr/lib/libkcupslib.so
#10 0x00007f164010f32f in QThreadPrivate::start (arg=0x177ff90) at thread/qthread_unix.cpp:349
#11 0x00007f163c5e5182 in start_thread (arg=0x7f160bfff700) at pthread_create.c:312
#12 0x00007f163ee1230d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f160b7fe700 (LWP 2777)):
#0  0x00007f163c5e87ee in __pthread_mutex_unlock_usercnt (decr=1, mutex=0x7f15f8000a60) at pthread_mutex_unlock.c:57
#1  __GI___pthread_mutex_unlock (mutex=0x7f15f8000a60) at pthread_mutex_unlock.c:310
#2  0x00007f163bf449c1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f163bf028f9 in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f163bf02f52 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f163bf030ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f164023e7be in QEventDispatcherGlib::processEvents (this=0x7f15f80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#7  0x00007f16402100af in QEventLoop::processEvents (this=this@entry=0x7f160b7fde20, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f16402103a5 in QEventLoop::exec (this=this@entry=0x7f160b7fde20, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007f164010cc5f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:537
#10 0x00007f164010f32f in QThreadPrivate::start (arg=0x15f2650) at thread/qthread_unix.cpp:349
#11 0x00007f163c5e5182 in start_thread (arg=0x7f160b7fe700) at pthread_create.c:312
#12 0x00007f163ee1230d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f160affd700 (LWP 2779)):
#0  0x00007f163bf4462a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f163bf44989 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f163bf02a6c in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f163bf02f7b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f163bf030ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f164023e7be in QEventDispatcherGlib::processEvents (this=0x7f15fc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#6  0x00007f16402100af in QEventLoop::processEvents (this=this@entry=0x7f160affcde0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f16402103a5 in QEventLoop::exec (this=this@entry=0x7f160affcde0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f164010cc5f in QThread::exec (this=this@entry=0x177e690) at thread/qthread.cpp:537
#9  0x00007f16401f1823 in QInotifyFileSystemWatcherEngine::run (this=0x177e690) at io/qfilesystemwatcher_inotify.cpp:265
#10 0x00007f164010f32f in QThreadPrivate::start (arg=0x177e690) at thread/qthread_unix.cpp:349
#11 0x00007f163c5e5182 in start_thread (arg=0x7f160affd700) at pthread_create.c:312
#12 0x00007f163ee1230d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f1609c00700 (LWP 2792)):
#0  0x00007f163ee04fbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f163bf02fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f163bf030ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f164023e7be in QEventDispatcherGlib::processEvents (this=0x7f15e80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007f16402100af in QEventLoop::processEvents (this=this@entry=0x7f1609bffde0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f16402103a5 in QEventLoop::exec (this=this@entry=0x7f1609bffde0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f164010cc5f in QThread::exec (this=this@entry=0x1b266b0) at thread/qthread.cpp:537
#7  0x00007f16401f1823 in QInotifyFileSystemWatcherEngine::run (this=0x1b266b0) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f164010f32f in QThreadPrivate::start (arg=0x1b266b0) at thread/qthread_unix.cpp:349
#9  0x00007f163c5e5182 in start_thread (arg=0x7f1609c00700) at pthread_create.c:312
#10 0x00007f163ee1230d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f16415927c0 (LWP 2765)):
[KCrash Handler]
#6  0x00007f1620c2f7b0 in KScreen::Output::id() const () from /usr/lib/libkscreen.so.1
#7  0x00007f16207ed874 in XRandRConfig::toKScreenConfig() const () from /usr/lib/kde4/plugins/kscreen/KSC_XRandR.so
#8  0x00007f16207ea491 in XRandR::config() const () from /usr/lib/kde4/plugins/kscreen/KSC_XRandR.so
#9  0x00007f1620c2bb89 in KScreen::Config::current() () from /usr/lib/libkscreen.so.1
#10 0x00007f1620e46149 in Serializer::currentId () at /build/buildd/kscreen-1.0.2.1/kded/serializer.cpp:40
#11 0x00007f1620e46672 in Serializer::configExists () at /build/buildd/kscreen-1.0.2.1/kded/serializer.cpp:61
#12 0x00007f1620e45532 in KScreenDaemon::applyConfig (this=0x189e5b0) at /build/buildd/kscreen-1.0.2.1/kded/daemon.cpp:93
#13 0x00007f164022587a in QMetaObject::activate (sender=0x18bec10, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#14 0x00007f1620c30ac5 in KScreen::Output::isConnectedChanged() () from /usr/lib/libkscreen.so.1
#15 0x00007f1620c3000b in KScreen::Output::setConnected(bool) () from /usr/lib/libkscreen.so.1
#16 0x00007f16207f8016 in XRandROutput::updateKScreenOutput(KScreen::Output*) const () from /usr/lib/kde4/plugins/kscreen/KSC_XRandR.so
#17 0x00007f16207eda96 in XRandRConfig::updateKScreenConfig(KScreen::Config*) const () from /usr/lib/kde4/plugins/kscreen/KSC_XRandR.so
#18 0x00007f16207ea5ac in XRandR::updateConfig(KScreen::Config*) const () from /usr/lib/kde4/plugins/kscreen/KSC_XRandR.so
#19 0x00007f1620c2de2d in KScreen::ConfigMonitor::Private::updateConfigs() () from /usr/lib/libkscreen.so.1
#20 0x00007f1620c2e14e in KScreen::ConfigMonitor::notifyUpdate() () from /usr/lib/libkscreen.so.1
#21 0x00007f16207ea3b7 in XRandR::updateOutput(unsigned long) () from /usr/lib/kde4/plugins/kscreen/KSC_XRandR.so
#22 0x00007f16207eacb5 in XRandR::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/kde4/plugins/kscreen/KSC_XRandR.so
#23 0x00007f164022587a in QMetaObject::activate (sender=0x18bac90, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff559cda90) at kernel/qobject.cpp:3539
#24 0x00007f16207ed0cb in XRandRX11Helper::outputChanged(unsigned long) () from /usr/lib/kde4/plugins/kscreen/KSC_XRandR.so
#25 0x00007f16207ecab4 in XRandRX11Helper::x11Event(_XEvent*) () from /usr/lib/kde4/plugins/kscreen/KSC_XRandR.so
#26 0x00007f1640fb6eb8 in publicX11Event (e=0x7fff559cdc40, this=<optimized out>) at ../../kdeui/kernel/ksystemeventfilter.cpp:43
#27 KSystemEventFilterPrivate::filterEvent (this=0x188f940, message=0x7fff559cdc40) at ../../kdeui/kernel/ksystemeventfilter.cpp:102
#28 0x00007f164020335e in QAbstractEventDispatcher::filterEvent (this=0x0, message=0x7fff559cd438, message@entry=0x7fff559cdc40) at kernel/qabstracteventdispatcher.cpp:542
#29 0x00007f163f64ca30 in x11EventSourceDispatch (s=0x15f4930, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:143
#30 0x00007f163bf02e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f163bf03048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f163bf030ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f164023e7be in QEventDispatcherGlib::processEvents (this=0x154e6d0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#34 0x00007f163f64cbb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007f16402100af in QEventLoop::processEvents (this=this@entry=0x7fff559ce010, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007f16402103a5 in QEventLoop::exec (this=this@entry=0x7fff559ce010, flags=...) at kernel/qeventloop.cpp:204
#37 0x00007f1640215b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#38 0x00007f163f5a937c in QApplication::exec () at kernel/qapplication.cpp:3828
#39 0x00007f162a320d1b in kdemain (argc=1, argv=0x15cfff0) at ../../kded/kded.cpp:940
#40 0x00000000004083ee in launch (argc=argc@entry=1, _name=_name@entry=0x40afc7 "kded4", args=args@entry=0x0, cwd=cwd@entry=0x0, envc=envc@entry=0, envs=<optimized out>, envs@entry=0x0, reset_env=reset_env@entry=false, tty=tty@entry=0x0, avoid_loops=avoid_loops@entry=false, startup_id_str=startup_id_str@entry=0x40ae56 "0") at ../../kinit/kinit.cpp:738
#41 0x00000000004059a3 in main (argc=4, argv=<optimized out>, envp=0x7fff559ce8a0) at ../../kinit/kinit.cpp:1853

Reported using DrKonqi
Comment 1 Jekyll Wu 2014-05-17 15:08:27 UTC

*** This bug has been marked as a duplicate of bug 323923 ***
Comment 2 85pando 2014-06-17 06:56:55 UTC
Created attachment 87230 [details]
New crash information added by DrKonqi

plasma-desktop (4.11.9) on KDE Platform 4.13.1 using Qt 4.8.6

- What I was doing when the application crashed:

Plug in external monitor (iMac 26'') via DisplayPort. KDE correctly adjusts settings to prior settings, then kde shell crashes and restarts.

-- Backtrace (Reduced):
#5  0x00007f7ca7d26990 in KScreen::Output::id() const () from /usr/lib/x86_64-linux-gnu/libkscreen.so.1
[...]
#14 0x00007f7ccf82729e in QAbstractEventDispatcher::filterEvent(void*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
[...]
#19 0x00007f7ccf862655 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
[...]
#21 0x00007f7ccf833fef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#22 0x00007f7ccf8342e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4