Bug 355147

Summary: KDE crashes upon startup from suspend
Product: [Frameworks and Libraries] kdelibs Reporter: Brian Armstrong <barmstro>
Component: kdedAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Brian Armstrong 2015-11-10 18:50:32 UTC
Application: kded4 (4.14.11)
KDE Platform Version: 4.14.11
Qt Version: 4.8.6
Operating System: Linux 4.1.10-100.fc21.x86_64 x86_64
Distribution (Platform): Fedora RPMs

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

The computer frequently crashes upon restarting from a suspend:  averages one out of three occasions of restarting from a suspend.  This is not a problem with Fedora 19, but is a consistent problem with Fedora 20 and Fedora 21 using the same machine.  Will test with Fedora 23 soon.

The crash can be reproduced sometimes.

-- Backtrace:
Application: KDE Daemon (kded4), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7facd6ca7880 (LWP 3000))]

Thread 5 (Thread 0x7faca8dd2700 (LWP 3002)):
#0  0x00007facd52a41cd in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007faccff83d00 in g_wakeup_acknowledge (__nbytes=16, __buf=0x7faca8dd1b40, __fd=<optimized out>) at /usr/include/bits/unistd.h:44
#2  0x00007faccff83d00 in g_wakeup_acknowledge (wakeup=0x24c25c0) at gwakeup.c:210
#3  0x00007faccff405fc in g_main_context_check (context=context@entry=0x7faca40009a0, max_priority=2147483647, fds=fds@entry=0x7faca40013e0, n_fds=n_fds@entry=1) at gmain.c:3579
#4  0x00007faccff40ad3 in g_main_context_iterate (context=context@entry=0x7faca40009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3778
#5  0x00007faccff40c4c in g_main_context_iteration (context=0x7faca40009a0, may_block=1) at gmain.c:3842
#6  0x00007facd566657e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7faca40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#7  0x00007facd5635d81 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7faca8dd1d50, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007facd56360e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7faca8dd1d50, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007facd552abb9 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:538
#10 0x00007facd552d41f in QThreadPrivate::start(void*) (arg=0x27bad80) at thread/qthread_unix.cpp:349
#11 0x00007facd529c52a in start_thread (arg=0x7faca8dd2700) at pthread_create.c:310
#12 0x00007facd386422d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7faca287b700 (LWP 3025)):
#0  0x00007faccff3dbc6 in g_source_iter_next (iter=iter@entry=0x7faca287ab40, source=source@entry=0x7faca287ab38) at gmain.c:926
#1  0x00007faccff4049b in g_main_context_check (context=context@entry=0x7fac9c0009a0, max_priority=2147483647, fds=fds@entry=0x7fac9c003210, n_fds=n_fds@entry=1) at gmain.c:3602
#2  0x00007faccff40ad3 in g_main_context_iterate (context=context@entry=0x7fac9c0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3778
#3  0x00007faccff40c4c in g_main_context_iteration (context=0x7fac9c0009a0, may_block=1) at gmain.c:3842
#4  0x00007facd566657e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fac9c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#5  0x00007facd5635d81 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7faca287ad00, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007facd56360e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7faca287ad00, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007facd552abb9 in QThread::exec() (this=this@entry=0x293f780) at thread/qthread.cpp:538
#8  0x00007facd56166e3 in QInotifyFileSystemWatcherEngine::run() (this=0x293f780) at io/qfilesystemwatcher_inotify.cpp:265
#9  0x00007facd552d41f in QThreadPrivate::start(void*) (arg=0x293f780) at thread/qthread_unix.cpp:349
#10 0x00007facd529c52a in start_thread (arg=0x7faca287b700) at pthread_create.c:310
#11 0x00007facd386422d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7fac9a504700 (LWP 3068)):
#0  0x00007facd6af7e06 in _dl_update_slotinfo (req_modid=<optimized out>) at dl-tls.c:719
#1  0x00007facd6af7e3c in update_get_addr (ti=0x7facd599da50) at dl-tls.c:781
#2  0x00007facd552c004 in QThreadData::current() () at thread/qthread_unix.cpp:188
#3  0x00007facd552c004 in QThreadData::current() () at thread/qthread_unix.cpp:219
#4  0x00007facd5665f15 in postEventSourcePrepare(GSource*, gint*) (s=0x7fac780012e0, timeout=0x0) at kernel/qeventdispatcher_glib.cpp:265
#5  0x00007faccff40551 in g_main_context_check (context=context@entry=0x7fac780009a0, max_priority=2147483647, fds=fds@entry=0x7fac780013e0, n_fds=n_fds@entry=1) at gmain.c:3622
#6  0x00007faccff40ad3 in g_main_context_iterate (context=context@entry=0x7fac780009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3778
#7  0x00007faccff40c4c in g_main_context_iteration (context=0x7fac780009a0, may_block=1) at gmain.c:3842
#8  0x00007facd566657e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fac780008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#9  0x00007facd5635d81 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fac9a503d10, flags=...) at kernel/qeventloop.cpp:149
#10 0x00007facd56360e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fac9a503d10, flags=...) at kernel/qeventloop.cpp:204
#11 0x00007facd552abb9 in QThread::exec() (this=this@entry=0x27f82b0) at thread/qthread.cpp:538
#12 0x00007facaa18ac47 in KCupsConnection::run() (this=0x27f82b0) at /usr/src/debug/print-manager-14.12.3/libkcups/KCupsConnection.cpp:303
#13 0x00007facd552d41f in QThreadPrivate::start(void*) (arg=0x27f82b0) at thread/qthread_unix.cpp:349
#14 0x00007facd529c52a in start_thread (arg=0x7fac9a504700) at pthread_create.c:310
#15 0x00007facd386422d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7fac99d03700 (LWP 3069)):
#0  0x00007faccff85199 in g_mutex_lock (mutex=mutex@entry=0x7fac840009a0) at gthread-posix.c:1331
#1  0x00007faccff40109 in g_main_context_prepare (context=context@entry=0x7fac840009a0, priority=priority@entry=0x7fac99d02c10) at gmain.c:3401
#2  0x00007faccff40a5b in g_main_context_iterate (context=context@entry=0x7fac840009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3761
#3  0x00007faccff40c4c in g_main_context_iteration (context=0x7fac840009a0, may_block=1) at gmain.c:3842
#4  0x00007facd566657e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fac840008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#5  0x00007facd5635d81 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fac99d02d50, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007facd56360e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fac99d02d50, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007facd552abb9 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:538
#8  0x00007facd552d41f in QThreadPrivate::start(void*) (arg=0x2600160) at thread/qthread_unix.cpp:349
#9  0x00007facd529c52a in start_thread (arg=0x7fac99d03700) at pthread_create.c:310
#10 0x00007facd386422d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7facd6ca7880 (LWP 3000)):
[KCrash Handler]
#6  0x00007facd37988d7 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#7  0x00007facd379a53a in __GI_abort () at abort.c:89
#8  0x00007facd37dbda3 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7facd38eb2f0 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#9  0x00007facd37e79f5 in __GI___libc_free (ptr=<optimized out>, str=0x7facd38e8f2d "free(): invalid size", action=<optimized out>) at malloc.c:4974
#10 0x00007facd37e79f5 in __GI___libc_free (have_lock=0, p=<optimized out>, av=<optimized out>) at malloc.c:3841
#11 0x00007facd37e79f5 in __GI___libc_free (mem=<optimized out>) at malloc.c:2951
#12 0x00007facd55e60e7 in QUrlPrivate::parse(QUrlPrivate::ParseOptions) const (this=0x2dc9e20, parseOptions=parseOptions@entry=QUrlPrivate::ParseAndSet) at io/qurl.cpp:3920
#13 0x00007facd55eaeb7 in QUrl::isValid() const (this=this@entry=0x7ffe6d81a190) at io/qurl.cpp:4296
#14 0x00007facd5d4d07d in KUrl::_setEncodedUrl(QByteArray const&) (this=this@entry=0x7ffe6d81a190, url=...) at /usr/src/debug/kdelibs-4.14.12/kdecore/io/kurl.cpp:1600
#15 0x00007facd5d4d54e in KUrl::KUrl(QByteArray const&) (this=0x7ffe6d81a190, str=...) at /usr/src/debug/kdelibs-4.14.12/kdecore/io/kurl.cpp:485
#16 0x00007facc423b728 in KBookmark::url() const (this=this@entry=0x2dc9b48) at /usr/src/debug/kdelibs-4.14.12/kio/bookmarks/kbookmark.cc:340
#17 0x00007facad6587fa in KFilePlacesItem::hasFullIcon(KBookmark const&) const (this=this@entry=0x2dc9b30, bookmark=...) at /usr/src/debug/kdelibs-4.14.12/kfile/kfileplacesitem.cpp:314
#18 0x00007facad6595fa in KFilePlacesItem::KFilePlacesItem(KBookmarkManager*, QString const&, QString const&) (this=0x2dc9b30, manager=<optimized out>, address=..., udi=...) at /usr/src/debug/kdelibs-4.14.12/kfile/kfileplacesitem.cpp:49
#19 0x00007facad65bd6e in KFilePlacesModel::Private::loadBookmarkList() (this=this@entry=0x293bb30) at /usr/src/debug/kdelibs-4.14.12/kfile/kfileplacesmodel.cpp:453
#20 0x00007facad65c1a3 in KFilePlacesModel::Private::_k_reloadBookmarks() (this=0x293bb30) at /usr/src/debug/kdelibs-4.14.12/kfile/kfileplacesmodel.cpp:362
#21 0x00007facad65d5f1 in KFilePlacesModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x25dc030, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /usr/src/debug/kdelibs-4.14.12/x86_64-redhat-linux-gnu/kfile/kfileplacesmodel.moc:71
#22 0x00007facd564bd9c in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x293be00, m=m@entry=0x7facc4536500 <KBookmarkManager::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffe6d81a560) at kernel/qobject.cpp:3567
#23 0x00007facc4240ba5 in KBookmarkManager::bookmarksChanged(QString) (this=this@entry=0x293be00, _t1=...) at /usr/src/debug/kdelibs-4.14.12/x86_64-redhat-linux-gnu/kio/kbookmarkmanager.moc:139
#24 0x00007facc424648e in KBookmarkManager::emitChanged(KBookmarkGroup const&) (this=0x293be00, group=...) at /usr/src/debug/kdelibs-4.14.12/kio/bookmarks/kbookmarkmanager.cc:558
#25 0x00007facad65a0b1 in KFilePlacesModel::Private::reloadAndSignal() (this=0x293bb30) at /usr/src/debug/kdelibs-4.14.12/kfile/kfileplacesmodel.cpp:481
#26 0x00007facad65a4a6 in KFilePlacesModel::removePlace(QModelIndex const&) const (this=0x25dc030, index=...) at /usr/src/debug/kdelibs-4.14.12/kfile/kfileplacesmodel.cpp:707
#27 0x00007faca2ab09fe in BlueDevilDaemon::offlineMode() () at /usr/lib64/kde4/kded_bluedevil.so
#28 0x00007faca2ab17fc in BlueDevilDaemon::usableAdapterChanged(BlueDevil::Adapter*) () at /usr/lib64/kde4/kded_bluedevil.so
#29 0x00007faca2aae354 in BlueDevilDaemon::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) [clone .part.9] () at /usr/lib64/kde4/kded_bluedevil.so
#30 0x00007facd564bd9c in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=0x2923300, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffe6d81a7e0) at kernel/qobject.cpp:3567
#31 0x00007faca2884d22 in BlueDevil::Manager::usableAdapterChanged(BlueDevil::Adapter*) () at /lib64/libbluedevil.so.2
#32 0x00007facd564bd9c in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=0x29252d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffe6d81a920) at kernel/qobject.cpp:3567
#33 0x00007faca288e9d2 in BlueDevil::Adapter::poweredChanged(bool) () at /lib64/libbluedevil.so.2
#34 0x00007faca288eebd in BlueDevil::Adapter::Private::_k_propertyChanged(QString const&, QMap<QString, QVariant> const&, QStringList const&) () at /lib64/libbluedevil.so.2
#35 0x00007facd564bd9c in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=0x29255d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffe6d81abd0) at kernel/qobject.cpp:3567
#36 0x00007faca289583c in OrgFreedesktopDBusPropertiesInterface::PropertiesChanged(QString const&, QMap<QString, QVariant> const&, QStringList const&) () at /lib64/libbluedevil.so.2
#37 0x00007faca2895aad in OrgFreedesktopDBusPropertiesInterface::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () at /lib64/libbluedevil.so.2
#38 0x00007faca2896013 in OrgFreedesktopDBusPropertiesInterface::qt_metacall(QMetaObject::Call, int, void**) () at /lib64/libbluedevil.so.2
#39 0x00007facd59c4696 in QDBusConnectionPrivate::deliverCall(QObject*, int, QDBusMessage const&, QList<int> const&, int) (this=0x27bafc0, object=0x29255d0, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:951
#40 0x00007facd5650491 in QObject::event(QEvent*) (this=0x29255d0, e=<optimized out>) at kernel/qobject.cpp:1222
#41 0x00007facd476eefc in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x256e240, receiver=receiver@entry=0x29255d0, e=e@entry=0x2ebf970) at kernel/qapplication.cpp:4565
#42 0x00007facd4775958 in QApplication::notify(QObject*, QEvent*) (this=this@entry=0x7ffe6d81b610, receiver=receiver@entry=0x29255d0, e=e@entry=0x2ebf970) at kernel/qapplication.cpp:4351
#43 0x00007facd669ae0a in KApplication::notify(QObject*, QEvent*) (this=0x7ffe6d81b610, receiver=0x29255d0, event=0x2ebf970) at /usr/src/debug/kdelibs-4.14.12/kdeui/kernel/kapplication.cpp:311
#44 0x00007facd563722d in QCoreApplication::notifyInternal(QObject*, QEvent*) (this=0x7ffe6d81b610, receiver=receiver@entry=0x29255d0, event=event@entry=0x2ebf970) at kernel/qcoreapplication.cpp:953
#45 0x00007facd563a4f1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (event=0x2ebf970, receiver=0x29255d0) at kernel/qcoreapplication.h:231
#46 0x00007facd563a4f1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x24c4ff0) at kernel/qcoreapplication.cpp:1577
#47 0x00007facd563a983 in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#48 0x00007facd56663ee in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) () at kernel/qcoreapplication.h:236
#49 0x00007facd56663ee in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x256cb40) at kernel/qeventdispatcher_glib.cpp:300
#50 0x00007faccff407fb in g_main_context_dispatch (context=0x256e450) at gmain.c:3111
#51 0x00007faccff407fb in g_main_context_dispatch (context=context@entry=0x256e450) at gmain.c:3710
#52 0x00007faccff40b98 in g_main_context_iterate (context=context@entry=0x256e450, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3781
#53 0x00007faccff40c4c in g_main_context_iteration (context=0x256e450, may_block=1) at gmain.c:3842
#54 0x00007facd566655e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x25748c0, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#55 0x00007facd4812176 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#56 0x00007facd5635d81 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffe6d81b4f0, flags=...) at kernel/qeventloop.cpp:149
#57 0x00007facd56360e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffe6d81b4f0, flags=...) at kernel/qeventloop.cpp:204
#58 0x00007facd563b7c9 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1225
#59 0x00007facd476d39c in QApplication::exec() () at kernel/qapplication.cpp:3823
#60 0x00007facb4d9b5d9 in kdemain(int, char**) (argc=1, argv=0x2533030) at /usr/src/debug/kdelibs-4.14.12/kded/kded.cpp:940
#61 0x000000000040825d in launch(int, char const*, char const*, char const*, int, char const*, bool, char const*, bool, char const*) (argc=argc@entry=1, _name=_name@entry=0x40ac00 "kded4", args=args@entry=0x0, cwd=cwd@entry=0x0, envc=envc@entry=0, envs=<optimized out>, envs@entry=0x0, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x40aa8e "0") at /usr/src/debug/kdelibs-4.14.12/kinit/kinit.cpp:726
#62 0x0000000000405a64 in main(int, char**, char**) (argc=4, argv=<optimized out>, envp=0x7ffe6d81bd70) at /usr/src/debug/kdelibs-4.14.12/kinit/kinit.cpp:1841

Possible duplicates by query: bug 352700, bug 347134, bug 346742, bug 309216, bug 306284.

Reported using DrKonqi
Comment 1 Brian Armstrong 2015-11-14 17:26:27 UTC
The crashes have been significantly reduced after checking the journald settings in KDE's "systemd" system administration app.  The "Store journal entries for:" "Time-based rotation" had been set to 0 days.  This caused the journald to dismiss the needed logs for resuming.
The crashes have not appeared during the three days of daily testing after inserting 3 days for the "Store journal entries for:" setting.

Anyone know what is the default setting?  Anyone know what is the recommended setting for best security needs for notebooks, desktops or servers?
Comment 2 Andrew Crouthamel 2018-11-01 13:49:06 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2018-11-16 11:35:51 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2018-12-01 03:49:59 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!