Bug 240906

Summary: crash while killing applications
Product: [Unmaintained] kdelibs Reporter: Geoffray Levasseur <jeff.levasseur>
Component: kdecoreAssignee: Dario Freddi <drf>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: aloisiojr, drf, johnflux
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Geoffray Levasseur 2010-06-06 16:16:24 UTC
Application: ksysguard (4.4.82 (KDE 4.4.82 (KDE 4.5 >= 20100601)))
KDE Platform Version: 4.4.82 (KDE 4.4.82 (KDE 4.5 >= 20100601)) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-5-amd64 x86_64
Distribution: Debian GNU/Linux 5.0.4 (lenny)

-- Information about the crash:
- What I was doing when the application crashed:
Each time I want to kill one (or more) process KSystemGuard crash.

The crash can be reproduced every time.

-- Backtrace:
Application: System Monitor (kdeinit4), signal: Aborted
[KCrash Handler]
#6  0x00007f37ad852175 in raise () from /lib/libc.so.6
#7  0x00007f37ad854f80 in abort () from /lib/libc.so.6
#8  0x00007f37ad8882bb in ?? () from /lib/libc.so.6
#9  0x00007f37ad891b16 in ?? () from /lib/libc.so.6
#10 0x00007f37967dfce6 in PolkitQt::Context::Private::init() () from /usr/lib/libpolkit-qt-core.so.0
#11 0x00007f37967e16dd in PolkitQt::Context::hasError() const () from /usr/lib/libpolkit-qt-core.so.0
#12 0x00007f37967db8d5 in PolkitQt::Auth::isCallerAuthorized(_PolKitAction*, long long, bool) () from /usr/lib/libpolkit-qt-core.so.0
#13 0x00007f37967dba2d in PolkitQt::Auth::isCallerAuthorized(QString const&, long long, bool) () from /usr/lib/libpolkit-qt-core.so.0
#14 0x00007f37969e6f96 in KAuth::PolicyKitBackend::actionStatus (this=<value optimized out>, action=...) at /share/src/kde/KDE/kdelibs/kdecore/auth/backends/policykit/PolicyKitBackend.cpp:60
#15 0x00007f37969e70db in KAuth::PolicyKitBackend::setupAction (this=0x37e8ec0, action=...) at /share/src/kde/KDE/kdelibs/kdecore/auth/backends/policykit/PolicyKitBackend.cpp:54
#16 0x00007f379f0f1d5c in KSysGuardProcessList::killProcesses (this=0x2510830, pids=<value optimized out>, sig=15)
    at /share/src/kde/KDE/kdebase/workspace/libs/ksysguard/processui/ksysguardprocesslist.cpp:1203
#17 0x00007f379f0f237e in KSysGuardProcessList::killSelectedProcesses (this=<value optimized out>) at /share/src/kde/KDE/kdebase/workspace/libs/ksysguard/processui/ksysguardprocesslist.cpp:1261
#18 0x00007f379f0f4a0d in KSysGuardProcessList::actionTriggered (this=0x2510830, object=<value optimized out>)
    at /share/src/kde/KDE/kdebase/workspace/libs/ksysguard/processui/ksysguardprocesslist.cpp:498
#19 0x00007f379f0f4cd5 in KSysGuardProcessList::qt_metacall (this=0x2510830, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffd8e8f3c0)
    at /share/src/build/kde/KDE/kdebase/workspace/libs/ksysguard/processui/ksysguardprocesslist.moc:178
#20 0x00007f37af60fc3f in QMetaObject::activate (sender=0x249ad40, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3293
#21 0x00007f37af614f02 in QSignalMapper::mapped (this=0x7d5e, _t1=0x2327540) at .moc/release-shared/moc_qsignalmapper.cpp:122
#22 0x00007f37af61628b in QSignalMapper::map (this=0x249ad40, sender=0x2327540) at kernel/qsignalmapper.cpp:272
#23 0x00007f37af616440 in QSignalMapper::qt_metacall (this=0x249ad40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffd8e8f550) at .moc/release-shared/moc_qsignalmapper.cpp:87
#24 0x00007f37af60fc3f in QMetaObject::activate (sender=0x2327540, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3293
#25 0x00007f37ae51e702 in QAction::triggered (this=0x7d5e, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#26 0x00007f37ae52077b in QAction::activate (this=0x2327540, event=<value optimized out>) at kernel/qaction.cpp:1255
#27 0x00007f37ae95e5ad in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0x2327540, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1011
#28 0x00007f37ae96412a in QMenuPrivate::activateAction (this=0x25ed800, action=0x2327540, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1103
#29 0x00007f37ae57ac32 in QWidget::event (this=0x24dc300, event=0x7fffd8e901a0) at kernel/qwidget.cpp:7998
#30 0x00007f37ae9662eb in QMenu::event (this=0x24dc300, e=0x7fffd8e901a0) at widgets/qmenu.cpp:2414
#31 0x00007f37ae5248fc in QApplicationPrivate::notify_helper (this=0x2314410, receiver=0x24dc300, e=0x7fffd8e901a0) at kernel/qapplication.cpp:4300
#32 0x00007f37ae52b5ab in QApplication::notify (this=0x2313d70, receiver=0x24dc300, e=0x7fffd8e901a0) at kernel/qapplication.cpp:3865
#33 0x00007f37b05ba141 in KApplication::notify (this=0x2313d70, receiver=0x24dc300, event=0x7fffd8e901a0) at /share/src/kde/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#34 0x00007f37af5fcf0c in QCoreApplication::notifyInternal (this=0x2313d70, receiver=0x24dc300, event=0x7fffd8e901a0) at kernel/qcoreapplication.cpp:704
#35 0x00007f37ae52a78e in QCoreApplication::sendEvent (receiver=0x24dc300, event=0x7fffd8e901a0, alienWidget=0x0, nativeWidget=0x24dc300, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#36 QApplicationPrivate::sendMouseEvent (receiver=0x24dc300, event=0x7fffd8e901a0, alienWidget=0x0, nativeWidget=0x24dc300, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, 
    spontaneous=true) at kernel/qapplication.cpp:2965
#37 0x00007f37ae5aa83d in QETWidget::translateMouseEvent (this=0x24dc300, event=<value optimized out>) at kernel/qapplication_x11.cpp:4302
#38 0x00007f37ae5a8d2c in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffd8e90920) at kernel/qapplication_x11.cpp:3501
#39 0x00007f37ae5d47d2 in x11EventSourceDispatch (s=0x2318210, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#40 0x00007f37aa4d36c2 in g_main_dispatch (context=0x2317040) at /tmp/buildd/glib2.0-2.24.1/glib/gmain.c:1960
#41 IA__g_main_context_dispatch (context=0x2317040) at /tmp/buildd/glib2.0-2.24.1/glib/gmain.c:2513
#42 0x00007f37aa4d7538 in g_main_context_iterate (context=0x2317040, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>)
    at /tmp/buildd/glib2.0-2.24.1/glib/gmain.c:2591
#43 0x00007f37aa4d76ec in IA__g_main_context_iteration (context=0x2317040, may_block=1) at /tmp/buildd/glib2.0-2.24.1/glib/gmain.c:2654
#44 0x00007f37af626363 in QEventDispatcherGlib::processEvents (this=0x2314370, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#45 0x00007f37ae5d43ce in QGuiEventDispatcherGlib::processEvents (this=0x7d5e, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#46 0x00007f37af5fb832 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#47 0x00007f37af5fbc0c in QEventLoop::exec (this=0x7fffd8e90c40, flags=) at kernel/qeventloop.cpp:201
#48 0x00007f37af5ff94b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#49 0x00007f379f385998 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /share/src/kde/KDE/kdebase/workspace/ksysguard/gui/ksysguard.cc:582
#50 0x0000000000407966 in launch (argc=3, _name=<value optimized out>, args=<value optimized out>, cwd=<value optimized out>, envc=<value optimized out>, envs=<value optimized out>, reset_env=false, 
    tty=0x0, avoid_loops=false, startup_id_str=0x40b8ac "0") at /share/src/kde/KDE/kdelibs/kinit/kinit.cpp:723
#51 0x0000000000408367 in handle_launcher_request (sock=8, who=<value optimized out>) at /share/src/kde/KDE/kdelibs/kinit/kinit.cpp:1215
#52 0x0000000000408cca in handle_requests (waitForPid=0) at /share/src/kde/KDE/kdelibs/kinit/kinit.cpp:1408
#53 0x0000000000409158 in main (argc=4, argv=<value optimized out>, envp=<value optimized out>) at /share/src/kde/KDE/kdelibs/kinit/kinit.cpp:1892

Reported using DrKonqi
Comment 1 John Tapsell 2010-06-07 02:52:41 UTC
Maybe drf might know
Comment 2 Dario Freddi 2010-06-07 10:05:12 UTC
This is probably due to the fact that you do not have polkit-qt 0.9.x (not 0.95+!!) installed. Can you please check your installation?
Comment 3 Dario Freddi 2010-06-07 10:07:22 UTC
P.S.: This bug is related just to KAuth and not KSysGuard, and there are also some duplicates of this around.
Comment 4 Christoph Feck 2010-08-25 22:36:46 UTC
*** Bug 249039 has been marked as a duplicate of this bug. ***
Comment 5 Arathorn 2010-09-17 09:34:54 UTC
Created attachment 51745 [details]
New crash information added by DrKonqi

systemsettings (1.0) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

- What I was doing when the application crashed:
Opening the Login Screen section of Systemsettings, when I had started Systemsettings as root. Opening the same section without a rooted Systemsettings gives no crash, but applying any changes after changing the preselected user didn't prompt kdesu, making the operation fail.

P.S. very similar to bug 249039 (which is a duplicate of this one).

-- Backtrace (Reduced):
#7  0x003b1bfb in KCModule::setNeedsAuthorization (this=0x8e75380, needsAuth=true) at ../../kdeui/widgets/kcmodule.cpp:141
#8  0x0237d869 in KDModule::KDModule (this=0x8e75380, parent=0x8d5b600) at ../../../kcontrol/kdm/main.cpp:275
#9  0x023814fd in QObject* KPluginFactory::createInstance<KDModule, QWidget>(QWidget*, QObject*, QList<QVariant> const&) () from /usr/lib/kde4/kcm_kdm.so
#10 0x006e9450 in KPluginFactory::create (this=0x8e3fe58, iface=0x49baa0 "KCModule", parentWidget=0x0, parent=0x8d5b600, args=..., keyword=...) at ../../kdecore/util/kpluginfactory.cpp:191
#11 0x009b1ae8 in create<KCModule> (mod=..., report=KCModuleLoader::Inline, parent=0x8d5b600, args=...) at ../../kdecore/util/kpluginfactory.h:515