Bug 275273 - Action Policy - System Settings (PolKit) crashed after changing a Local authorization
Summary: Action Policy - System Settings (PolKit) crashed after changing a Local autho...
Status: RESOLVED DUPLICATE of bug 298716
Alias: None
Product: policykit-kde-agent-1
Classification: Plasma
Component: kcm_auth (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-09 11:10 UTC by Manuel Stol
Modified: 2012-07-05 17:02 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 Manuel Stol 2011-06-09 11:10:48 UTC
Application: systemsettings (1.0)
KDE Platform Version: 4.6.00 (4.6.0) "release 6"
Qt Version: 4.7.1
Operating System: Linux 2.6.37.6-0.5-default i686
Distribution: "openSUSE 11.4 (i586)"

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

Everytime after the PC comes out of sleep,
I get an anoying pop-up
requesting authorization to access the non-existent(!) brightness/light sensor.
To get rid of this pop-up I want to change the policy to access the brightness.

A. Add a Local authorization for org.kde.powerdevil.backlighthelper.brightness
1) Open: System Settings (Configure Desktop) > Action Policy
2) Open: org.kde > powerdevil > KDE > Get brightness
3) Give root password for authorization
4) Click [Add] to add a Local authorization
    Note:
    - The implicit authorization is: Any:No, Inactive:No, Active:Yes
       and cannot be changed.
5) Input title: Get brightness
6) Click [OK]
    Note:
    - I'm using the default policy: Any:Yes, Inactive:Yes, Active:Yes
       without any user or group defined.
7) Click [Apply]
8) Close System Settings

This doesn't work, I still get the pop-up.
So I check and change the policy.

B. Change the Local authorization for org.kde.powerdevil.backlighthelper.brightness
1) Open: System Settings (Configure Desktop) > Action Policy
2) Open: org.kde > powerdevil > KDE > Get brightness
3) Give root password for authorization
4) DoubleClick the Local authorization
    Notes:
    - The implicit authorization is still: Any:No, Inactive:No, Active:Yes
       and cannot be changed.
    - The title of the Local authorization has changed to:
       org-kde.powerdevil.backlighthelper.brightness
    - The policy of the Local authorization has changed to:
       Any:Admin_Auth (1 shot), Inactive:Admin_Auth (1 shot), Active:Admin_Auth (1 shot)
    - The Local authorization now has an empty Group defined.
5) Changed the policy of the Local authorization to: Any:Yes, Inactive:Yes, Active:Yes
6) Click [OK]
>> Action Policy - System Settings crashes <<

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings), signal: Segmentation fault
[Current thread is 1 (Thread 0xb57d6710 (LWP 6445))]

Thread 2 (Thread 0xb194db70 (LWP 6447)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb60a803e in poll () from /lib/libc.so.6
#2  0xb5ae20bb in g_poll (fds=0x82d8748, nfds=3, timeout=-1) at gpoll.c:132
#3  0xb5ad1c46 in g_main_context_poll (context=0x82d7c60, block=1, dispatch=1, self=0x82d7cf0) at gmain.c:3404
#4  g_main_context_iterate (context=0x82d7c60, block=1, dispatch=1, self=0x82d7cf0) at gmain.c:3086
#5  0xb5ad23ef in g_main_loop_run (loop=0x82d7c50) at gmain.c:3299
#6  0xb1a41001 in gdbus_shared_thread_func (data=0x0) at gdbusprivate.c:276
#7  0xb5afaf44 in g_thread_create_proxy (data=0x82d7cf0) at gthread.c:1897
#8  0xb5bcfb05 in start_thread () from /lib/libpthread.so.0
#9  0xb60b2d5e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb57d6710 (LWP 6445)):
[KCrash Handler]
#7  0x00000000 in ?? ()
#8  0xb1b1d793 in text (this=0x83695a8, item=0x836b5b0) at /usr/include/QtGui/qlistwidget.h:90
#9  PolkitKde::ActionWidget::editExplicitPKLAEntry (this=0x83695a8, item=0x836b5b0) at /usr/src/debug/polkit-kde-kcmmodules-1-0.98.1/polkitactions/ActionWidget.cpp:250
#10 0xb1b159d5 in PolkitKde::ActionWidget::qt_metacall (this=0x83695a8, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbf84f8b8) at /usr/src/debug/polkit-kde-kcmmodules-1-0.98.1/build/polkitactions/moc_ActionWidget.cpp:93
#11 0xb63a38cd in QMetaObject::metacall (object=0x83695a8, cl=QMetaObject::InvokeMetaMethod, idx=30, argv=0xbf84f8b8) at kernel/qmetaobject.cpp:237
#12 0xb63b3a2c in QMetaObject::activate (sender=0x837b148, m=0xb729f064, local_signal_index=2, argv=0xbf84f8b8) at kernel/qobject.cpp:3272
#13 0xb6f4aed5 in QListWidget::itemDoubleClicked (this=0x837b148, _t1=0x836b5b0) at .moc/release-shared/moc_qlistwidget.cpp:205
#14 0xb6f4b6aa in QListWidgetPrivate::_q_emitItemDoubleClicked (this=0x837b160, index=...) at itemviews/qlistwidget.cpp:1085
#15 0xb6f4e9fc in QListWidget::qt_metacall (this=0x837b148, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbf84f9e8) at .moc/release-shared/moc_qlistwidget.cpp:143
#16 0xb63a38cd in QMetaObject::metacall (object=0x837b148, cl=QMetaObject::InvokeMetaMethod, idx=85, argv=0xbf84f9e8) at kernel/qmetaobject.cpp:237
#17 0xb63b3a2c in QMetaObject::activate (sender=0x837b148, m=0xb729e204, local_signal_index=2, argv=0xbf84f9e8) at kernel/qobject.cpp:3272
#18 0xb6edd3a5 in QAbstractItemView::doubleClicked (this=0x837b148, _t1=...) at .moc/release-shared/moc_qabstractitemview.cpp:338
#19 0xb6edd561 in QAbstractItemView::mouseDoubleClickEvent (this=0x837b148, event=0xbf850304) at itemviews/qabstractitemview.cpp:1821
#20 0xb69965ce in QWidget::event (this=0x837b148, event=0xbf850304) at kernel/qwidget.cpp:8204
#21 0xb6da4ed5 in QFrame::event (this=0x837b148, e=0xbf850304) at widgets/qframe.cpp:557
#22 0xb6e368a1 in QAbstractScrollArea::viewportEvent (this=0x837b148, e=0xbf850304) at widgets/qabstractscrollarea.cpp:1043
#23 0xb6edaad4 in QAbstractItemView::viewportEvent (this=0x837b148, event=0xbf850304) at itemviews/qabstractitemview.cpp:1619
#24 0xb6e39196 in viewportEvent (this=0x836b1c8, o=0x837b4b0, e=0xbf850304) at widgets/qabstractscrollarea_p.h:100
#25 QAbstractScrollAreaFilter::eventFilter (this=0x836b1c8, o=0x837b4b0, e=0xbf850304) at widgets/qabstractscrollarea_p.h:116
#26 0xb639d176 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8081900, receiver=0x837b4b0, event=0xbf850304) at kernel/qcoreapplication.cpp:847
#27 0xb693b3e4 in QApplicationPrivate::notify_helper (this=0x8081900, receiver=0x837b4b0, e=0xbf850304) at kernel/qapplication.cpp:4441
#28 0xb6944c20 in QApplication::notify (this=0xbf85001c, receiver=0x837b4b0, e=0xbf850304) at kernel/qapplication.cpp:4006
#29 0xb73eb1f1 in KApplication::notify (this=0xbf850b7c, receiver=0x837b4b0, event=0xbf850304) at /usr/src/debug/kdelibs-4.6.0/kdeui/kernel/kapplication.cpp:311
#30 0xb639cfde in QCoreApplication::notifyInternal (this=0xbf850b7c, receiver=0x837b4b0, event=0xbf850304) at kernel/qcoreapplication.cpp:732
#31 0xb693c45c in sendSpontaneousEvent (receiver=0x837b4b0, event=0xbf850304, alienWidget=0x837b4b0, nativeWidget=0x816c970, buttonDown=0xb72adc00, lastMouseReceiver=..., spontaneous=true) at ../../src/corelib/kernel/qcoreapplication.h:218
#32 QApplicationPrivate::sendMouseEvent (receiver=0x837b4b0, event=0xbf850304, alienWidget=0x837b4b0, nativeWidget=0x816c970, buttonDown=0xb72adc00, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3103
#33 0xb69c8030 in QETWidget::translateMouseEvent (this=0x816c970, event=0xbf85081c) at kernel/qapplication_x11.cpp:4438
#34 0xb69c713e in QApplication::x11ProcessEvent (this=0xbf850b7c, event=0xbf85081c) at kernel/qapplication_x11.cpp:3442
#35 0xb69f1960 in x11EventSourceDispatch (s=0x80846b0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#36 0xb5ad1509 in g_main_dispatch (context=0x8083c70) at gmain.c:2440
#37 g_main_context_dispatch (context=0x8083c70) at gmain.c:3013
#38 0xb5ad1d10 in g_main_context_iterate (context=0x8083c70, block=1, dispatch=1, self=0x808ce38) at gmain.c:3091
#39 0xb5ad1fce in g_main_context_iteration (context=0x8083c70, may_block=1) at gmain.c:3154
#40 0xb63cb76b in QEventDispatcherGlib::processEvents (this=0x8061cb8, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#41 0xb69f155a in QGuiEventDispatcherGlib::processEvents (this=0x8061cb8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#42 0xb639c2bd in QEventLoop::processEvents (this=0xbf850ad4, flags=...) at kernel/qeventloop.cpp:149
#43 0xb639c4e9 in QEventLoop::exec (this=0xbf850ad4, flags=...) at kernel/qeventloop.cpp:201
#44 0xb63a0f90 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#45 0xb6939104 in QApplication::exec () at kernel/qapplication.cpp:3719
#46 0x0805813e in main (argc=) at /usr/src/debug/kdebase-workspace-4.6.0/systemsettings/app/main.cpp:49

Reported using DrKonqi
Comment 1 Jekyll Wu 2012-07-05 17:02:42 UTC

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