Bug 175535

Summary: kded4 segfaults on log in
Product: [Unmaintained] solid Reporter: Volker Hemmann <volkerarmin>
Component: powermanagement-daemonAssignee: Dario Freddi <drf>
Status: RESOLVED FIXED    
Severity: crash CC: dpalacio
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Volker Hemmann 2008-11-19 00:34:27 UTC
Version:            (using Devel)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    Compiled sources

for all svn builds I tried in the last 7 days (circa) I get the same error:
kded4 crashs on log in.

The crash log looks like this:
cat kded4.kcrash 
Anwendung: KDE-Dienst (kded4), Signal SIGSEGV
0x000000315549fbe0 in __nanosleep_nocancel () from /lib/libc.so.6

Thread 1 (Thread 0x7fab9ac37750 (LWP 8408)):
[KCrash Handler]                            
#5  0x00007fab9890f8d0 in vtable for PowerDevilDaemon ()
   from /usr/kde/live/lib64/kde4/kded_powerdevil.so     
#6  0x000000315d22f1a5 in QDBusAbstractInterface::callWithArgumentList ()
   from /usr/lib64/qt4/libQtDBus.so.4                                    
#7  0x000000315d230e7b in QDBusAbstractInterface::call ()                
   from /usr/lib64/qt4/libQtDBus.so.4                                    
#8  0x000000315d2310f1 in QDBusAbstractInterface::call ()                
   from /usr/lib64/qt4/libQtDBus.so.4                                    
#9  0x00007fab98035a9a in HalPower::brightness ()                        
   from /usr/kde/4.1/lib64/kde4/solid_hal_power.so                       
#10 0x00007fab984c9d3b in Solid::Control::PowerManager::brightnessControlsAvailable () from /usr/kde/live/lib64/libsolidcontrol.so.4                                                                  
#11 0x00007fab984caf45 in Solid::Control::PowerManager::setBrightness ()                           
   from /usr/kde/live/lib64/libsolidcontrol.so.4                                                   
#12 0x00007fab986f709f in PowerDevilDaemon::applyProfile ()
   from /usr/kde/live/lib64/kde4/kded_powerdevil.so
#13 0x00007fab986fbe13 in PowerDevilDaemon::PowerDevilDaemon ()
   from /usr/kde/live/lib64/kde4/kded_powerdevil.so
#14 0x00007fab986fdd87 in KPluginFactory::createInstance<PowerDevilDaemon, QObject> () from /usr/kde/live/lib64/kde4/kded_powerdevil.so
#15 0x00007fab9b0ea834 in KPluginFactory::create ()
   from /usr/kde/live/lib64/libkdecore.so.5
#16 0x00007fab9bdffe4e in ?? () from /usr/kde/live/lib64/libkdeinit4_kded4.so
#17 0x00007fab9be0213d in ?? () from /usr/kde/live/lib64/libkdeinit4_kded4.so
#18 0x00007fab9be041c0 in ?? () from /usr/kde/live/lib64/libkdeinit4_kded4.so
#19 0x00007fab9b584ea6 in ?? () from /usr/kde/live/lib64/libkdeui.so.5
#20 0x00007fab9b5832c2 in ?? () from /usr/kde/live/lib64/libkdeui.so.5
#21 0x000000315d222fa3 in ?? () from /usr/lib64/qt4/libQtDBus.so.4
#22 0x000000315d224182 in ?? () from /usr/lib64/qt4/libQtDBus.so.4
#23 0x000000315d224861 in ?? () from /usr/lib64/qt4/libQtDBus.so.4
#24 0x000000315d224b68 in ?? () from /usr/lib64/qt4/libQtDBus.so.4
#25 0x000000315c55279d in QObject::event () from /usr/lib64/qt4/libQtCore.so.4
#26 0x000000362d397eb9 in QApplication::event ()
   from /usr/lib64/qt4/libQtGui.so.4
#27 0x000000362d3928ed in QApplicationPrivate::notify_helper ()
   from /usr/lib64/qt4/libQtGui.so.4
#28 0x000000362d39a4ca in QApplication::notify ()
   from /usr/lib64/qt4/libQtGui.so.4
#29 0x00007fab9b57c68b in KApplication::notify ()
   from /usr/kde/live/lib64/libkdeui.so.5
#30 0x000000315c543aa0 in QCoreApplication::notifyInternal ()
   from /usr/lib64/qt4/libQtCore.so.4
#31 0x000000315c544651 in QCoreApplicationPrivate::sendPostedEvents ()
   from /usr/lib64/qt4/libQtCore.so.4
#32 0x000000362d41feaa in ?? () from /usr/lib64/qt4/libQtGui.so.4
#33 0x000000315c542402 in QEventLoop::processEvents ()
   from /usr/lib64/qt4/libQtCore.so.4
#34 0x000000315c54258d in QEventLoop::exec ()
   from /usr/lib64/qt4/libQtCore.so.4
#35 0x000000315c54490d in QCoreApplication::exec ()
   from /usr/lib64/qt4/libQtCore.so.4
#36 0x00007fab9be02e75 in kdemain ()
   from /usr/kde/live/lib64/libkdeinit4_kded4.so
#37 0x000000315541e486 in __libc_start_main () from /lib/libc.so.6
#38 0x0000000000400879 in _start ()
Comment 1 Dario Freddi 2008-11-24 20:35:43 UTC
This looks more a problem with solid than with PowerDevil itself, so moving it
Comment 2 Kevin Ottens 2008-11-25 18:44:34 UTC
Hmmm, backtrace is incomplete (stops at frame #5), also it says:
#5  0x00007fab9890f8d0 in vtable for PowerDevilDaemon ()
   from /usr/kde/live/lib64/kde4/kded_powerdevil.so     

Looks like it's crashing into the kded module indeed (to be confirmed with a more complete backtrace though).
Comment 3 Volker Hemmann 2008-11-25 19:18:18 UTC
hm, I updated to latest svn yesterday and kded stopped crashing.
Comment 4 David Palacio 2008-11-27 20:01:39 UTC
It has been crashing for me too for more than two weeks already, though the culprit is Kephal. Sometimes I cannot use cookies in Konqueror. My G++ version is 4.3.2 (Debian 4.3.2-1)

Application: KDE Daemon (kded4), signal SIGSEGV
0x00007f3617232fc0 in __nanosleep_nocancel () from /lib/libc.so.6

Thread 1 (Thread 0x7f361bc506f0 (LWP 14876)):
[KCrash Handler]
#5  0x00007f361095895e in Kephal::XMLConfigurations::activateLayout (this=0x1216e40, screensLayout=@0x7fff23d8cc80, outputScreens=@0x7fff23d8cc90, outputSizes=@0x7fff23d8cb90)
    at /home/kde/src/KDE/kdebase/workspace/libs/kephal/configurations/xml/xmlconfigurations.cpp:1123
#6  0x00007f3610958cfc in Kephal::XMLConfigurations::activateLayout (this=0x1216e40, screensLayout=@0x7fff23d8cc80, outputScreens=@0x7fff23d8cc90)
    at /home/kde/src/KDE/kdebase/workspace/libs/kephal/configurations/xml/xmlconfigurations.cpp:1103
#7  0x00007f361095a36d in Kephal::XMLConfigurations::activate (this=0x1216e40, configuration=0x114f860)
    at /home/kde/src/KDE/kdebase/workspace/libs/kephal/configurations/xml/xmlconfigurations.cpp:1015
#8  0x00007f36109347de in Kephal::XMLConfigurations::qt_metacall (this=0x1216e40, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff23d8cf00)
    at /home/kde/build/KDE/kdebase/workspace/libs/kephal/kded_kephal/moc_xmlconfigurations.cpp:130
#9  0x00007f361a4716d4 in QMetaObject::activate (sender=0x114f860, from_signal_index=<value optimized out>, to_signal_index=5, argv=0x0) at kernel/qobject.cpp:3031
#10 0x00007f36109337ef in Kephal::XMLConfiguration::activate (this=0x114f860, _t1=0x114f860) at /home/kde/build/KDE/kdebase/workspace/libs/kephal/kded_kephal/moc_xmlconfigurations.cpp:77
#11 0x00007f361095dec3 in Kephal::XMLConfiguration::activate (this=0x114f860) at /home/kde/src/KDE/kdebase/workspace/libs/kephal/configurations/xml/xmlconfigurations.cpp:61
#12 0x00007f3610935dd2 in KephalD::activateConfiguration (this=0x1132ed0) at /home/kde/src/KDE/kdebase/workspace/libs/kephal/kded_kephal/kephald.cpp:164
#13 0x00007f36109365c7 in KephalD::init (this=0x1132ed0) at /home/kde/src/KDE/kdebase/workspace/libs/kephal/kded_kephal/kephald.cpp:112
#14 0x00007f36109369b0 in KephalD (this=0x1132ed0, parent=0xffcfe0) at /home/kde/src/KDE/kdebase/workspace/libs/kephal/kded_kephal/kephald.cpp:66
#15 0x00007f3610937f2b in KPluginFactory::createInstance<KephalD, QObject> (parentWidget=0x0, parent=0xffcfe0, args=@0x7fff23d8d4f0) at /home/kde/KDE/include/kpluginfactory.h:461
#16 0x00007f361ab84168 in KPluginFactory::create (this=0x11f1780, iface=0x7f361abc6ea0 "KDEDModule", parentWidget=0x0, parent=0xffcfe0, args=@0x7fff23d8d4f0, keyword=@0x7fff23d8d330)
    at /home/kde/src/KDE/kdelibs/kdecore/util/kpluginfactory.cpp:191
#17 0x00007f361b96aeac in KPluginFactory::create<KDEDModule> (this=0x11f1780, parent=0xffcfe0, args=@0x7fff23d8d4f0) at /home/kde/src/KDE/kdelibs/kdecore/util/kpluginfactory.h:491
#18 0x00007f361b9643ab in Kded::loadModule (this=0xffcfe0, s=@0x7fff23d8d5b0, onDemand=true) at /home/kde/src/KDE/kdelibs/kded/kded.cpp:376
#19 0x00007f361b964668 in Kded::loadModule (this=0xffcfe0, obj=@0x7fff23d8d610, onDemand=true) at /home/kde/src/KDE/kdelibs/kded/kded.cpp:330
#20 0x00007f361b964ef7 in Kded::messageFilter (message=@0x7fff23d8d800) at /home/kde/src/KDE/kdelibs/kded/kded.cpp:191
#21 0x00007f361a76c2fb in QDBusConnectionPrivate::handleMessage (this=0xff5400, amsg=@0x7fff23d8d800) at qdbusintegrator.cpp:484
#22 0x00007f361a76c7cc in qDBusSignalFilter (connection=<value optimized out>, message=<value optimized out>, data=<value optimized out>) at qdbusintegrator.cpp:475
#23 0x00007f3612a794db in dbus_connection_dispatch () from /usr/lib/libdbus-1.so.3
#24 0x00007f361a75f4e7 in QDBusConnectionPrivate::doDispatch (this=0xff5400) at ./qdbus_symbols_p.h:97
#25 0x00007f361a79da98 in QDBusConnectionPrivate::qt_metacall (this=0xff5400, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xff6c00)
    at .moc/release-shared/moc_qdbusconnection_p.cpp:87
#26 0x00007f361a46c345 in QObject::event (this=0xff5400, e=0xff67c0) at kernel/qobject.cpp:1155
#27 0x00007f3618fc4a5d in QApplicationPrivate::notify_helper (this=0xffe0f0, receiver=0xff5400, e=0xff67c0) at kernel/qapplication.cpp:3803
#28 0x00007f3618fcc7da in QApplication::notify (this=0x7fff23d8e390, receiver=0xff5400, e=0xff67c0) at kernel/qapplication.cpp:3768
#29 0x00007f361b054b6a in KApplication::notify (this=0x7fff23d8e390, receiver=0xff5400, event=0xff67c0) at /home/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#30 0x00007f361a45d381 in QCoreApplication::notifyInternal (this=0x7fff23d8e390, receiver=0xff5400, event=0xff67c0) at kernel/qcoreapplication.cpp:587
#31 0x00007f361a45e01a in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xfdfe70) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#32 0x00007f361a485a83 in postEventSourceDispatch (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:214
#33 0x00007f361507b78b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#34 0x00007f361507ef5d in ?? () from /usr/lib/libglib-2.0.so.0
#35 0x00007f361507f11b in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#36 0x00007f361a48570f in QEventDispatcherGlib::processEvents (this=0xffe060, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319
#37 0x00007f361905644f in QGuiEventDispatcherGlib::processEvents (this=0x7f36174e39e0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198
#38 0x00007f361a45bca2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 601416176}) at kernel/qeventloop.cpp:143
#39 0x00007f361a45be2d in QEventLoop::exec (this=0x7fff23d8e230, flags={i = 601416256}) at kernel/qeventloop.cpp:194
#40 0x00007f361a45e2dd in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#41 0x00007f361b96697e in kdemain (argc=1, argv=0x7fff23d8e728) at /home/kde/src/KDE/kdelibs/kded/kded.cpp:922
#42 0x0000000000400837 in main (argc=1, argv=0x7fff23d8e728) at /home/kde/build/KDE/kdelibs/kded/kded4_dummy.cpp:3

Comment 5 Dario Freddi 2008-12-04 00:26:10 UTC
Please report Kephal issues in a different bug report. I am marking this as fixed, please reopen if the problem should reoccur