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

Andrey <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Andrey <[email protected]> ---
Same crash here, on CachyOS (Arch-based): kwin 6.8.3-1.1, Qt 6.12.0,
KF 6.32.0, nvidia-open 620.70.06 / RTX 2060. It matches comment 2 - it happens
at boot in the plasmalogin greeter, before any login. Black screen, TTYs still
work. Downgrading kwin to 6.8.2 fixes it.

New information: this bisects to 588ae003 "backends/libinput: list devices
during setup" (cherry-pick of 4e6a1ea8), which first appeared in 6.8.3.
https://invent.kde.org/plasma/kwin/-/commit/588ae003

6.8.2 Connection::setup():

    QMetaObject::invokeMethod(this, &Connection::doSetup,
Qt::QueuedConnection);

6.8.3 Connection::setup():

    QMetaObject::invokeMethod(this, &Connection::doSetup,
Qt::BlockingQueuedConnection);
    processEvents();

With the blocking version, processEvents() runs inside the InputRedirection
constructor (ctor -> setupInputBackends -> addInputBackend -> initialize ->
setup -> processEvents), while s_self is only assigned by the singleton factory
after the constructor returns. Any pointer motion event in the initial libinput
queue therefore reaches PointerInputRedirection::processMotion() ->
input()->syncTabletWithMouse() with s_self == nullptr.

The core dump confirms it is an unset pointer, not a freed one:

    Signal: 11 (SEGV), si_code: SEGV_MAPERR, fault address 0x178
    movzbl 0x178(%rdi),%eax        rdi = 0

That also explains why moving the mouse during startup or logout makes it much
more likely: it puts a motion event in the queue in exactly that window.
Suggestion: don't dispatch input events before the singleton is published, or
guard InputRedirection::self() in processMotion().

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

Reply via email to