Bug 490841

Summary: Energy saver of KDE crashes when PC idles
Product: [Plasma] Powerdevil Reporter: stakanov.s
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: me, natalie_clarius, nicolas.fella
Priority: NOR Keywords: drkonqi
Version: 6.1.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/43128/events/2fd0dc188fef49d0b82ad6f3188ea3b4/

Description stakanov.s 2024-07-26 08:06:29 UTC
Application: org_kde_powerdevil (6.1.3)

Qt Version: 6.7.2
Frameworks Version: 6.4.0
Operating System: Linux 6.9.9-1-default x86_64
Windowing System: X11
Distribution: openSUSE Tumbleweed
DrKonqi: 6.1.3 [CoredumpBackend]

-- Information about the crash:
Session is KDE X-server. I am using an UPS from APC via "smart usb" with their proprietary driver. The settings of the ups touch only the use of the battery when the current is failing. In the case of the crash (the crashes) there are no powerevents, the machine just idles.

The crash can be reproduced every time.

-- Backtrace:
Application: Il Sistema di Gestione Energetica per KDE (org_kde_powerdevil), signal: Segmentation fault

[New LWP 21378]
[New LWP 21394]
[New LWP 21404]
[New LWP 21405]
[New LWP 21393]
[New LWP 21389]
[New LWP 21390]
[New LWP 21421]
[New LWP 21410]
[New LWP 21408]
[New LWP 21423]
[New LWP 21422]

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.opensuse.org/>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/libexec/org_kde_powerdevil'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fa3916949dc in __pthread_kill_implementation () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7fa38bfedac0 (LWP 21378))]
python sentry-sdk not installed :(
Cannot QML trace cores :(
[Current thread is 1 (Thread 0x7fa38bfedac0 (LWP 21378))]

Thread 12 (Thread 0x7fa36f4006c0 (LWP 21422)):
#0  0x00007fa39170578f in poll () from /lib64/libc.so.6
#1  0x00007fa39051434f in ?? () from /lib64/libglib-2.0.so.0
#2  0x00007fa390514a5c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007fa390514aa1 in ?? () from /lib64/libglib-2.0.so.0
#4  0x00007fa39054132e in ?? () from /lib64/libglib-2.0.so.0
#5  0x00007fa391692ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fa39171400c in clone3 () from /lib64/libc.so.6

Thread 11 (Thread 0x7fa36ea006c0 (LWP 21423)):
#0  0x00007fa39170578f in poll () from /lib64/libc.so.6
#1  0x00007fa39051434f in ?? () from /lib64/libglib-2.0.so.0
#2  0x00007fa390514c7f in g_main_loop_run () from /lib64/libglib-2.0.so.0
#3  0x00007fa38c4952e6 in ?? () from /lib64/libgio-2.0.so.0
#4  0x00007fa39054132e in ?? () from /lib64/libglib-2.0.so.0
#5  0x00007fa391692ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fa39171400c in clone3 () from /lib64/libc.so.6

Thread 10 (Thread 0x7fa3812006c0 (LWP 21408)):
#0  0x00007fa39168efee in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fa391691d30 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fa38851cd99 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fa3884fcf3b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007fa38851ccd7 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007fa391692ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fa39171400c in clone3 () from /lib64/libc.so.6

Thread 9 (Thread 0x7fa374a006c0 (LWP 21410)):
#0  0x00007fa39168efee in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fa391691d30 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fa38851cd99 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fa3884fcf3b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007fa38851ccd7 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007fa391692ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fa39171400c in clone3 () from /lib64/libc.so.6

Thread 8 (Thread 0x7fa36fe006c0 (LWP 21421)):
#0  0x00007fa391711bcd in syscall () from /lib64/libc.so.6
#1  0x00007fa39056ed70 in g_cond_wait () from /lib64/libglib-2.0.so.0
#2  0x00007fa3904dd0fb in ?? () from /lib64/libglib-2.0.so.0
#3  0x00007fa390541ac2 in ?? () from /lib64/libglib-2.0.so.0
#4  0x00007fa39054132e in ?? () from /lib64/libglib-2.0.so.0
#5  0x00007fa391692ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fa39171400c in clone3 () from /lib64/libc.so.6

Thread 7 (Thread 0x7fa38b0006c0 (LWP 21390)):
#0  0x00007fa39170578f in poll () from /lib64/libc.so.6
#1  0x00007fa391c708aa in ?? () from /lib64/libxcb.so.1
#2  0x00007fa391c7241c in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007fa38bf1d120 in QXcbEventQueue::run (this=0x558d1f4803f0) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/plugins/platforms/xcb/qxcbeventqueue.cpp:192
#4  0x00007fa3920ed139 in operator() (__closure=<optimized out>) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:326
#5  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:262
#6  QThreadPrivate::start (arg=0x558d1f4803f0) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:285
#7  0x00007fa391692ba2 in start_thread () from /lib64/libc.so.6
#8  0x00007fa39171400c in clone3 () from /lib64/libc.so.6

Thread 6 (Thread 0x7fa38ba006c0 (LWP 21389)):
#0  0x00007fa39170578f in poll () from /lib64/libc.so.6
#1  0x00007fa39051434f in ?? () from /lib64/libglib-2.0.so.0
#2  0x00007fa390514a5c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007fa3921c1adc in QEventDispatcherGlib::processEvents (this=0x7fa384000b70, flags=...) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#4  0x00007fa391f993db in QEventLoop::exec (this=0x7fa38b9ffa50, flags=...) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:34
#5  0x00007fa392074a64 in QThread::exec (this=<optimized out>) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:74
#6  0x00007fa392fbc70a in ?? () from /lib64/libQt6DBus.so.6
#7  0x00007fa3920ed139 in operator() (__closure=<optimized out>) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:326
#8  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=...) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:262
#9  QThreadPrivate::start (arg=0x7fa39303fb20) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/thread/qthread_unix.cpp:285
#10 0x00007fa391692ba2 in start_thread () from /lib64/libc.so.6
#11 0x00007fa39171400c in clone3 () from /lib64/libc.so.6

Thread 5 (Thread 0x7fa383e006c0 (LWP 21393)):
#0  0x00007fa39168efee in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fa391691d30 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fa38851cd99 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fa3884fcf3b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007fa38851ccd7 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007fa391692ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fa39171400c in clone3 () from /lib64/libc.so.6

Thread 4 (Thread 0x7fa3820006c0 (LWP 21405)):
#0  0x00007fa39168efee in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fa391691d30 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fa38851cd99 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fa3884fcf3b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007fa38851ccd7 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007fa391692ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fa39171400c in clone3 () from /lib64/libc.so.6

Thread 3 (Thread 0x7fa382a006c0 (LWP 21404)):
#0  0x00007fa39168efee in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fa391691d30 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fa38851cd99 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fa3884fcf3b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007fa38851ccd7 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007fa391692ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fa39171400c in clone3 () from /lib64/libc.so.6

Thread 2 (Thread 0x7fa3834006c0 (LWP 21394)):
#0  0x00007fa39168efee in __futex_abstimed_wait_common () from /lib64/libc.so.6
#1  0x00007fa391691d30 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007fa38851cd99 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#3  0x00007fa3884fcf3b in ?? () from /usr/lib64/dri/radeonsi_dri.so
#4  0x00007fa38851ccd7 in ?? () from /usr/lib64/dri/radeonsi_dri.so
#5  0x00007fa391692ba2 in start_thread () from /lib64/libc.so.6
#6  0x00007fa39171400c in clone3 () from /lib64/libc.so.6

Thread 1 (Thread 0x7fa38bfedac0 (LWP 21378)):
[KCrash Handler]
#4  0x00007fa39330bec5 in std::__invoke_impl<void, void (PowerDevil::Action::* const&)(), PowerDevil::Action* const&> (__f=<synthetic pointer>: <optimized out>, __t=@0x558d1f54c740: 0x558d1f7a8b20) at /usr/include/c++/13/bits/invoke.h:71
#5  std::__invoke<void (PowerDevil::Action::* const&)(), PowerDevil::Action* const&> (__fn=<synthetic pointer>: <optimized out>) at /usr/include/c++/13/bits/invoke.h:96
#6  std::_Mem_fn_base<void (PowerDevil::Action::*)(), true>::operator()<PowerDevil::Action* const&> (this=<synthetic pointer>) at /usr/include/c++/13/functional:170
#7  std::for_each<QSet<PowerDevil::Action*>::const_iterator, std::_Mem_fn<void (PowerDevil::Action::*)()> > (__f=..., __last=..., __first=...) at /usr/include/c++/13/bits/stl_algo.h:3833
#8  PowerDevil::Core::onResumingFromIdle (this=0x558d1f55a8b0) at /usr/src/debug/powerdevil-6.1.3/daemon/powerdevilcore.cpp:875
#9  0x00007fa391fe7f90 in QtPrivate::QSlotObjectBase::call (a=0x7fff97f73d48, r=0x558d1f55a8b0, this=0x558d1f818be0) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobjectdefs_impl.h:469
#10 doActivate<false> (sender=0x558d1f81d0b0, signal_index=3, argv=0x7fff97f73d48) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4086
#11 0x00007fa392eb12bc in KIdleTimePrivate::resumingFromIdle (this=<optimized out>) at /usr/src/debug/kidletime-6.4.0/src/kidletime.cpp:286
#12 operator() (__closure=<optimized out>) at /usr/src/debug/kidletime-6.4.0/src/kidletime.cpp:85
#13 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, KIdleTime::KIdleTime()::<lambda()> >::call (arg=<optimized out>, f=...) at /usr/include/qt6/QtCore/qobjectdefs_impl.h:137
#14 QtPrivate::FunctorCallable<KIdleTime::KIdleTime()::<lambda()> >::call<QtPrivate::List<>, void> (arg=<optimized out>, f=...) at /usr/include/qt6/QtCore/qobjectdefs_impl.h:345
#15 QtPrivate::QCallableObject<KIdleTime::KIdleTime()::<lambda()>, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=<optimized out>, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/qt6/QtCore/qobjectdefs_impl.h:555
#16 0x00007fa391fe7f90 in QtPrivate::QSlotObjectBase::call (a=0x7fff97f73e38, r=0x558d1f81d0b0, this=0x558d1f8181c0) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobjectdefs_impl.h:469
#17 doActivate<false> (sender=0x558d1f815240, signal_index=3, argv=0x7fff97f73e38) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:4086
#18 0x00007fa3880a9142 in XSyncBasedPoller::xcbEvent (event=<optimized out>, this=0x558d1f815240) at /usr/src/debug/kidletime-6.4.0/src/plugins/xsync/xsyncbasedpoller.cpp:299
#19 XSyncBasedPoller::xcbEvent (event=<optimized out>, this=0x558d1f815240) at /usr/src/debug/kidletime-6.4.0/src/plugins/xsync/xsyncbasedpoller.cpp:272
#20 XSyncBasedPollerHelper::nativeEventFilter (result=<optimized out>, message=<optimized out>, eventType=..., this=<optimized out>) at /usr/src/debug/kidletime-6.4.0/src/plugins/xsync/xsyncbasedpoller.cpp:36
#21 XSyncBasedPollerHelper::nativeEventFilter (this=<optimized out>, eventType=..., message=<optimized out>, result=<optimized out>) at /usr/src/debug/kidletime-6.4.0/src/plugins/xsync/xsyncbasedpoller.cpp:32
#22 0x00007fa391f8c3ff in QAbstractEventDispatcher::filterNativeEvent (this=<optimized out>, eventType=..., message=message@entry=0x7fa37c007660, result=result@entry=0x7fff97f73f78) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qabstracteventdispatcher.cpp:432
#23 0x00007fa38bf00086 in QXcbConnection::handleXcbEvent (this=0x558d1f480820, event=0x7fa37c007660) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/plugins/platforms/xcb/qxcbconnection.cpp:540
#24 0x00007fa38bf0808e in QXcbConnection::processXcbEvents (this=0x558d1f480820, flags=...) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/plugins/platforms/xcb/qxcbconnection.cpp:1087
#25 0x00007fa38bf20053 in xcbSourceDispatch (source=<optimized out>) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:55
#26 0x00007fa390512760 in ?? () from /lib64/libglib-2.0.so.0
#27 0x00007fa3905143a8 in ?? () from /lib64/libglib-2.0.so.0
#28 0x00007fa390514a5c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#29 0x00007fa3921c1adc in QEventDispatcherGlib::processEvents (this=0x558d1f4c2b80, flags=...) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#30 0x00007fa391f993db in QEventLoop::exec (this=0x7fff97f74310, flags=...) at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:34
#31 0x00007fa391f92bb6 in QCoreApplication::exec () at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:74
#32 0x00007fa3927e7e2c in QGuiApplication::exec () at /usr/src/debug/qtbase-everywhere-src-6.7.2/src/gui/kernel/qguiapplication.cpp:1926
#33 0x0000558cff6002bf in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/powerdevil-6.1.3/daemon/powerdevilapp.cpp:135

Reported using DrKonqi
Comment 1 Nicolas Fella 2024-07-26 11:27:03 UTC

*** This bug has been marked as a duplicate of bug 490356 ***