Bug 331454 - Enabling the use of NTP server crashes the dialog on exit
Summary: Enabling the use of NTP server crashes the dialog on exit
Status: RESOLVED DUPLICATE of bug 242648
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-24 10:35 UTC by Joonas Koivunen
Modified: 2014-04-05 11:19 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The error message box (83.80 KB, image/png)
2014-02-24 10:36 UTC, Joonas Koivunen
Details
New crash information added by DrKonqi (8.08 KB, text/plain)
2014-03-07 04:28 UTC, Alexander Malakhov
Details
New crash information added by DrKonqi (10.90 KB, text/plain)
2014-03-23 16:22 UTC, Miguel Ângelo Mendes Ferreira
Details
New crash information added by DrKonqi (6.08 KB, text/plain)
2014-04-05 11:19 UTC, Massimiliano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joonas Koivunen 2014-02-24 10:35:34 UTC
Application: kcmshell4 ()
KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-58-generic x86_64
Distribution: Ubuntu 12.04.4 LTS

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

Checking the use NTP checkbox.

100% reproducable when NTP is not enabled:

1. Right click time widget on the right hand side bottom corner
2. Select "Adjust Date and Time..."
3. Check the "Set date and time automatically" box, use default ntp pool server
4. Close the dialog with "OK"

A bit later a error message box appears: "Unable to authenticate/execute the action 6.", "OK"'ing that causes the crash handler to appear.

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Control Module (kcmshell4), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fd82e2f4780 (LWP 3073))]

Thread 3 (Thread 0x7fd812fea700 (LWP 3074)):
#0  0x00007fd8294c9f69 in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fd8287e45b1 in g_mutex_lock (mutex=<optimized out>) at /build/buildd/glib2.0-2.32.4/./glib/gthread-posix.c:208
#2  0x00007fd8287a8811 in g_main_context_prepare (context=0xd61400, priority=0x7fd812fe9de8) at /build/buildd/glib2.0-2.32.4/./glib/gmain.c:2838
#3  0x00007fd8287a8f1b in g_main_context_iterate (dispatch=1, block=1, context=0xd61400, self=<optimized out>) at /build/buildd/glib2.0-2.32.4/./glib/gmain.c:3126
#4  g_main_context_iterate (context=0xd61400, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.4/./glib/gmain.c:3083
#5  0x00007fd8287a945a in g_main_loop_run (loop=0xd613b0) at /build/buildd/glib2.0-2.32.4/./glib/gmain.c:3340
#6  0x00007fd8132d35e6 in gdbus_shared_thread_func (user_data=<optimized out>) at /build/buildd/glib2.0-2.32.4/./gio/gdbusprivate.c:277
#7  0x00007fd8287ca9b5 in g_thread_proxy (data=0xd5df20) at /build/buildd/glib2.0-2.32.4/./glib/gthread.c:801
#8  0x00007fd8294c7e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#9  0x00007fd82dc203fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fd81198b700 (LWP 3075)):
#0  0x00007fd82dc14a43 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fd8287a8ff6 in g_main_context_poll (n_fds=1, fds=0x7fd800001ba0, timeout=-1, context=0x7fd8000009a0, priority=<optimized out>) at /build/buildd/glib2.0-2.32.4/./glib/gmain.c:3440
#2  g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x7fd8000009a0, self=<optimized out>) at /build/buildd/glib2.0-2.32.4/./glib/gmain.c:3141
#3  g_main_context_iterate (context=0x7fd8000009a0, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.4/./glib/gmain.c:3083
#4  0x00007fd8287a9124 in g_main_context_iteration (context=0x7fd8000009a0, may_block=1) at /build/buildd/glib2.0-2.32.4/./glib/gmain.c:3207
#5  0x00007fd82c806426 in QEventDispatcherGlib::processEvents (this=0x7fd8000008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007fd82c7d5c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fd82c7d5ed7 in QEventLoop::exec (this=0x7fd81198add0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fd82c6d4fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007fd82c7b59ff in QInotifyFileSystemWatcherEngine::run (this=0xbbbd30) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007fd82c6d7fcb in QThreadPrivate::start (arg=0xbbbd30) at thread/qthread_unix.cpp:298
#11 0x00007fd8294c7e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#12 0x00007fd82dc203fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd82e2f4780 (LWP 3073)):
[KCrash Handler]
#6  QObject::connect (sender=0x11f45a0, signal=<optimized out>, receiver=0x8f0450, method=0x7fd81d0833f1 "load()", type=Qt::AutoConnection) at kernel/qobject.cpp:2588
#7  0x00007fd82c7f495a in QSingleShotTimer::QSingleShotTimer (this=0x11f45a0, msec=5000, receiver=0x8f0450, member=0x7fd81d0833f0 "1load()") at kernel/qtimer.cpp:300
#8  0x00007fd82c7f4b0e in QTimer::singleShot (msec=5000, receiver=0x8f0450, member=0x7fd81d0833f0 "1load()") at kernel/qtimer.cpp:363
#9  0x00007fd81d081840 in ?? () from /usr/lib/kde4/kcm_clock.so
#10 0x00007fd82d90c997 in KCModuleProxy::save() () from /usr/lib/libkcmutils.so.4
#11 0x00007fd82d909890 in ?? () from /usr/lib/libkcmutils.so.4
#12 0x00007fd82c7eb281 in QMetaObject::activate (sender=0x8b73c0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff626126f0) at kernel/qobject.cpp:3547
#13 0x00007fd82d5875ef in KPushButton::authorized(KAuth::Action*) () from /usr/lib/libkdeui.so.5
#14 0x00007fd82c7eb281 in QMetaObject::activate (sender=0x8b73c0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff62612840) at kernel/qobject.cpp:3547
#15 0x00007fd82c1e9cb2 in QAbstractButton::clicked (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:220
#16 0x00007fd82bf27a8e in QAbstractButtonPrivate::emitClicked (this=<optimized out>) at widgets/qabstractbutton.cpp:548
#17 0x00007fd82bf28dcb in QAbstractButtonPrivate::click (this=0x87d910) at widgets/qabstractbutton.cpp:541
#18 0x00007fd82bf2903c in QAbstractButton::mouseReleaseEvent (this=0x8b73c0, e=0x7fff62613110) at widgets/qabstractbutton.cpp:1123
#19 0x00007fd82bbaa144 in QWidget::event (this=0x8b73c0, event=0x7fff62613110) at kernel/qwidget.cpp:8362
#20 0x00007fd82bb59894 in notify_helper (e=0x7fff62613110, receiver=0x8b73c0, this=0x6eee40) at kernel/qapplication.cpp:4559
#21 QApplicationPrivate::notify_helper (this=0x6eee40, receiver=0x8b73c0, e=0x7fff62613110) at kernel/qapplication.cpp:4531
#22 0x00007fd82bb5f0bf in QApplication::notify (this=<optimized out>, receiver=0x8b73c0, e=0x7fff62613110) at kernel/qapplication.cpp:4102
#23 0x00007fd82d4b93f6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#24 0x00007fd82c7d6e9c in QCoreApplication::notifyInternal (this=0x7fff62613e30, receiver=0x8b73c0, event=0x7fff62613110) at kernel/qcoreapplication.cpp:876
#25 0x00007fd82bb5a862 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#26 QApplicationPrivate::sendMouseEvent (receiver=0x8b73c0, event=0x7fff62613110, alienWidget=0x8b73c0, nativeWidget=0x86f7a0, buttonDown=0x8b73c0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3170
#27 0x00007fd82bbd9c35 in QETWidget::translateMouseEvent (this=0x86f7a0, event=<optimized out>) at kernel/qapplication_x11.cpp:4619
#28 0x00007fd82bbd8bee in QApplication::x11ProcessEvent (this=0x7fff62613e30, event=0x7fff626139e0) at kernel/qapplication_x11.cpp:3734
#29 0x00007fd82bc02112 in x11EventSourceDispatch (s=0x6f3070, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#30 0x00007fd8287a8d13 in g_main_dispatch (context=0x6f1e00) at /build/buildd/glib2.0-2.32.4/./glib/gmain.c:2539
#31 g_main_context_dispatch (context=0x6f1e00) at /build/buildd/glib2.0-2.32.4/./glib/gmain.c:3075
#32 0x00007fd8287a9060 in g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x6f1e00, self=<optimized out>) at /build/buildd/glib2.0-2.32.4/./glib/gmain.c:3146
#33 g_main_context_iterate (context=0x6f1e00, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.4/./glib/gmain.c:3083
#34 0x00007fd8287a9124 in g_main_context_iteration (context=0x6f1e00, may_block=1) at /build/buildd/glib2.0-2.32.4/./glib/gmain.c:3207
#35 0x00007fd82c806426 in QEventDispatcherGlib::processEvents (this=0x6cd770, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#36 0x00007fd82bc01d9e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#37 0x00007fd82c7d5c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#38 0x00007fd82c7d5ed7 in QEventLoop::exec (this=0x7fff62613d80, flags=...) at kernel/qeventloop.cpp:204
#39 0x00007fd82c029976 in QDialog::exec (this=0x86f7a0) at dialogs/qdialog.cpp:554
#40 0x00007fd82def3d2c in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_kcmshell4.so
#41 0x00007fd82db4d76d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#42 0x0000000000400671 in _start ()

Possible duplicates by query: bug 331247, bug 331112, bug 330892, bug 330464, bug 330294.

Reported using DrKonqi
Comment 1 Joonas Koivunen 2014-02-24 10:36:09 UTC
Created attachment 85302 [details]
The error message box
Comment 2 Joonas Koivunen 2014-02-24 10:38:21 UTC
Forgot to add; afterwards it seems that NTP setting persists (at least the box is checked when I reopen the dialog). However, there are no processes found by grepping "ps aux" output for ntp, so I guess it is not really enabled.

Saving settings with the box unchecked causes no problems.
Comment 3 Jekyll Wu 2014-02-25 00:41:33 UTC

*** This bug has been marked as a duplicate of bug 242648 ***
Comment 4 Alexander Malakhov 2014-03-07 04:28:52 UTC
Created attachment 85459 [details]
New crash information added by DrKonqi

kcmshell4 (4.11.5) on KDE Platform 4.11.5 using Qt 4.8.4

- What I was doing when the application crashed:
1. Opened start menu (ALT+F1)
2. search for "time"
3. choose "Date & Time" 
4. check "Set date and time automatically"
5. hit "Apply" twise - error shows up "Unable to authenticate/execute the action: 6, " (comma and space at end) 
6. "OK" on error message, all elements become non-clickable except buttons Help, OK, Cancel
7. hit "OK" twise - error from (5) shows up
8. "OK" on error, app crashes

-- Backtrace (Reduced):
#7  0x00007f273e8efc09 in QObject::connect (sender=sender@entry=0x2b09ea0, signal=0x7f273e9b46ad "timeout()", signal@entry=0x7f273e9b46ac "2timeout()", receiver=receiver@entry=0x1e55fd0, method=0x7f272f10d4fd "load()", method@entry=0x7f272f10d4fc "1load()", type=Qt::AutoConnection, type@entry=Qt::AutoCompatConnection) at kernel/qobject.cpp:2587
#8  0x00007f273e8f7b0c in QSingleShotTimer::QSingleShotTimer (this=0x2b09ea0, msec=5000, receiver=0x1e55fd0, member=0x7f272f10d4fc "1load()") at kernel/qtimer.cpp:300
#9  0x00007f273e8f7bce in QTimer::singleShot (msec=msec@entry=5000, receiver=receiver@entry=0x1e55fd0, member=member@entry=0x7f272f10d4fc "1load()") at kernel/qtimer.cpp:363
#10 0x00007f272f10c433 in KclockModule::save (this=0x1e55fd0) at ../../../kcontrol/dateandtime/main.cpp:113
#11 0x00007f273f9e42a7 in KCModuleProxy::save (this=this@entry=0x1e17e50) at ../../kutils/kcmoduleproxy.cpp:280
Comment 5 Miguel Ângelo Mendes Ferreira 2014-03-23 16:22:36 UTC
Created attachment 85703 [details]
New crash information added by DrKonqi

systemsettings (4.11.5) on KDE Platform 4.11.5 using Qt 4.8.4

- What I was doing when the application crashed:

Trying to set automatic adjustment of system clock by public NTP, via GUI.

- Unusual behavior I noticed:

System doesn't accept, crashes. Workaround is only by command line.
Using Kubuntu 13.10, KDELibs 4.11.5, Qt version 4.8.4
Kubuntu PPA enabled.

-- Backtrace (Reduced):
#7  0x00007fd415b16c09 in QObject::connect (sender=sender@entry=0x3e73460, signal=0x7fd415bdb6ad "timeout()", signal@entry=0x7fd415bdb6ac "2timeout()", receiver=receiver@entry=0x4ff9730, method=0x7fd3567914fd "load()", method@entry=0x7fd3567914fc "1load()", type=Qt::AutoConnection, type@entry=Qt::AutoCompatConnection) at kernel/qobject.cpp:2587
#8  0x00007fd415b1eb0c in QSingleShotTimer::QSingleShotTimer (this=0x3e73460, msec=5000, receiver=0x4ff9730, member=0x7fd3567914fc "1load()") at kernel/qtimer.cpp:300
#9  0x00007fd415b1ebce in QTimer::singleShot (msec=msec@entry=5000, receiver=receiver@entry=0x4ff9730, member=member@entry=0x7fd3567914fc "1load()") at kernel/qtimer.cpp:363
#10 0x00007fd356790433 in KclockModule::save (this=0x4ff9730) at ../../../kcontrol/dateandtime/main.cpp:113
#11 0x00007fd417ad32a7 in KCModuleProxy::save (this=<optimized out>) at ../../kutils/kcmoduleproxy.cpp:280
Comment 6 Massimiliano 2014-04-05 11:19:50 UTC
Created attachment 85964 [details]
New crash information added by DrKonqi

kcmshell4 (4.11.5) on KDE Platform 4.11.5 using Qt 4.8.5

- What I was doing when the application crashed:

Clicking "Ok" after setting the use of an NTP server and applying

-- Backtrace (Reduced):
#6  0x00007fbb759a3f57 in QObject::connect (sender=sender@entry=0x2def5c0, signal=0x7fbb75a6948d "timeout()", signal@entry=0x7fbb75a6948c "2timeout()", receiver=receiver@entry=0x2abdf50, method=0x7fbb5b345dc5 "load()", method@entry=0x7fbb5b345dc4 "1load()", type=Qt::AutoConnection, type@entry=Qt::AutoCompatConnection) at kernel/qobject.cpp:2600
#7  0x00007fbb759abe8c in QSingleShotTimer::QSingleShotTimer (this=0x2def5c0, msec=5000, receiver=0x2abdf50, member=0x7fbb5b345dc4 "1load()") at kernel/qtimer.cpp:300
#8  0x00007fbb759abf4e in QTimer::singleShot (msec=msec@entry=5000, receiver=receiver@entry=0x2abdf50, member=member@entry=0x7fbb5b345dc4 "1load()") at kernel/qtimer.cpp:363
#9  0x00007fbb5b344ca3 in KclockModule::save (this=0x2abdf50) at /usr/src/debug/kde-workspace-4.11.6/kcontrol/dateandtime/main.cpp:113
#10 0x00007fbb65af9927 in KCModuleProxy::save (this=this@entry=0x29d8fc0) at /usr/src/debug/kdelibs-4.11.5/kutils/kcmoduleproxy.cpp:280