Bug 289977

Summary: kcmdatetimehelper crash
Product: [Applications] systemsettings Reporter: Yasha B.-K. <yashabk>
Component: generalAssignee: System Settings Bugs <sourtooth+ssbugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: bugzilla, skljhsdfklkajsdfh, xanni
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Yasha B.-K. 2011-12-28 02:33:54 UTC
Application: kcmshell4 ()
KDE Platform Version: 4.6.5 (4.6.5)
Qt Version: 4.7.4
Operating System: Linux 2.6.41.4-1.fc15.i686 i686
Distribution: "Fedora release 15 (Lovelock)"

-- Information about the crash:
After I changed the time zone and clicked OK, the crash reporting assistant popped up. The time zone was successfully changed. There was also an SELinux Alert:

SELinux is preventing /usr/libexec/kde4/kcmdatetimehelper from write access on the file /.config/Trolltech.conf.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/.config/Trolltech.conf default label should be default_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /.config/Trolltech.conf

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that kcmdatetimehelper should be allowed write access on the Trolltech.conf file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep kcmdatetimehelp /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:gnomeclock_t:s0-s0:c0.c1023
Target Context                system_u:object_r:etc_runtime_t:s0
Target Objects                /.config/Trolltech.conf [ file ]
Source                        kcmdatetimehelp
Source Path                   /usr/libexec/kde4/kcmdatetimehelper
Port                          <Unknown>
Host                          minus.localdomain
Source RPM Packages           kdebase-workspace-4.6.5-5.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-48.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     minus.localdomain
Platform                      Linux minus.localdomain 2.6.41.4-1.fc15.i686 #1
                              SMP Tue Nov 29 11:55:17 UTC 2011 i686 i686
Alert Count                   7
First Seen                    Thu 21 Jul 2011 01:12:02 AM EDT
Last Seen                     Tue 27 Dec 2011 09:28:03 PM EST
Local ID                      dce53a15-2610-474d-a53d-4c1a1b01902f

Raw Audit Messages
type=AVC msg=audit(1325039283.627:94): avc:  denied  { write } for  pid=4154 comm="kcmdatetimehelp" name="Trolltech.conf" dev=dm-2 ino=4980738 scontext=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file


type=SYSCALL msg=audit(1325039283.627:94): arch=i386 syscall=open success=no exit=EACCES a0=97bfd78 a1=88042 a2=1b6 a3=0 items=0 ppid=4153 pid=4154 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=kcmdatetimehelp exe=/usr/libexec/kde4/kcmdatetimehelper subj=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 key=(null)

Hash: kcmdatetimehelp,gnomeclock_t,etc_runtime_t,file,write

audit2allow

#============= gnomeclock_t ==============
allow gnomeclock_t etc_runtime_t:file write;

audit2allow -R

#============= gnomeclock_t ==============
allow gnomeclock_t etc_runtime_t:file write;

-- Backtrace:
Application: KDE Control Module (kcmshell4), signal: Segmentation fault
[Current thread is 1 (Thread 0xb78ac9b0 (LWP 4150))]

Thread 2 (Thread 0xb4cddb70 (LWP 4152)):
#0  0x00604416 in __kernel_vsyscall ()
#1  0x42933c3e in __GI___poll (fds=0xb43029c0, nfds=3, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x42af4aac in g_poll (fds=0xb43029c0, nfds=3, timeout=-1) at gpoll.c:132
#3  0x42ae5c36 in g_main_context_poll (n_fds=3, fds=0x42a275d0, priority=<optimized out>, timeout=<optimized out>, context=0xa396908) at gmain.c:3405
#4  g_main_context_iterate (context=0xa396908, block=1118784128, dispatch=1, self=0xa2c7650) at gmain.c:3087
#5  0x42ae6457 in g_main_loop_run (loop=0xa3968f8) at gmain.c:3300
#6  0x006e8032 in gdbus_shared_thread_func (data=0x0) at gdbusprivate.c:276
#7  0x42b0d535 in g_thread_create_proxy (data=0xa2c7650) at gthread.c:1955
#8  0x42a24a2e in start_thread (arg=0xb4cddb70) at pthread_create.c:305
#9  0x4293e34e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb78ac9b0 (LWP 4150)):
[KCrash Handler]
#7  length (this=0x94) at ../../src/corelib/tools/qstring.h:700
#8  replaceArgEscapes (s=<optimized out>, d=..., field_width=0, arg=..., larg=..., fillChar=...) at tools/qstring.cpp:6362
#9  0x4be02c5b in QString::arg (this=0xbfeec938, a=..., fieldWidth=0, fillChar=...) at tools/qstring.cpp:6482
#10 0x4d405b58 in KLocalizedString::subs (this=0xbfeec9b8, a=..., fieldWidth=0, fillChar=...) at /usr/src/debug/kdelibs-4.6.5/kdecore/localization/klocalizedstring.cpp:908
#11 0x002c52df in i18n<QString> (a1=..., text=0x2cc10c "Unable to contact time server: %1.") at /usr/include/kde4/klocalizedstring.h:645
#12 Dtime::processHelperErrors (this=0x0, code=4) at /usr/src/debug/kdebase-workspace-4.6.5/kcontrol/dateandtime/dtime.cpp:275
#13 0x002cad27 in KclockModule::save (this=0xa12afd0) at /usr/src/debug/kdebase-workspace-4.6.5/kcontrol/dateandtime/main.cpp:100
#14 0x4cc5dc92 in KCModuleProxy::save (this=0xa13a328) at /usr/src/debug/kdelibs-4.6.5/kutils/kcmoduleproxy.cpp:279
#15 0x4cc5a718 in KCMultiDialogPrivate::apply (this=0xa10e458) at /usr/src/debug/kdelibs-4.6.5/kutils/kcmultidialog.cpp:300
#16 0x4cc5baec in KCMultiDialog::qt_metacall (this=0xa10e520, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0xbfeecc58) at /usr/src/debug/kdelibs-4.6.5/i686-redhat-linux-gnu/kutils/kcmultidialog.moc:95
#17 0x4c1e4f63 in KCMShellMultiDialog::qt_metacall (this=0xa10e520, _c=QMetaObject::InvokeMetaMethod, _id=79, _a=0xbfeecc58) at /usr/src/debug/kdebase-runtime-4.6.5/i686-redhat-linux-gnu/kcmshell/main.moc:130
#18 0x4beba27e in metacall (argv=0xbfeecc58, idx=79, cl=QMetaObject::InvokeMetaMethod, object=0xa10e520) at kernel/qmetaobject.cpp:237
#19 QMetaObject::metacall (object=0xa10e520, cl=QMetaObject::InvokeMetaMethod, idx=79, argv=0xbfeecc58) at kernel/qmetaobject.cpp:232
#20 0x4bec819a in QMetaObject::activate (sender=0xa11ef70, m=0x4da5ff70, local_signal_index=0, argv=0xbfeecc58) at kernel/qobject.cpp:3278
#21 0x4d91f926 in KPushButton::authorized (this=0xa11ef70, _t1=0xa1de280) at /usr/src/debug/kdelibs-4.6.5/i686-redhat-linux-gnu/kdeui/kpushbutton.moc:129
#22 0x4d91f9a6 in KPushButton::KPushButtonPrivate::slotClickedInternal (this=0xa11dcf0) at /usr/src/debug/kdelibs-4.6.5/kdeui/widgets/kpushbutton.cpp:102
#23 0x4d91facb in KPushButton::qt_metacall (this=0xa11ef70, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbfeecd98) at /usr/src/debug/kdelibs-4.6.5/i686-redhat-linux-gnu/kdeui/kpushbutton.moc:88
#24 0x4beba27e in metacall (argv=0xbfeecd98, idx=44, cl=QMetaObject::InvokeMetaMethod, object=0xa11ef70) at kernel/qmetaobject.cpp:237
#25 QMetaObject::metacall (object=0xa11ef70, cl=QMetaObject::InvokeMetaMethod, idx=44, argv=0xbfeecd98) at kernel/qmetaobject.cpp:232
#26 0x4bec819a in QMetaObject::activate (sender=0xa11ef70, m=0x41aa1e28, local_signal_index=2, argv=0xbfeecd98) at kernel/qobject.cpp:3278
#27 0x4186392e in QAbstractButton::clicked (this=0xa11ef70, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#28 0x4155eb3e in QAbstractButtonPrivate::emitClicked (this=0xa120148) at widgets/qabstractbutton.cpp:546
#29 0x41560210 in QAbstractButtonPrivate::click (this=0xa120148) at widgets/qabstractbutton.cpp:539
#30 0x415604c6 in QAbstractButton::mouseReleaseEvent (this=0xa11ef70, e=0xbfeed464) at widgets/qabstractbutton.cpp:1121
#31 0x411a6ed5 in QWidget::event (this=0xa11ef70, event=0xbfeed464) at kernel/qwidget.cpp:8295
#32 0x4155f731 in QAbstractButton::event (this=0xa11ef70, e=0xbfeed464) at widgets/qabstractbutton.cpp:1080
#33 0x416025b9 in QPushButton::event (this=0xa11ef70, e=0xbfeed464) at widgets/qpushbutton.cpp:683
#34 0x4114c144 in notify_helper (e=0xbfeed464, receiver=0xa11ef70, this=0xa047018) at kernel/qapplication.cpp:4481
#35 QApplicationPrivate::notify_helper (this=0xa047018, receiver=0xa11ef70, e=0xbfeed464) at kernel/qapplication.cpp:4453
#36 0x411522da in QApplication::notify (this=0xa047018, receiver=0xa11ef70, e=0xbfeed464) at kernel/qapplication.cpp:4042
#37 0x4d82aa32 in KApplication::notify (this=0xbfeedcbc, receiver=0xa11ef70, event=0xbfeed464) at /usr/src/debug/kdelibs-4.6.5/kdeui/kernel/kapplication.cpp:311
#38 0x4beb3ace in QCoreApplication::notifyInternal (this=0xbfeedcbc, receiver=0xa11ef70, event=0xbfeed464) at kernel/qcoreapplication.cpp:787
#39 0x4114d116 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:215
#40 QApplicationPrivate::sendMouseEvent (receiver=0xa11ef70, event=0xbfeed464, alienWidget=0xa11ef70, nativeWidget=0xa10e520, buttonDown=0x41aaaf54, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3141
#41 0x411d732c in QETWidget::translateMouseEvent (this=0xa10e520, event=0xbfeed91c) at kernel/qapplication_x11.cpp:4467
#42 0x411d62ed in QApplication::x11ProcessEvent (this=0xbfeedcbc, event=0xbfeed91c) at kernel/qapplication_x11.cpp:3593
#43 0x41200f85 in x11EventSourceDispatch (s=0xa049ce8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#44 0x42ae55bf in g_main_dispatch (context=0xa0486f0) at gmain.c:2441
#45 g_main_context_dispatch (context=0xa0486f0) at gmain.c:3014
#46 0x42ae5d30 in g_main_context_iterate (context=0xa0486f0, block=1118784128, dispatch=1, self=0xa046620) at gmain.c:3092
#47 0x42ae606f in g_main_context_iteration (context=0xa0486f0, may_block=1) at gmain.c:3155
#48 0x4bee2108 in QEventDispatcherGlib::processEvents (this=0xa02d988, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#49 0x41200c1b in QGuiEventDispatcherGlib::processEvents (this=0xa02d988, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#50 0x4beb2e0e in QEventLoop::processEvents (this=0xbfeedc20, flags=...) at kernel/qeventloop.cpp:149
#51 0x4beb3061 in QEventLoop::exec (this=0xbfeedc20, flags=...) at kernel/qeventloop.cpp:201
#52 0x41683f9a in QDialog::exec (this=0xa10e520) at dialogs/qdialog.cpp:552
#53 0x4c1e7811 in kdemain (_argc=2, _argv=0xbfeedf34) at /usr/src/debug/kdebase-runtime-4.6.5/kcmshell/main.cpp:287
#54 0x080485ac in main (argc=2, argv=0xbfeedf34) at /usr/src/debug/kdebase-runtime-4.6.5/i686-redhat-linux-gnu/kcmshell/kcmshell4_dummy.cpp:3

Possible duplicates by query: bug 287386, bug 285652, bug 278249, bug 274737.

Reported using DrKonqi
Comment 1 Christoph Feck 2011-12-28 13:08:27 UTC

*** This bug has been marked as a duplicate of bug 274737 ***
Comment 2 Christoph Feck 2012-09-17 00:10:12 UTC
*** Bug 306873 has been marked as a duplicate of this bug. ***
Comment 3 Christoph Feck 2013-04-24 08:33:17 UTC
*** Bug 318794 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Feck 2013-10-27 09:56:53 UTC
*** Bug 326720 has been marked as a duplicate of this bug. ***