https://bugs.kde.org/show_bug.cgi?id=515567

            Bug ID: 515567
           Summary: KWin crashes on wake from sleep in tablet mode
    Classification: I don't know
           Product: kde
      Version First unspecified
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Keywords: drkonqi
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Application: kwin_wayland (6.5.5)

ApplicationNotResponding [ANR]: false
Qt Version: 6.10.1
Frameworks Version: 6.22.0
Operating System: Linux 6.18.8-200.fc43.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora Linux 43 (KDE Plasma Desktop Edition)"
DrKonqi: 6.5.5 [CoredumpBackend]

-- Information about the crash:
Device: 2-in-1 laptop (Framework 12), which has a touch screen and a rotation
sensor.

KWin crashes on wake from sleep when in tablet mode. 

I can reliably trigger the crash by following these steps:
1- Fresh boot / reboot (see notes below)
2- switch to tablet mode. I do this by folding the laptop open beyond 180
degrees.
3- enter sleep mode (either by waiting or by tapping the sleep button in the
Application Launcher)
4- wait a few seconds
5- wake using touch
6- sleep again and wait a few seconds
7- wake using touch (ideally a double tap)

You might need to repeat the sleep/wake sequence (steps 6 and 7) a few times. I
tested the sequence above many times, and I was always able to trigger the
crash within a few sleeps at most. I can only trigger it in tablet mode so far.

The crash often results in disabling power management and brightness control (I
cannot access them in the control panel, and I cannot use keyboard buttons to
adjust the brightness). This is notable because I cannot trigger the crash
again until they're re-enabled (by rebooting). Sometimes, the crash doesn't
disable power management and brightness control, and in those cases I can
re-trigger the crash without rebooting.

Finally, I suspect this is related to
https://bugs.kde.org/show_bug.cgi?id=514082.

Happy to provide more info if needed. Thanks!

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: KWin (kwin_wayland), signal: Segmentation fault


This GDB supports auto-downloading debuginfo from the following URLs:
  <ima:enforcing>
  <https://debuginfod.fedoraproject.org/>
  <ima:ignore>
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.

warning: Can't open file anon_inode:i915.gem during file-backed mapping note
processing

warning: Can't open file /memfd:JSGCHeap:QtQml (deleted) during file-backed
mapping note processing

warning: Can't open file /memfd:JSVMStack:QtQml (deleted) during file-backed
mapping note processing
[New LWP 1655]
[New LWP 1704]
[New LWP 1716]
[New LWP 1718]
[New LWP 1719]
[New LWP 1735]
[New LWP 1736]
[New LWP 1747]
[New LWP 1717]
[New LWP 1746]
[New LWP 1737]
[New LWP 1738]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/bin/kwin_wayland --wayland-fd 7 --socket wayland-0
--xwayland-fd 8 --xwayland-fd 9 --xwayland-display :0 --xwayland-xauthority
/run/user/1000/xauth_ssQsDR --xwayland'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fda9c8813cc in __pthread_kill_implementation () from
/lib64/libc.so.6
[Current thread is 1 (Thread 0x7fda95caaf00 (LWP 1655))]
[Current thread is 12 (Thread 0x7fda667fc6c0 (LWP 1738))]

Thread 12 (Thread 0x7fda667fc6c0 (LWP 1738)):
#0  0x00007fda9c8879a2 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fda9c87bc3c in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fda9c87c2ac in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fda9c87e97e in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libc.so.6
#4  0x00007fda7d3c462d in cnd_wait () from /lib64/libgallium-25.3.4.so
#5  0x00007fda7d37a0bc in util_queue_thread_func () from
/lib64/libgallium-25.3.4.so
#6  0x00007fda7d3c455c in impl_thrd_routine () from /lib64/libgallium-25.3.4.so
#7  0x00007fda9c87f464 in start_thread () from /lib64/libc.so.6
#8  0x00007fda9c9025ec in __clone3 () from /lib64/libc.so.6

Thread 11 (Thread 0x7fda66ffd6c0 (LWP 1737)):
#0  0x00007fda9c8879a2 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fda9c87bc3c in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fda9c87c2ac in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fda9c87e97e in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libc.so.6
#4  0x00007fda7d3c462d in cnd_wait () from /lib64/libgallium-25.3.4.so
#5  0x00007fda7d37a0bc in util_queue_thread_func () from
/lib64/libgallium-25.3.4.so
#6  0x00007fda7d3c455c in impl_thrd_routine () from /lib64/libgallium-25.3.4.so
#7  0x00007fda9c87f464 in start_thread () from /lib64/libc.so.6
#8  0x00007fda9c9025ec in __clone3 () from /lib64/libc.so.6

Thread 10 (Thread 0x7fda657496c0 (LWP 1746)):
#0  0x00007fda9c8879a2 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fda9c87bc3c in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fda9c87c2ac in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fda9c87eb88 in pthread_cond_timedwait@@GLIBC_2.3.2 () from
/lib64/libc.so.6
#4  0x00007fda9d0da1a3 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from
/lib64/libQt6Core.so.6
#5  0x00007fda9d02fe9c in QThreadPoolThread::run() () from
/lib64/libQt6Core.so.6
#6  0x00007fda9d0d19ae in QThreadPrivate::start(void*) () from
/lib64/libQt6Core.so.6
#7  0x00007fda9c87f464 in start_thread () from /lib64/libc.so.6
#8  0x00007fda9c9025ec in __clone3 () from /lib64/libc.so.6

Thread 9 (Thread 0x7fda860836c0 (LWP 1717)):
#0  0x00007fda9c8879a2 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fda9c87bc3c in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fda9c87c2ac in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fda9c87e97e in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libc.so.6
#4  0x00007fda7d3c462d in cnd_wait () from /lib64/libgallium-25.3.4.so
#5  0x00007fda7d37a0bc in util_queue_thread_func () from
/lib64/libgallium-25.3.4.so
#6  0x00007fda7d3c455c in impl_thrd_routine () from /lib64/libgallium-25.3.4.so
#7  0x00007fda9c87f464 in start_thread () from /lib64/libc.so.6
#8  0x00007fda9c9025ec in __clone3 () from /lib64/libc.so.6

Thread 8 (Thread 0x7fda64f486c0 (LWP 1747)):
#0  0x00007fda9c8879a2 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fda9c87bc3c in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fda9c87bc84 in __syscall_cancel () from /lib64/libc.so.6
#3  0x00007fda9c8f5706 in ppoll () from /lib64/libc.so.6
#4  0x00007fda9baa02e0 in g_main_context_iterate_unlocked.isra () from
/lib64/libglib-2.0.so.0
#5  0x00007fda9baa03a3 in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#6  0x00007fda9d21e80d in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /lib64/libQt6Core.so.6
#7  0x00007fda9cf09063 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/lib64/libQt6Core.so.6
#8  0x00007fda9d02bdc6 in QThread::exec() () from /lib64/libQt6Core.so.6
#9  0x00007fda9d0d19ae in QThreadPrivate::start(void*) () from
/lib64/libQt6Core.so.6
#10 0x00007fda9c87f464 in start_thread () from /lib64/libc.so.6
#11 0x00007fda9c9025ec in __clone3 () from /lib64/libc.so.6

Thread 7 (Thread 0x7fda677fe6c0 (LWP 1736)):
#0  0x00007fda9c8879a2 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fda9c87bc3c in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fda9c87c2ac in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fda9c87e97e in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libc.so.6
#4  0x00007fda7d3c462d in cnd_wait () from /lib64/libgallium-25.3.4.so
#5  0x00007fda7d37a0bc in util_queue_thread_func () from
/lib64/libgallium-25.3.4.so
#6  0x00007fda7d3c455c in impl_thrd_routine () from /lib64/libgallium-25.3.4.so
#7  0x00007fda9c87f464 in start_thread () from /lib64/libc.so.6
#8  0x00007fda9c9025ec in __clone3 () from /lib64/libc.so.6

Thread 6 (Thread 0x7fda67fff6c0 (LWP 1735)):
#0  0x00007fda9c8879a2 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fda9c87bc3c in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fda9c87c2ac in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fda9c87e97e in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libc.so.6
#4  0x00007fda7d3c462d in cnd_wait () from /lib64/libgallium-25.3.4.so
#5  0x00007fda7d37a0bc in util_queue_thread_func () from
/lib64/libgallium-25.3.4.so
#6  0x00007fda7d3c455c in impl_thrd_routine () from /lib64/libgallium-25.3.4.so
#7  0x00007fda9c87f464 in start_thread () from /lib64/libc.so.6
#8  0x00007fda9c9025ec in __clone3 () from /lib64/libc.so.6

Thread 5 (Thread 0x7fda84fe86c0 (LWP 1719)):
#0  0x00007fda9c8879a2 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fda9c87bc3c in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fda9c87bc84 in __syscall_cancel () from /lib64/libc.so.6
#3  0x00007fda9c8f5706 in ppoll () from /lib64/libc.so.6
#4  0x00007fda9baa02e0 in g_main_context_iterate_unlocked.isra () from
/lib64/libglib-2.0.so.0
#5  0x00007fda9baa03a3 in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#6  0x00007fda9d21e80d in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /lib64/libQt6Core.so.6
#7  0x00007fda9cf09063 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/lib64/libQt6Core.so.6
#8  0x00007fda9d02bdc6 in QThread::exec() () from /lib64/libQt6Core.so.6
#9  0x00007fda9d0d19ae in QThreadPrivate::start(void*) () from
/lib64/libQt6Core.so.6
#10 0x00007fda9c87f464 in start_thread () from /lib64/libc.so.6
#11 0x00007fda9c9025ec in __clone3 () from /lib64/libc.so.6

Thread 4 (Thread 0x7fda858826c0 (LWP 1718)):
#0  0x00007fda9c8879a2 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fda9c87bc3c in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fda9c87c2ac in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fda9c87edb2 in pthread_cond_clockwait@GLIBC_2.30 () from
/lib64/libc.so.6
#4  0x00007fda9ff63288 in KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*,
QString const&)::{lambda()#1}::operator()() const () from /lib64/libkwin.so.6
#5  0x00007fda9ff63fca in
std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base,
std::__future_base::_Result_base::_Deleter> (),
std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result<void>,
std::__future_base::_Result_base::_Deleter>,
std::thread::_Invoker<std::tuple<QThread::create<KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*,
QString
const&)::{lambda()#1}>(KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*,
QString const&)::{lambda()#1}&&)::{lambda((auto:1&&)...)#1}> >, void>
>::_M_invoke(std::_Any_data const&) () from /lib64/libkwin.so.6
#6  0x00007fda9ff5e0a6 in
std::__future_base::_State_baseV2::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base,
std::__future_base::_Result_base::_Deleter> ()>*, bool*) () from
/lib64/libkwin.so.6
#7  0x00007fda9c884814 in __pthread_once_slow.isra.0 () from /lib64/libc.so.6
#8  0x00007fda9c884889 in pthread_once@GLIBC_2.2.5 () from /lib64/libc.so.6
#9  0x00007fda9ff5eb23 in
std::__future_base::_Deferred_state<std::thread::_Invoker<std::tuple<QThread::create<KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*,
QString
const&)::{lambda()#1}>(KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*,
QString const&)::{lambda()#1}&&)::{lambda((auto:1&&)...)#1}> >,
void>::_M_complete_async() [clone .lto_priv.0] () from /lib64/libkwin.so.6
#10 0x00007fda9d02c347 in QThreadCreateThread::run() () from
/lib64/libQt6Core.so.6
#11 0x00007fda9d0d19ae in QThreadPrivate::start(void*) () from
/lib64/libQt6Core.so.6
#12 0x00007fda9c87f464 in start_thread () from /lib64/libc.so.6
#13 0x00007fda9c9025ec in __clone3 () from /lib64/libc.so.6

Thread 3 (Thread 0x7fda868846c0 (LWP 1716)):
#0  0x00007fda9c8879a2 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fda9c87bc3c in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fda9c87c2ac in __futex_abstimed_wait_common () from /lib64/libc.so.6
#3  0x00007fda9c87e97e in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libc.so.6
#4  0x00007fda7d3c462d in cnd_wait () from /lib64/libgallium-25.3.4.so
#5  0x00007fda7d37a0bc in util_queue_thread_func () from
/lib64/libgallium-25.3.4.so
#6  0x00007fda7d3c455c in impl_thrd_routine () from /lib64/libgallium-25.3.4.so
#7  0x00007fda9c87f464 in start_thread () from /lib64/libc.so.6
#8  0x00007fda9c9025ec in __clone3 () from /lib64/libc.so.6

Thread 2 (Thread 0x7fda87dff6c0 (LWP 1704)):
#0  0x00007fda9c8879a2 in __syscall_cancel_arch () from /lib64/libc.so.6
#1  0x00007fda9c87bc3c in __internal_syscall_cancel () from /lib64/libc.so.6
#2  0x00007fda9c87bc84 in __syscall_cancel () from /lib64/libc.so.6
#3  0x00007fda9c8f5706 in ppoll () from /lib64/libc.so.6
#4  0x00007fda9baa02e0 in g_main_context_iterate_unlocked.isra () from
/lib64/libglib-2.0.so.0
#5  0x00007fda9baa03a3 in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#6  0x00007fda9d21e80d in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /lib64/libQt6Core.so.6
#7  0x00007fda9cf09063 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/lib64/libQt6Core.so.6
#8  0x00007fda9d02bdc6 in QThread::exec() () from /lib64/libQt6Core.so.6
#9  0x00007fda9e055ae1 in QDBusConnectionManager::run() () from
/lib64/libQt6DBus.so.6
#10 0x00007fda9d0d19ae in QThreadPrivate::start(void*) () from
/lib64/libQt6Core.so.6
#11 0x00007fda9c87f464 in start_thread () from /lib64/libc.so.6
#12 0x00007fda9c9025ec in __clone3 () from /lib64/libc.so.6

Thread 1 (Thread 0x7fda95caaf00 (LWP 1655)):
[KCrash Handler]
#4  0x00007fda9cf67740 in void doActivate<false>(QObject*, int, void**) () from
/lib64/libQt6Core.so.6
#5  0x00007fda842590e6 in IIOSensorProxyOrientationSensor::start() () from
/usr/lib64/qt6/plugins/sensors/libqtsensors_iio-sensor-proxy.so
#6  0x00007fda9ccc3e08 in QSensor::start() () from /lib64/libQt6Sensors.so.6
#7  0x00007fda9ffdfc2f in KWin::OrientationSensor::setEnabled(bool) [clone
.part.0] () from /lib64/libkwin.so.6
#8  0x00007fda9fee8f7e in KWin::Workspace::wakeUp() () from /lib64/libkwin.so.6
#9  0x00007fda9cf6759a in void doActivate<false>(QObject*, int, void**) () from
/lib64/libQt6Core.so.6
#10 0x00007fda9ff86501 in KWin::DrmOutput::setDpmsMode(KWin::Output::DpmsMode)
() from /lib64/libkwin.so.6
#11 0x00007fda9fcdf38a in KWin::DpmsInputEventFilter::notify() () from
/lib64/libkwin.so.6
#12 0x00007fda9fcdfc49 in
KWin::DpmsInputEventFilter::touchUp(KWin::TouchUpEvent*) () from
/lib64/libkwin.so.6
#13 0x00007fda9fe9b9ec in KWin::TouchInputRedirection::processUp(int,
std::chrono::duration<long, std::ratio<1l, 1000000l> >, KWin::InputDevice*) ()
from /lib64/libkwin.so.6
#14 0x00007fda9cf67697 in void doActivate<false>(QObject*, int, void**) () from
/lib64/libQt6Core.so.6
#15 0x00007fda9fc7fe5b in KWin::InputDevice::touchUp(int,
std::chrono::duration<long, std::ratio<1l, 1000000l> >, KWin::InputDevice*) ()
from /lib64/libkwin.so.6
#16 0x00007fda9ffa4561 in KWin::LibInput::Connection::processEvents() () from
/lib64/libkwin.so.6
#17 0x00007fda9cf58fcc in QObject::event(QEvent*) () from
/lib64/libQt6Core.so.6
#18 0x00007fda9e23db9f in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /lib64/libQt6Widgets.so.6
#19 0x00007fda9cefc4e8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /lib64/libQt6Core.so.6
#20 0x00007fda9ceffb09 in QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) () from /lib64/libQt6Core.so.6
#21 0x00007fda9d0d3e64 in
QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /lib64/libQt6Core.so.6
#22 0x00007fda9dcfe5d2 in
QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() from /lib64/libQt6Gui.so.6
#23 0x00007fda9cf09063 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/lib64/libQt6Core.so.6
#24 0x00007fda9cf04819 in QCoreApplication::exec() () from
/lib64/libQt6Core.so.6
#25 0x00005558231e9a59 in main ()

Reported using DrKonqi
This report was filed against 'kde' because the product 'kwin' could not be
located in Bugzilla. Add it to drkonqi's mappings file!

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to