Bug 476783

Summary: kwin_x11 crashes after unplugging one drive from a two-drive Btrfs RAID1
Product: [Plasma] kwin Reporter: d7ghrrkcz
Component: generic-crashAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: crash Keywords: X11-only
Priority: NOR    
Version First Reported In: 5.27.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: kwin crash backtrace

Description d7ghrrkcz 2023-11-10 09:53:47 UTC
Created attachment 163012 [details]
kwin crash backtrace

SUMMARY

Crash of kwin_x11 and plasmashell when /home have brief timeout

STEPS TO REPRODUCE
1. Install Debian Stable with /home partition mounted as Btrfs Raid1 on two physical disks
2. Unplug one drive from Btrfs. Filesystem will hang briefly, will output timeout errors in dmesg
3. After a brief pause, /home will continue to work in Btrfs Raid1 degraded mode. It's Raid1, so work on the desktop can continue no problem, until I end my session and shutdown the computer.
4. However, plasmashell and kwin-x11 will crash when this happens.

OBSERVED RESULT
Crash of kwin_x11 and plasmashell (signal 11 SEGV and signal 7 BUS)

EXPECTED RESULT
No crashes, other desktop apps can survive brief inaccessibility of /home partition, kwin should too.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-13-amd64 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 6800 XT
Manufacturer: ASUS

ADDITIONAL INFORMATION
This bug is related to separate bug report #476760 on plasmashell crash which happened at the same time:
https://bugs.kde.org/show_bug.cgi?id=476760
Comment 1 TraceyC 2025-02-24 17:59:12 UTC
Adding the x11-only keyword