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

            Bug ID: 527536
           Summary: KScreenlocker crashes, when malfunctioning display is
                    connected / gets disconnected
    Classification: Plasma
           Product: plasmashell
      Version First 6.7.5
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: Screen locking
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: 1.0

STEPS TO REPRODUCE
1. My monitor does not boot any longer, though I still can connect it via HDMI
and KDE automatically uses it as an external display (and disables the internal
laptop screen)
2. Disconnect the external screen as it does not work

I have obtained the backtrace after having build kscreenlocker with debug
symbols and w/o optimizations via kdesrc-build and running it in gdb.

1. kdesrc-build kscreenlocker for the 6.7 branch
2. gdb /path/to/kde/build/kscreenlocker/bin/kscreenlocker
3. run
4. Attach screen
5. Detach screen

OBSERVED RESULT
KScreenlocker crashes via a SEGV.

```
 bt full
#0  0x00007ffff7e8d9d6 in
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x20016) at
/usr/include/c++/16/bits/shared_ptr_base.h:414
        __wordbits = 32
        __shiftbits = 32
        __unique_ref = 4294967297
        __both_counts = 0x2001e
        __lock_free = true
        __double_word = true
        __aligned = true
#1  0x00007ffff7e8ffe9 in
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
(this=0x8d2fa8) at /usr/include/c++/16/bits/shared_ptr_base.h:1137
#2  0x00007ffff7e8f486 in std::__shared_ptr<QQmlEngine,
(__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=0x8d2fa0) at
/usr/include/c++/16/bits/shared_ptr_base.h:1611
#3  0x00007ffff7e8f4a2 in std::shared_ptr<QQmlEngine>::~shared_ptr
(this=0x8d2fa0) at /usr/include/c++/16/bits/shared_ptr.h:175
#4  0x00007ffff7f1484a in WallpaperItem::~WallpaperItem (this=0x8d2f20) at
/home/$user/kde/src/libplasma/src/plasmaquick/plasmoid/wallpaperitem.cpp:46
#5  0x00007fffcf214371 in ??? ()
#6  0x00007fffffffca30 in ??? ()
#7  0x00000000007a0dd0 in ??? ()
#8  0x00007fffffffca30 in ??? ()
#9  0x00007ffff397d6b2 in QObjectPrivate::deleteChildren (this=0x8d2f20) at
/usr/src/debug/qt6-qtbase-6.11.2-3.fc44.x86_64/src/corelib/kernel/qobject.cpp:2280
        i = 1
```


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 44
KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.31.0
Qt Version: 6.11.2
Kernel Version: 7.2.11-200.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon Graphics

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

Reply via email to