Bug 215152 - Remote widget's policies crash [PolkitQt::Context::Private::init, PolkitQt::Context::hasError, PolkitQt::Auth::isCallerAuthorized]
Summary: Remote widget's policies crash [PolkitQt::Context::Private::init, PolkitQt::C...
Status: RESOLVED DUPLICATE of bug 200953
Alias: None
Product: policykit-kde-agent-1
Classification: Plasma
Component: kcm_auth (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-18 17:39 UTC by Miha Čančula
Modified: 2009-11-18 18:37 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miha Čančula 2009-11-18 17:39:29 UTC
Application: systemsettings (1.0)
KDE Version: 4.3.75 (KDE 4.3.75 (KDE 4.4 >= 20091113)) (Compiled from sources)
Qt Version: 4.6.0
Operating System: Linux 2.6.31-14-generic x86_64
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
Whenever I try to open Remote widgets' policies from System Settings, System Settings crashes with the attached backtrace. From the bugtrace I suppose it has something to do with KAuth / polkit-qt. However, when I open Login Manager (anothe module that needs auth), it loads without crashing but also in non-root mode without asking me for authentication. 

 -- Backtrace:
Application: Sistemske nastavitve (systemsettings), signal: Aborted
[KCrash Handler]
#5  0x00007f504ca654b5 in raise () from /lib/libc.so.6
#6  0x00007f504ca68f50 in abort () from /lib/libc.so.6
#7  0x00007f504ca9dc97 in ?? () from /lib/libc.so.6
#8  0x00007f504caa7dd6 in ?? () from /lib/libc.so.6
#9  0x00007f5048ee25a6 in PolkitQt::Context::Private::init (this=<value optimized out>) at /home/kde-devel/kdesvn/kdesupport/polkit-qt/context.cpp:141
#10 0x00007f5048ee3f2d in PolkitQt::Context::hasError (this=0xe2c2d0) at /home/kde-devel/kdesvn/kdesupport/polkit-qt/context.cpp:277
#11 0x00007f5048ede615 in PolkitQt::Auth::isCallerAuthorized (action=0x1000410, pid=5505, revokeIfOneShot=false) at /home/kde-devel/kdesvn/kdesupport/polkit-qt/auth.cpp:119
#12 0x00007f5048ede76d in PolkitQt::Auth::isCallerAuthorized (actionId=..., pid=5505, revokeIfOneShot=6) at /home/kde-devel/kdesvn/kdesupport/polkit-qt/auth.cpp:110
#13 0x00007f504e174416 in KAuth::PolicyKitBackend::actionStatus (this=<value optimized out>, action=...) at /home/kde-devel/kdesvn/kdelibs/kdecore/auth/backends/policykit/PolicyKitBackend.cpp:58
#14 0x00007f504e174583 in KAuth::PolicyKitBackend::setupAction (this=0x89c100, action=...) at /home/kde-devel/kdesvn/kdelibs/kdecore/auth/backends/policykit/PolicyKitBackend.cpp:52
#15 0x00007f504f8ebac8 in KCModule::setNeedsAuthorization (this=0xcb4330, needsAuth=<value optimized out>) at /home/kde-devel/kdesvn/kdelibs/kdeui/widgets/kcmodule.cpp:140
#16 0x00007f502e916859 in RemoteWidgetsModule (this=0xcb4330, parent=<value optimized out>) at /home/kde-devel/kdesvn/kdebase/workspace/kcontrol/remotewidgets/remotewidgets.cpp:50
#17 0x00007f502e917c45 in KPluginFactory::createInstance<RemoteWidgetsModule, QWidget> (parentWidget=<value optimized out>, parent=<value optimized out>, args=...)
    at /usr/local/include/kpluginfactory.h:461
#18 0x00007f504e15923c in KPluginFactory::create (this=0xffcc10, iface=0x7f504f9b9ba0 "KCModule", parentWidget=<value optimized out>, parent=0x889500, args=..., keyword=<value optimized out>)
    at /home/kde-devel/kdesvn/kdelibs/kdecore/util/kpluginfactory.cpp:191
#19 0x00007f505044b9a6 in KPluginFactory::create<KCModule> (mod=..., report=KCModuleLoader::Inline, parent=0x889500, args=...) at /home/kde-devel/kdesvn/kdelibs/kdecore/util/kpluginfactory.h:515
#20 KService::createInstance<KCModule> (mod=..., report=KCModuleLoader::Inline, parent=0x889500, args=...) at /home/kde-devel/kdesvn/kdelibs/kdecore/services/kservice.h:517
#21 KService::createInstance<KCModule> (mod=..., report=KCModuleLoader::Inline, parent=0x889500, args=...) at /home/kde-devel/kdesvn/kdelibs/kdecore/services/kservice.h:494
#22 KService::createInstance<KCModule> (mod=..., report=KCModuleLoader::Inline, parent=0x889500, args=...) at /home/kde-devel/kdesvn/kdelibs/kdecore/services/kservice.h:537
#23 KCModuleLoader::loadModule (mod=..., report=KCModuleLoader::Inline, parent=0x889500, args=...) at /home/kde-devel/kdesvn/kdelibs/kutils/kcmoduleloader.cpp:89
#24 0x00007f5050450779 in KCModuleProxyPrivate::loadModule (this=0xb497b0) at /home/kde-devel/kdesvn/kdelibs/kutils/kcmoduleproxy.cpp:106
#25 0x00007f50504512a5 in KCModuleProxy::realModule (this=<value optimized out>) at /home/kde-devel/kdesvn/kdelibs/kutils/kcmoduleproxy.cpp:83
#26 0x00007f505021f9ed in ModuleView::updatePageIconHeader (this=<value optimized out>, page=0xa53d50) at /home/kde-devel/kdesvn/kdebase/workspace/systemsettings/core/ModuleView.cpp:191
#27 0x00007f50502207ef in ModuleView::addModule (this=0xb4e320, module=0xb22dc8) at /home/kde-devel/kdesvn/kdebase/workspace/systemsettings/core/ModuleView.cpp:181
#28 0x00007f5050220a62 in ModuleView::loadModule (this=0xb4e320, menuItem=<value optimized out>) at /home/kde-devel/kdesvn/kdebase/workspace/systemsettings/core/ModuleView.cpp:137
#29 0x00007f5043b40411 in IconMode::changeModule (this=0xb4c5f0, activeModule=<value optimized out>) at /home/kde-devel/kdesvn/kdebase/workspace/systemsettings/icons/IconMode.cpp:139
#30 0x00007f5043b40521 in IconMode::qt_metacall (this=0xb4c5f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb50d3690)
    at /home/kde-devel/kdesvn/build/kdebase/workspace/systemsettings/icons/IconMode.moc:80
#31 0x00007f504d934c27 in QMetaObject::metacall (object=0xb4c5f0, cl=QMetaObject::InvokeMetaMethod, idx=12, argv=0x7fffb50d3690) at kernel/qmetaobject.cpp:237
#32 0x00007f504d94aff1 in QMetaObject::activate (sender=0xb69d90, m=0x7f504f3568a0, local_signal_index=3, argv=0x7fffb50d3690) at kernel/qobject.cpp:3398
#33 0x00007f504eca4f53 in QAbstractItemView::activated (this=0xb69d90, _t1=...) at .moc/debug-shared/moc_qabstractitemview.cpp:342
#34 0x00007f504ec9922d in QAbstractItemView::mouseReleaseEvent (this=0xb69d90, event=0x7fffb50d45d0) at itemviews/qabstractitemview.cpp:1757
#35 0x00007f504ecba737 in QListView::mouseReleaseEvent (this=0xb69d90, e=0x7fffb50d45d0) at itemviews/qlistview.cpp:796
#36 0x00007f504f818789 in KCategorizedView::mouseReleaseEvent (this=0x1581, event=0x1581) at /home/kde-devel/kdesvn/kdelibs/kdeui/itemviews/kcategorizedview.cpp:898
#37 0x00007f504e6867af in QWidget::event (this=0xb69d90, event=0x7fffb50d45d0) at kernel/qwidget.cpp:7903
#38 0x00007f504eb1f5bb in QFrame::event (this=0xb69d90, e=0x7fffb50d45d0) at widgets/qframe.cpp:557
#39 0x00007f504ebd5efa in QAbstractScrollArea::viewportEvent (this=0xb69d90, e=0x7fffb50d45d0) at widgets/qabstractscrollarea.cpp:991
#40 0x00007f504ec97ec8 in QAbstractItemView::viewportEvent (this=0xb69d90, event=0x7fffb50d45d0) at itemviews/qabstractitemview.cpp:1585
#41 0x00007f504ebd6b7b in QAbstractScrollAreaPrivate::viewportEvent (this=0xb95790, event=0x7fffb50d45d0) at widgets/qabstractscrollarea_p.h:100
#42 0x00007f504ebd6c84 in QAbstractScrollAreaFilter::eventFilter (this=0xb96f30, o=0xb69210, e=0x7fffb50d45d0) at widgets/qabstractscrollarea_p.h:116
#43 0x00007f504d92ce03 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8442d0, receiver=0xb69210, event=0x7fffb50d45d0) at kernel/qcoreapplication.cpp:819
#44 0x00007f504e6160cb in QApplicationPrivate::notify_helper (this=0x8442d0, receiver=0xb69210, e=0x7fffb50d45d0) at kernel/qapplication.cpp:4247
#45 0x00007f504e614493 in QApplication::notify (this=0x7fffb50d54c0, receiver=0xb69210, e=0x7fffb50d45d0) at kernel/qapplication.cpp:3837
#46 0x00007f504f839946 in KApplication::notify (this=0x7fffb50d54c0, receiver=0xb69210, event=0x7fffb50d45d0) at /home/kde-devel/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:302
#47 0x00007f504d92cae8 in QCoreApplication::notifyInternal (this=0x7fffb50d54c0, receiver=0xb69210, event=0x7fffb50d45d0) at kernel/qcoreapplication.cpp:704
#48 0x00007f504e61862d in QCoreApplication::sendSpontaneousEvent (receiver=0xb69210, event=0x7fffb50d45d0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#49 0x00007f504e6129fd in QApplicationPrivate::sendMouseEvent (receiver=0xb69210, event=0x7fffb50d45d0, alienWidget=0xb69210, nativeWidget=0xb69040, buttonDown=0x7f504f3823a8, lastMouseReceiver=..., 
    spontaneous=true) at kernel/qapplication.cpp:2974
#50 0x00007f504e6b7dc7 in QETWidget::translateMouseEvent (this=0xb69040, event=0x7fffb50d5030) at kernel/qapplication_x11.cpp:4360
#51 0x00007f504e6b457d in QApplication::x11ProcessEvent (this=0x7fffb50d54c0, event=0x7fffb50d5030) at kernel/qapplication_x11.cpp:3377
#52 0x00007f504e6f06c5 in x11EventSourceDispatch (s=0x848450, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#53 0x00007f5049c2bbbe in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#54 0x00007f5049c2f588 in ?? () from /lib/libglib-2.0.so.0
#55 0x00007f5049c2f6b0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#56 0x00007f504d96976f in QEventDispatcherGlib::processEvents (this=0x81ed40, flags=...) at kernel/qeventdispatcher_glib.cpp:407
#57 0x00007f504e6f0dd6 in QGuiEventDispatcherGlib::processEvents (this=0x81ed40, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#58 0x00007f504d929b64 in QEventLoop::processEvents (this=0x7fffb50d5400, flags=...) at kernel/qeventloop.cpp:149
#59 0x00007f504d929cba in QEventLoop::exec (this=0x7fffb50d5400, flags=...) at kernel/qeventloop.cpp:201
#60 0x00007f504d92d1ea in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#61 0x00007f504e613716 in QApplication::exec () at kernel/qapplication.cpp:3590
#62 0x0000000000410ed9 in main (argc=<value optimized out>, argv=<value optimized out>) at /home/kde-devel/kdesvn/kdebase/workspace/systemsettings/app/main.cpp:49

Reported using DrKonqi
Comment 1 Dario Andres 2009-11-18 17:54:54 UTC
This looks related to bug 200953 or bug 208695
- Do you have PolicyKit installed ?
Thanks
Comment 2 Miha Čančula 2009-11-18 18:30:01 UTC
Installing PolicyKit solved the problem. I had libpolkit installed and polkit-qt compiled without errors so I thought this is enough. 

I believe it should have some way of telling me that PolicyKit is not installed. Thanks for the resolution :)
Comment 3 Dario Andres 2009-11-18 18:37:20 UTC
Thanks

*** This bug has been marked as a duplicate of bug 200953 ***