Bug 445997

Summary: SIGSEGV (Address boundary error) in KWin::EffectWindow::isOnAllDesktops() when invoking the effect and closing it by hitting ESC
Product: [Plasma] kwin Reporter: postix <postix>
Component: effects-overviewAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: postix
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description postix 2021-11-23 20:43:43 UTC
#### Terminal log
```
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5117:45: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5120:46: this compose sequence is a duplicate of another; skipping line
OpenGL vendor string:                   AMD
OpenGL renderer string:                 Radeon RX 580 Series (POLARIS10, DRM 3.42.0, 5.15.2-1-default, LLVM 13.0.0)
OpenGL version string:                  4.6 (Compatibility Profile) Mesa 21.3.0
OpenGL shading language version string: 4.60
Driver:                                 RadeonSI
GPU class:                              Arctic Islands
OpenGL version:                         4.6
GLSL version:                           4.60
Mesa version:                           21.3
X server version:                       1.21.1
Linux kernel version:                   5.15.2
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin_core: XCB error: 10 (BadAccess), sequence: 2752, resource id: 1717, major code: 142 (Composite), minor code: 2 (RedirectSubwindows)
qt.svg: <input>:303:258: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:303:463: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:303:659: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:303:913: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:303:1049: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:303:1251: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:303:1453: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:303:1631: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:303:1739: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:303:1980: Could not add child element to parent element because the types are incorrect.
qt.svg: <input>:303:2223: Could not add child element to parent element because the types are incorrect.
kf.activities: Killing the consumer
Application::crashHandler() called with signal 11; recent crashes: 1
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kwin_x11 path = /path/to/kde/local/bin pid = 14885
KCrash: Arguments: /path/to/kde/local/bin/kwin_x11 --replace 
Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing.
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5089:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5091:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5093:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5097:47: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5099:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5107:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5111:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5113:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5117:45: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5120:46: this compose sequence is a duplicate of another; skipping line
OpenGL vendor string:                   AMD
OpenGL renderer string:                 Radeon RX 580 Series (POLARIS10, DRM 3.42.0, 5.15.2-1-default, LLVM 13.0.0)
OpenGL version string:                  4.6 (Compatibility Profile) Mesa 21.3.0
OpenGL shading language version string: 4.60
Driver:                                 RadeonSI
GPU class:                              Arctic Islands
OpenGL version:                         4.6
GLSL version:                           4.60
Mesa version:                           21.3
X server version:                       1.21.1
Linux kernel version:                   5.15.2
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin_core: XCB error: 10 (BadAccess), sequence: 2757, resource id: 1717, major code: 142 (Composite), minor code: 2 (RedirectSubwindows)
fish: Job 1, 'kwin_x11 --replace &' terminated by signal SIGSEGV (Address boundary error)
```

#### Backtrace

```
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ff87f1d0323 in __pthread_kill_internal (signo=11, threadid=<optimized out>) at pthread_kill.c:78
#2  0x00007ff87f180366 in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#3  0x00007ff882b2d6da in KCrash::defaultCrashHandler(int) (sig=11) at /path/to/kde/src/frameworks/kcrash/src/kcrash.cpp:605
#4  0x00007ff87f180430 in <signal handler called> () at /lib64/libc.so.6
#5  0x00007ff88244e761 in KWin::EffectWindow::isOnAllDesktops() const (this=0x0) at /path/to/kde/src/kde/workspace/kwin/src/libkwineffects/kwineffects.cpp:815
#6  0x00000000004dd431 in KWin::DesktopGridEffect::desktopList(KWin::EffectWindow const*) const (this=0x1af2230, w=0x0) at /path/to/kde/src/kde/workspace/kwin/src/effects/desktopgrid/desktopgrid.cpp:1449
#7  0x00000000004d5d6e in KWin::DesktopGridEffect::slotWindowClosed(KWin::EffectWindow*) (this=0x1af2230, w=0x7ff87400c350) at /path/to/kde/src/kde/workspace/kwin/src/effects/desktopgrid/desktopgrid.cpp:448
#8  0x00000000004e6574 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KWin::EffectWindow*>, void, void (KWin::DesktopGridEffect::*)(KWin::EffectWindow*)>::call(void (KWin::DesktopGridEffect::*)(KWin::EffectWindow*), KWin::DesktopGridEffect*, void**) (f=(void (KWin::DesktopGridEffect::*)(class KWin::DesktopGridEffect * const, class KWin::EffectWindow *)) 0x4d5c86 <KWin::DesktopGridEffect::slotWindowClosed(KWin::EffectWindow*)>, o=0x1af2230, arg=0x7fff76fb5b30) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:152
#9  0x00000000004e560f in QtPrivate::FunctionPointer<void (KWin::DesktopGridEffect::*)(KWin::EffectWindow*)>::call<QtPrivate::List<KWin::EffectWindow*>, void>(void (KWin::DesktopGridEffect::*)(KWin::EffectWindow*), KWin::DesktopGridEffect*, void**) (f=(void (KWin::DesktopGridEffect::*)(class KWin::DesktopGridEffect * const, class KWin::EffectWindow *)) 0x4d5c86 <KWin::DesktopGridEffect::slotWindowClosed(KWin::EffectWindow*)>, o=0x1af2230, arg=0x7fff76fb5b30) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:185
#10 0x00000000004e3c85 in QtPrivate::QSlotObject<void (KWin::DesktopGridEffect::*)(KWin::EffectWindow*), QtPrivate::List<KWin::EffectWindow*>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x1fe2d60, r=0x1af2230, a=0x7fff76fb5b30, ret=0x0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:418
#11 0x00007ff880551043 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fff76fb5b30, r=0x1af2230, this=0x1fe2d60) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#12 doActivate<false>(QObject*, int, void**) (sender=0x15b2520, signal_index=12, argv=0x7fff76fb5b30) at kernel/qobject.cpp:3886
#13 0x00007ff8824336b7 in KWin::EffectsHandler::windowClosed(KWin::EffectWindow*) (this=0x15b2520, _t1=0x7ff87400c350) at /path/to/kde/build/kde/workspace/kwin/src/libkwineffects/kwineffects_autogen/EWIEGA46WW/moc_kwineffects.cpp:1631
gdb terminated by signal ABRT.
```


#### SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20211121
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.2-1-default (64-bit)
Graphics Platform: X11
Graphics Processor: Radeon RX 580 Series
Comment 1 postix 2021-11-23 20:46:00 UTC

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