Bug 277055 - kded crash on startup in polkit
Summary: kded crash on startup in polkit
Status: RESOLVED FIXED
Alias: None
Product: policykit-kde-agent-1
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
: 282308 283113 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-04 10:00 UTC by Bernhard Rosenkraenzer
Modified: 2013-03-25 14:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Rosenkraenzer 2011-07-04 10:00:57 UTC
Version:           4.7 (using Devel) 
OS:                Linux

After updating from 4.6.3 to 4.7-rc1, kded crashes on startup when talking to polkit:

Application: KDE Daemon (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#6  0x00007fe5d1ebb1b0 in QVariant::userType() const () from /usr/lib64/libQtCore.so.4
#7  0x00007fe5b8c00bf7 in PolkitQt1::Authority::Private::init() () from /usr/lib64/libpolkit-qt-core-1.so.1
#8  0x00007fe5b8c01e0e in PolkitQt1::Authority::Authority(_PolkitAuthority*, QObject*) () from /usr/lib64/libpolkit-qt-core-1.so.1
#9  0x00007fe5b8c01ed2 in PolkitQt1::Authority::instance(_PolkitAuthority*) () from /usr/lib64/libpolkit-qt-core-1.so.1
#10 0x00007fe5b8e114ab in ?? () from /usr/lib64/kde4/plugins/kauth/backend/kauth_backend_plugin.so
#11 0x00007fe5b8e1213d in qt_plugin_instance () from /usr/lib64/kde4/plugins/kauth/backend/kauth_backend_plugin.so
#12 0x00007fe5d1e7de6f in QPluginLoader::instance() () from /usr/lib64/libQtCore.so.4
#13 0x00007fe5d25d9c63 in KAuth::BackendsManager::retrieveInstancesIn(QString const&) () from /usr/lib64/libkdecore.so.5
#14 0x00007fe5d25d9e61 in KAuth::BackendsManager::init() () from /usr/lib64/libkdecore.so.5
#15 0x00007fe5d25da52d in KAuth::BackendsManager::authBackend() () from /usr/lib64/libkdecore.so.5
#16 0x00007fe5d25d6d39 in KAuth::Action::setName(QString const&) () from /usr/lib64/libkdecore.so.5
#17 0x00007fe5d25d6e5a in KAuth::Action::Action(QString const&) () from /usr/lib64/libkdecore.so.5
#18 0x00007fe5ba11ae36 in PowerDevilUPowerBackend::brightness(PowerDevil::BackendInterface::BrightnessControlType) const () from /usr/lib64/kde4/kded_powerdevil.so
#19 0x00007fe5ba11d3f0 in PowerDevilUPowerBackend::init() () from /usr/lib64/kde4/kded_powerdevil.so
#20 0x00007fe5b9ee9f42 in PowerDevil::Core::loadCore(PowerDevil::BackendInterface*) () from /usr/lib64/libpowerdevilcore.so.0
#21 0x00007fe5ba116424 in ?? () from /usr/lib64/kde4/kded_powerdevil.so
#22 0x00007fe5d1eb3121 in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#23 0x00007fe5d101f566 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#24 0x00007fe5d10244a9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#25 0x00007fe5d2eb6416 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#26 0x00007fe5d1e99bdc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#27 0x00007fe5d1e9cf9d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQtCore.so.4
#28 0x00007fe5d1ec87e3 in ?? () from /usr/lib64/libQtCore.so.4
#29 0x00007fe5cca47fc2 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#30 0x00007fe5cca48628 in ?? () from /usr/lib64/libglib-2.0.so.0
#31 0x00007fe5cca488a9 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#32 0x00007fe5d1ec8c0f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#33 0x00007fe5d10c3830 in ?? () from /usr/lib64/libQtGui.so.4
#34 0x00007fe5d1e98982 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#35 0x00007fe5d1e98bda in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#36 0x00007fe5d1e9d297 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#37 0x00007fe5bed0af47 in kdemain () from /usr/lib64/libkdeinit4_kded4.so
#38 0x00000000004082ce in _start ()


Reproducible: Always

Steps to Reproduce:
Not sure if any of the old settings from 4.6 are causing this, or if my slightly dated polkit (0.99) or polkit-qt (svn 20101220) is at fault. Will look into that some more when I have a bit of time.

Actual Results:  
kded crashes

Expected Results:  
kded doesn't crash
Comment 1 Christoph Feck 2011-09-19 01:16:06 UTC
*** Bug 282308 has been marked as a duplicate of this bug. ***
Comment 2 Dario Andres 2011-10-01 13:20:45 UTC
[Comment from a bug report cleaner]
Bug 283113 (KDE SC 4.6.0) contains a crash with a similar backtrace but appearing on System Settings. 

[KCrash Handler]
#6  QVariant::userType (this=0xb1) at kernel/qvariant.cpp:1792
#7  0x00007fe20b51ff5e in qvariant_cast<QDBusArgument> (this=0xc72b30) at
/usr/include/QtCore/qvariant.h:580
#8  qVariantValue<QDBusArgument> (this=0xc72b30) at
/usr/include/QtCore/qvariant.h:599
#9  PolkitQt1::Authority::Private::init (this=0xc72b30) at
/usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-authority.cpp:224
#10 0x00007fe20b521600 in PolkitQt1::Authority::Authority (this=0xc72380,
authority=0x0, parent=<value optimized out>) at
/usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-authority.cpp:153
#11 0x00007fe20b5217ba in PolkitQt1::Authority::instance (authority=0x0) at
/usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-authority.cpp:49
#12 0x00007fe20b75b090 in KAuth::Polkit1Backend::Polkit1Backend (this=0xc71f20)
at
/usr/src/debug/kdelibs-4.6.0/kdecore/auth/backends/polkit-1/Polkit1Backend.cpp:69
#13 0x00007fe20b75b17d in qt_plugin_instance () at
/usr/src/debug/kdelibs-4.6.0/kdecore/auth/backends/polkit-1/Polkit1Backend.cpp:229
#14 0x00007fe22a03d4f9 in KAuth::BackendsManager::retrieveInstancesIn
(path=<value optimized out>) at
/usr/src/debug/kdelibs-4.6.0/kdecore/auth/BackendsManager.cpp:69
#15 0x00007fe22a07af61 in KAuth::BackendsManager::init () at
/usr/src/debug/kdelibs-4.6.0/kdecore/auth/BackendsManager.cpp:81
#16 0x00007fe22a07b63d in KAuth::BackendsManager::authBackend () at
/usr/src/debug/kdelibs-4.6.0/kdecore/auth/BackendsManager.cpp:123
#17 0x00007fe22a07bb8b in KAuth::Action::setName (this=0xc6f750, name=...) at
/usr/src/debug/kdelibs-4.6.0/kdecore/auth/kauthaction.cpp:108
#18 0x00007fe22a07c5aa in KAuth::Action::Action (this=0xc6f750, name=...) at
/usr/src/debug/kdelibs-4.6.0/kdecore/auth/kauthaction.cpp:61
...
Comment 3 martin brook 2012-03-13 21:17:51 UTC
I recorded this backtrace on Spark (ARM) Tablet with Trunk:Testing Active image from 13.03.12. It looks identical to this bug.

BR

vgrade


Application: KDE Daemon (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x41b07670 (LWP 399))]

Thread 3 (Thread 0x46467420 (LWP 465)):
#0  0x40875af4 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#1  0x408436ac in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#2  0x4095ac98 in ?? () from /usr/lib/libQtCore.so.4
#3  0x4095ac98 in ?? () from /usr/lib/libQtCore.so.4
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x46dff420 (LWP 481)):
#0  0x413b2274 in __libc_enable_asynccancel () at ../nptl/cancellation.c:43
#1  0x41399660 in __poll (fds=0x46e029c0, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:85
#2  0x41831dcc in ?? () from /lib/libglib-2.0.so.0
#3  0x41831dcc in ?? () from /lib/libglib-2.0.so.0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0x41b07670 (LWP 399)):
[KCrash Handler]
#6  0x40865740 in QVariant::userType() const () from /usr/lib/libQtCore.so.4
#7  0x4647d1b0 in PolkitQt1::Authority::Private::init() () from /usr/lib/libpolkit-qt-core-1.so.1
#8  0x4647e48c in PolkitQt1::Authority::Authority(_PolkitAuthority*, QObject*) () from /usr/lib/libpolkit-qt-core-1.so.1
#9  0x4647e544 in PolkitQt1::Authority::instance(_PolkitAuthority*) () from /usr/lib/libpolkit-qt-core-1.so.1
#10 0x4646a4cc in KAuth::Polkit1Backend::Polkit1Backend (this=0x177b10) at ../../kdecore/auth/backends/polkit-1/Polkit1Backend.cpp:69
#11 0x4646b0ec in qt_plugin_instance () at ../../kdecore/auth/backends/polkit-1/Polkit1Backend.cpp:229
#12 0x4082aa10 in QPluginLoader::instance() () from /usr/lib/libQtCore.so.4
#13 0x405dd530 in BackendsManager::retrieveInstancesIn (path=<value optimized out>) at ../../kdecore/auth/BackendsManager.cpp:69
#14 0x405dd730 in BackendsManager::init () at ../../kdecore/auth/BackendsManager.cpp:81
#15 0x405dddc8 in BackendsManager::authBackend () at ../../kdecore/auth/BackendsManager.cpp:123
#16 0x405da090 in Action::setName (this=0xbefdc6f0, name=...) at ../../kdecore/auth/kauthaction.cpp:108
#17 0x405da1f8 in Action::Action (this=0xbefdc6f0, name=...) at ../../kdecore/auth/kauthaction.cpp:61
#18 0x430720b8 in PowerDevilUPowerBackend::brightness(enum PowerDevil::BackendInterface::BrightnessControlType) const (this=0x18ff88, type=<value optimized out>) at ../../../powerdevil/daemon/backends/upower/powerdevilupowerbackend.cpp:195
#19 0x43074688 in PowerDevilUPowerBackend::init (this=0x18ff88) at ../../../powerdevil/daemon/backends/upower/powerdevilupowerbackend.cpp:110
#20 0x4309ecc0 in Core::loadCore (this=<value optimized out>, backend=<value optimized out>) at ../../../powerdevil/daemon/powerdevilcore.cpp:84
#21 0x4306dee4 in KDEDPowerDevil::init (this=0x17e8f8) at ../../../powerdevil/daemon/kdedpowerdevil.cpp:89
#22 0x40855430 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#23 0x40855430 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Comment 4 Jekyll Wu 2012-07-05 17:35:58 UTC
*** Bug 283113 has been marked as a duplicate of this bug. ***
Comment 5 Martin Bříza 2013-03-25 14:33:47 UTC
This particular crash should have been fixed in eeef90fc5196c5056c8c4ada7b1b5d74db1e5c94. 
The CK (and systemd-logind, lately) support is not perfect, I think. There will be some polishing in the future.
But as I write in every report: if it's still happening, please open the bug once again and I'll look into it. Thank you!