Bug 320175 - Crash on resume from sleep
Summary: Crash on resume from sleep
Status: RESOLVED DUPLICATE of bug 288410
Alias: None
Product: solid
Classification: Frameworks and Libraries
Component: libsolid-upower (show other bugs)
Version: 4.10.2
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Lukáš Tinkl
URL:
Keywords:
: 320619 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-05-23 14:41 UTC by Christopher Heiny
Modified: 2013-08-31 04:44 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (10.66 KB, text/plain)
2013-06-14 09:29 UTC, Laurent Bonnaud
Details
New crash information added by DrKonqi (9.38 KB, text/plain)
2013-07-03 23:21 UTC, Christopher Heiny
Details
New crash information added by DrKonqi (7.32 KB, text/plain)
2013-07-14 08:07 UTC, Alberto M. Fornasari
Details
New crash information added by DrKonqi (12.38 KB, text/plain)
2013-07-17 15:23 UTC, David
Details
New crash information added by DrKonqi (9.41 KB, text/plain)
2013-08-31 04:44 UTC, Adrian Piotrowicz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Heiny 2013-05-23 14:41:56 UTC
Application: kded4 ($Id$)
KDE Platform Version: 4.10.2
Qt Version: 4.8.4
Operating System: Linux 3.9.2-200.fc18.x86_64 x86_64
Distribution: "Fedora release 18 (Spherical Cow)"

-- Information about the crash:
Put laptop to sleep with battery at about 25% (above first low battery warning level).   Closed the lid.  Approximately 7.5 hours later, opened the lid and the system woke back up.  Several "alert noises" occurred immediately.  After unlocking the screen, was greeted with the CRA.  Battery level was at 7% (below first warning level, above critical warning level).

Applications running at the time:
    Akregator
    Firefox
    Gwenview
    KMail2
    Konsole
    Xosview

I think this might be a duplicate of an existing bug, which has been closed due to lack of information. I'm submitting as a separate bug, in the hope that if it is a duplicate, I can provide the required information needed for resolution.

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

Thread 5 (Thread 0x7f018d94d700 (LWP 1609)):
#0  0x0000003c2b2e99ad in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003c2ee47d24 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7f0188002c00, timeout=-1, context=0x7f01880009a0) at gmain.c:3584
#2  g_main_context_iterate (context=context@entry=0x7f01880009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3285
#3  0x0000003c2ee47e44 in g_main_context_iteration (context=0x7f01880009a0, may_block=1) at gmain.c:3351
#4  0x0000003c36fa5fa6 in QEventDispatcherGlib::processEvents (this=0x7f01880008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x0000003c36f765ef in QEventLoop::processEvents (this=this@entry=0x7f018d94ccd0, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003c36f76878 in QEventLoop::exec (this=0x7f018d94ccd0, flags=...) at kernel/qeventloop.cpp:204
#7  0x0000003c36e78980 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#8  0x0000003c36f56e1f in QInotifyFileSystemWatcherEngine::run (this=0x28cb6f0) at io/qfilesystemwatcher_inotify.cpp:256
#9  0x0000003c36e7b95c in QThreadPrivate::start (arg=0x28cb6f0) at thread/qthread_unix.cpp:338
#10 0x0000003c2be07d15 in start_thread (arg=0x7f018d94d700) at pthread_create.c:308
#11 0x0000003c2b2f248d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 4 (Thread 0x7f016ef2c700 (LWP 1674)):
#0  __GI___pthread_mutex_lock (mutex=0x7f0158000a60) at pthread_mutex_lock.c:128
#1  0x0000003c2ee84da1 in g_mutex_lock (mutex=mutex@entry=0x7f01580009a0) at gthread-posix.c:210
#2  0x0000003c2ee47d0a in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7f01580040e0, timeout=-1, context=0x7f01580009a0) at gmain.c:3579
#3  g_main_context_iterate (context=context@entry=0x7f01580009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3285
#4  0x0000003c2ee47e44 in g_main_context_iteration (context=0x7f01580009a0, may_block=1) at gmain.c:3351
#5  0x0000003c36fa5fa6 in QEventDispatcherGlib::processEvents (this=0x7f01580008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x0000003c36f765ef in QEventLoop::processEvents (this=this@entry=0x7f016ef2bcc0, flags=...) at kernel/qeventloop.cpp:149
#7  0x0000003c36f76878 in QEventLoop::exec (this=0x7f016ef2bcc0, flags=...) at kernel/qeventloop.cpp:204
#8  0x0000003c36e78980 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#9  0x00007f018f98d2d5 in KCupsConnection::run() () from /lib64/libkcupslib.so
#10 0x0000003c36e7b95c in QThreadPrivate::start (arg=0x27a3890) at thread/qthread_unix.cpp:338
#11 0x0000003c2be07d15 in start_thread (arg=0x7f016ef2c700) at pthread_create.c:308
#12 0x0000003c2b2f248d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 3 (Thread 0x7f016e72b700 (LWP 1675)):
#0  __GI___pthread_mutex_lock (mutex=0x7f014c000a60) at pthread_mutex_lock.c:50
#1  0x0000003c2ee84da1 in g_mutex_lock (mutex=mutex@entry=0x7f014c0009a0) at gthread-posix.c:210
#2  0x0000003c2ee47936 in g_main_context_dispatch (context=context@entry=0x7f014c0009a0) at gmain.c:3215
#3  0x0000003c2ee47d88 in g_main_context_iterate (context=context@entry=0x7f014c0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3290
#4  0x0000003c2ee47e44 in g_main_context_iteration (context=0x7f014c0009a0, may_block=1) at gmain.c:3351
#5  0x0000003c36fa5fa6 in QEventDispatcherGlib::processEvents (this=0x7f014c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x0000003c36f765ef in QEventLoop::processEvents (this=this@entry=0x7f016e72ad00, flags=...) at kernel/qeventloop.cpp:149
#7  0x0000003c36f76878 in QEventLoop::exec (this=0x7f016e72ad00, flags=...) at kernel/qeventloop.cpp:204
#8  0x0000003c36e78980 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#9  0x0000003c36e7b95c in QThreadPrivate::start (arg=0x25bfd00) at thread/qthread_unix.cpp:338
#10 0x0000003c2be07d15 in start_thread (arg=0x7f016e72b700) at pthread_create.c:308
#11 0x0000003c2b2f248d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 2 (Thread 0x7f016d6e2700 (LWP 1682)):
#0  0x0000003c2b2e99ad in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003c2ee47d24 in g_main_context_poll (priority=2147483647, n_fds=3, fds=0x7f01500010c0, timeout=-1, context=0x29bfb20) at gmain.c:3584
#2  g_main_context_iterate (context=0x29bfb20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3285
#3  0x0000003c2ee48182 in g_main_loop_run (loop=0x29bfab0) at gmain.c:3484
#4  0x0000003c378cc546 in gdbus_shared_thread_func (user_data=0x29bfaf0) at gdbusprivate.c:277
#5  0x0000003c2ee6b605 in g_thread_proxy (data=0x29d6720) at gthread.c:797
#6  0x0000003c2be07d15 in start_thread (arg=0x7f016d6e2700) at pthread_create.c:308
#7  0x0000003c2b2f248d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 1 (Thread 0x7f019a9fd880 (LWP 1600)):
[KCrash Handler]
#6  0x00000030c7693dbe in Solid::Backends::UPower::Battery::slotChanged (this=0x29ec830) at /usr/src/debug/kdelibs-4.10.2/solid/solid/backends/upower/upowerbattery.cpp:128
#7  0x0000003c36f8cd6f in QMetaObject::activate (sender=0x29eaba0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#8  0x0000003c36f8cd6f in QMetaObject::activate (sender=0x29eabb0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffb6cd0c40) at kernel/qobject.cpp:3539
#9  0x0000003c394378e1 in QDBusInterfacePrivate::metacall (this=0x2acc490, c=<optimized out>, id=0, argv=0x7fffb6cd0c40) at qdbusinterface.cpp:278
#10 0x0000003c39422f93 in QDBusConnectionPrivate::deliverCall (this=0x2786b20, object=0x29eabb0, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:951
#11 0x0000003c36f8c24e in QObject::event (this=0x29eabb0, e=<optimized out>) at kernel/qobject.cpp:1194
#12 0x0000003c3afca5cc in QApplicationPrivate::notify_helper (this=this@entry=0x25c08d0, receiver=receiver@entry=0x29eabb0, e=e@entry=0x27ca600) at kernel/qapplication.cpp:4562
#13 0x0000003c3afcea4a in QApplication::notify (this=0x7fffb6cd1840, receiver=0x29eabb0, e=0x27ca600) at kernel/qapplication.cpp:4423
#14 0x00000030c6c46f16 in KApplication::notify (this=0x7fffb6cd1840, receiver=0x29eabb0, event=0x27ca600) at /usr/src/debug/kdelibs-4.10.2/kdeui/kernel/kapplication.cpp:311
#15 0x0000003c36f7793e in QCoreApplication::notifyInternal (this=0x7fffb6cd1840, receiver=receiver@entry=0x29eabb0, event=event@entry=0x27ca600) at kernel/qcoreapplication.cpp:949
#16 0x0000003c36f7b3f1 in sendEvent (event=0x27ca600, receiver=0x29eabb0) at kernel/qcoreapplication.h:231
#17 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x258a0e0) at kernel/qcoreapplication.cpp:1573
#18 0x0000003c36fa5df3 in sendPostedEvents () at kernel/qcoreapplication.h:236
#19 postEventSourceDispatch (s=s@entry=0x25c1ec0) at kernel/qeventdispatcher_glib.cpp:279
#20 0x0000003c2ee47a55 in g_main_dispatch (context=0x25c1e00) at gmain.c:2715
#21 g_main_context_dispatch (context=context@entry=0x25c1e00) at gmain.c:3219
#22 0x0000003c2ee47d88 in g_main_context_iterate (context=context@entry=0x25c1e00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3290
#23 0x0000003c2ee47e44 in g_main_context_iteration (context=0x25c1e00, may_block=1) at gmain.c:3351
#24 0x0000003c36fa5f86 in QEventDispatcherGlib::processEvents (this=0x258ba40, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#25 0x0000003c3b06a73e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#26 0x0000003c36f765ef in QEventLoop::processEvents (this=this@entry=0x7fffb6cd15c0, flags=...) at kernel/qeventloop.cpp:149
#27 0x0000003c36f76878 in QEventLoop::exec (this=0x7fffb6cd15c0, flags=...) at kernel/qeventloop.cpp:204
#28 0x0000003c36f7b708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#29 0x00000030c9008510 in kdemain (argc=1, argv=0x7fffb6cd1988) at /usr/src/debug/kdelibs-4.10.2/kded/kded.cpp:924
#30 0x0000003c2b221a05 in __libc_start_main (main=0x4007e0 <main(int, char**)>, argc=1, ubp_av=0x7fffb6cd1988, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffb6cd1978) at libc-start.c:225
#31 0x0000000000400811 in _start ()

This bug may be a duplicate of or related to bug 288410.

Possible duplicates by query: bug 317733, bug 317171, bug 316366, bug 315125, bug 307243.

Reported using DrKonqi
Comment 1 Jekyll Wu 2013-06-03 02:54:55 UTC
*** Bug 320619 has been marked as a duplicate of this bug. ***
Comment 2 Laurent Bonnaud 2013-06-14 09:29:03 UTC
Created attachment 80512 [details]
New crash information added by DrKonqi

kded4 (4.10.4) on KDE Platform 4.10.4 using Qt 4.8.4

- What I was doing when the application crashed:

I was resuming my laptop and the battery level was low (9%).

I report this because this occurred with a more recent KDE version and another distribution.

-- Backtrace (Reduced):
#6  Solid::Backends::UPower::Battery::slotChanged (this=0x16e2e10) at ../../../solid/solid/backends/upower/upowerbattery.cpp:128
[...]
#9  0x00007f0d707ec781 in QDBusInterfacePrivate::metacall (this=0x1624a80, c=<optimized out>, id=0, argv=0x7fff26582c30) at qdbusinterface.cpp:278
#10 0x00007f0d707d9063 in QDBusConnectionPrivate::deliverCall (this=0x14336a0, object=0x17974e0, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:951
#11 0x00007f0d734305be in QObject::event (this=0x17974e0, e=<optimized out>) at kernel/qobject.cpp:1194
#12 0x00007f0d727bc8ec in QApplicationPrivate::notify_helper (this=this@entry=0x12d9c90, receiver=receiver@entry=0x17974e0, e=e@entry=0x161ac00) at kernel/qapplication.cpp:4567
Comment 3 Christopher Heiny 2013-07-03 23:21:59 UTC
Created attachment 80935 [details]
New crash information added by DrKonqi

kded4 (4.10.4) on KDE Platform 4.10.4 using Qt 4.8.4

It looks like I was able to reproduce this one.  System is a Thinkpad W510.  Here's the scenario:

1) Battery level was about 8%, and I plugged in an aftermarket charger.  

2) Battery icon switched to empty battery with plug, and a red-X-in-a-circle; hover help reported the charger was plugged in, but no charge percentage was shown in the hover-help.

3)  This persisted for a bit, so I unplugged the charger to see what the battery charge was.

4) Battery icon switch to almost empty battery with a red line at the bottom.  Hover-help reported 10% charge.

5) I plugged the charger back in, a bunch of alert noises occurred, the battery icon switched back to the red-X version, and the Crash Reporting Assistant popped up.

-- Backtrace (Reduced):
#6  Solid::Backends::UPower::Battery::slotChanged (this=0x1e8bbb0) at /usr/src/debug/kdelibs-4.10.4/solid/solid/backends/upower/upowerbattery.cpp:128
[...]
#9  0x0000003c394378e1 in QDBusInterfacePrivate::metacall (this=0x234fa00, c=<optimized out>, id=0, argv=0x7fff6eb0b410) at qdbusinterface.cpp:278
#10 0x0000003c39422f93 in QDBusConnectionPrivate::deliverCall (this=0x1b22370, object=0x24ddb80, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:951
#11 0x0000003c36f8c24e in QObject::event (this=0x24ddb80, e=<optimized out>) at kernel/qobject.cpp:1194
#12 0x000000396a1ca5cc in QApplicationPrivate::notify_helper (this=this@entry=0x19908a0, receiver=receiver@entry=0x24ddb80, e=e@entry=0x2257370) at kernel/qapplication.cpp:4562
Comment 4 Alberto M. Fornasari 2013-07-14 08:07:26 UTC
Created attachment 81104 [details]
New crash information added by DrKonqi

kded4 (4.10.80) on KDE Platform 4.10.80 using Qt 4.8.4

- What I was doing when the application crashed: I had resumed from sleep my laptop that was with low battery power (at least 18%); then I heard several warning sounds.

-- Backtrace (Reduced):
#6  Solid::Backends::UPower::Battery::slotChanged (this=0x26a0540) at /chakra/desktop-testing/kdelibs/src/kdelibs-4.10.90/solid/solid/backends/upower/upowerbattery.cpp:139
[...]
#9  0x00007fc2dc120e01 in QDBusInterfacePrivate::metacall (this=0x280b4e0, c=<optimized out>, id=0, argv=0x7fffcc88b3f0) at qdbusinterface.cpp:278
#10 0x00007fc2dc10b664 in QDBusConnectionPrivate::deliverCall (this=0x26c8550, object=0x2803670, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:951
#11 0x00007fc2df47636e in QObject::event (this=0x2803670, e=<optimized out>) at kernel/qobject.cpp:1194
#12 0x00007fc2de53f021 in QApplicationPrivate::notify_helper (this=this@entry=0x2480060, receiver=receiver@entry=0x2803670, e=e@entry=0x23ce7b0) at kernel/qapplication.cpp:4562
Comment 5 David 2013-07-17 15:23:18 UTC
Created attachment 81162 [details]
New crash information added by DrKonqi

kded4 (4.10.4) on KDE Platform 4.10.4 using Qt 4.8.4

- What I was doing when the application crashed:

This happened to me when I resumed from sleep but the battery was Not low, I got the crash report and it acted like the battery was critical (trying to hibernate) repeatedly until I plugged in the AC.

-- Backtrace (Reduced):
#6  Solid::Backends::UPower::Battery::slotChanged (this=0x3028590) at ../../../solid/solid/backends/upower/upowerbattery.cpp:128
[...]
#9  0x00007f0848ac7781 in QDBusInterfacePrivate::metacall (this=0x29fa110, c=<optimized out>, id=0, argv=0x7fff4c1c4110) at qdbusinterface.cpp:278
#10 0x00007f0848ab4063 in QDBusConnectionPrivate::deliverCall (this=0x24b95d0, object=0x28200f0, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:951
#11 0x00007f084b70b5be in QObject::event (this=0x28200f0, e=<optimized out>) at kernel/qobject.cpp:1194
#12 0x00007f084aa978ec in QApplicationPrivate::notify_helper (this=this@entry=0x23680a0, receiver=receiver@entry=0x28200f0, e=e@entry=0x26a9dc0) at kernel/qapplication.cpp:4567
Comment 6 Alex Fiestas 2013-07-28 22:52:06 UTC
this has been fixed at least in 4.11, and maybe also in latest 4.10

Thanks for reporting !
Comment 7 Alex Fiestas 2013-07-28 22:55:10 UTC

*** This bug has been marked as a duplicate of bug 288410 ***
Comment 8 Adrian Piotrowicz 2013-08-31 04:44:11 UTC
Created attachment 82048 [details]
New crash information added by DrKonqi

kded4 (4.11.00) on KDE Platform 4.11.00 using Qt 4.8.4

- What I was doing when the application crashed:

I've put my laptop to sleep by hand and after wakeup it greeted me with KDE Daemon crash report.

-- Backtrace (Reduced):
#8  0x00007f11239bb781 in QDBusInterfacePrivate::metacall (this=0xa61f70, c=<optimized out>, id=0, argv=0x7fff0dd8f4a0) at qdbusinterface.cpp:278
#9  0x00007f11239a8063 in QDBusConnectionPrivate::deliverCall (this=0x957dc0, object=0xce5980, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:951
#10 0x00007f11265ff5be in QObject::event (this=0xce5980, e=<optimized out>) at kernel/qobject.cpp:1194
#11 0x00007f112598b8ec in QApplicationPrivate::notify_helper (this=this@entry=0x7ef9b0, receiver=receiver@entry=0xce5980, e=e@entry=0x1166040) at kernel/qapplication.cpp:4567
#12 0x00007f112598e25b in QApplication::notify (this=0x7fff0dd900a0, receiver=0xce5980, e=0x1166040) at kernel/qapplication.cpp:4428