Bug 416725 - KWIN Seg Fault on Session Login
Summary: KWIN Seg Fault on Session Login
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.17.5
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-01-25 06:59 UTC by Andy C
Modified: 2022-11-04 05:07 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Systrace with Debug info of latest crash (8.71 KB, text/plain)
2020-03-21 04:25 UTC, Andy C
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy C 2020-01-25 06:59:14 UTC
Application: kwin_x11 (5.17.5)

Qt Version: 5.13.2
Frameworks Version: 5.66.0
Operating System: Linux 5.3.0-26-generic x86_64
Distribution: KDE neon User Edition 5.17

-- Information about the crash:
- What I was doing when the application crashed:
I have set Kwin to start an empty session on login.
- Custom settings of the application:
Also set a few applications and scripts to auto-start

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f43c6242d00 (LWP 1681))]

Thread 4 (Thread 0x7f439edbe700 (LWP 1816)):
#0  0x00007f43beae59f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f43c22dffb8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7f43c22dff68, cond=0x7f43c22dff90) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7f43c22dff90, mutex=0x7f43c22dff68) at pthread_cond_wait.c:655
#3  0x00007f43c1fea874 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#4  0x00007f43c1fea8b9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#5  0x00007f43beadf6db in start_thread (arg=0x7f439edbe700) at pthread_create.c:463
#6  0x00007f43c5b9d88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f439ffff700 (LWP 1813)):
#0  0x00007f43c5b90cf6 in __GI_ppoll (fds=fds@entry=0x7f4394000d28, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f43c30ce8a1 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f4394000d28) at kernel/qcore_unix.cpp:132
#3  qt_safe_poll (fds=0x7f4394000d28, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:153
#4  0x00007f43c30d0038 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:500
#5  0x00007f43c307306a in QEventLoop::exec (this=this@entry=0x7f439fffed00, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#6  0x00007f43c2e8e3aa in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#7  0x00007f43bd4eb815 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f43c2e8fb52 in QThreadPrivate::start (arg=0x5608baf326d0) at thread/qthread_unix.cpp:360
#9  0x00007f43beadf6db in start_thread (arg=0x7f439ffff700) at pthread_create.c:463
#10 0x00007f43c5b9d88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f43a7095700 (LWP 1791)):
#0  0x00007f43c5b90cf6 in __GI_ppoll (fds=fds@entry=0x7f43a000f0d8, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f43c30ce8a1 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f43a000f0d8) at kernel/qcore_unix.cpp:132
#3  qt_safe_poll (fds=0x7f43a000f0d8, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:153
#4  0x00007f43c30d0038 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:500
#5  0x00007f43c307306a in QEventLoop::exec (this=this@entry=0x7f43a7094cf0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#6  0x00007f43c2e8e3aa in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#7  0x00007f43bc0b60e5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007f43c2e8fb52 in QThreadPrivate::start (arg=0x7f43bc32dd80) at thread/qthread_unix.cpp:360
#9  0x00007f43beadf6db in start_thread (arg=0x7f43a7095700) at pthread_create.c:463
#10 0x00007f43c5b9d88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f43c6242d00 (LWP 1681)):
[KCrash Handler]
#6  0x0000000000000000 in ?? ()
#7  0x00007f43c234ac9f in KWin::belongToSameGroup (w2=0x5608bb291200, w1=0x5608bb1f9870) at ./effects/diminactive/diminactive.cpp:44
#8  KWin::DimInactiveEffect::canDimWindow (this=0x5608bb1dfed0, w=0x5608bb291200) at ./effects/diminactive/diminactive.cpp:182
#9  0x00007f43c234b4bd in KWin::DimInactiveEffect::paintWindow (this=this@entry=0x5608bb1dfed0, w=<optimized out>, w@entry=0x5608bb291200, mask=mask@entry=2, region=..., data=...) at ./effects/diminactive/diminactive.cpp:131
#10 0x00007f43c565980e in KWin::EffectsHandlerImpl::paintWindow (this=this@entry=0x5608bb137e50, w=0x5608bb291200, mask=mask@entry=2, region=..., data=...) at ./effects.cpp:436
#11 0x00007f43c56fdb25 in KWin::Scene::paintWindow (this=this@entry=0x5608bb016e30, w=0x7f43a8008a70, mask=2, region=..., quads=...) at ./scene.cpp:484
#12 0x00007f43c56f9d34 in KWin::Scene::paintSimpleScreen (this=this@entry=0x5608bb016e30, orig_mask=orig_mask@entry=0, region=...) at ./scene.cpp:374
#13 0x00007f439dd958a2 in KWin::SceneOpenGL2::paintSimpleScreen (this=this@entry=0x5608bb016e30, mask=mask@entry=0, region=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1015
#14 0x00007f43c56fd007 in KWin::Scene::finalPaintScreen (this=this@entry=0x5608bb016e30, mask=mask@entry=0, region=..., data=...) at ./scene.cpp:199
#15 0x00007f43c56595c5 in KWin::EffectsHandlerImpl::paintScreen (this=this@entry=0x5608bb137e50, mask=mask@entry=0, region=..., data=...) at ./effects.cpp:396
#16 0x00007f43c261d001 in KWin::Effect::paintScreen (this=this@entry=0x5608baf4bc30, mask=mask@entry=0, region=..., data=...) at ./libkwineffects/kwineffects.cpp:570
#17 0x00007f43c565956d in KWin::EffectsHandlerImpl::paintScreen (this=this@entry=0x5608bb137e50, mask=mask@entry=0, region=..., data=...) at ./effects.cpp:393
#18 0x00007f43c261d001 in KWin::Effect::paintScreen (this=this@entry=0x5608bb134650, mask=mask@entry=0, region=..., data=...) at ./libkwineffects/kwineffects.cpp:570
#19 0x00007f43c565956d in KWin::EffectsHandlerImpl::paintScreen (this=this@entry=0x5608bb137e50, mask=mask@entry=0, region=..., data=...) at ./effects.cpp:393
#20 0x00007f43c261d001 in KWin::Effect::paintScreen (this=this@entry=0x5608bb1dfed0, mask=mask@entry=0, region=..., data=...) at ./libkwineffects/kwineffects.cpp:570
#21 0x00007f43c565956d in KWin::EffectsHandlerImpl::paintScreen (this=this@entry=0x5608bb137e50, mask=0, region=..., data=...) at ./effects.cpp:393
#22 0x00007f43c56fccfe in KWin::Scene::paintScreen (this=this@entry=0x5608bb016e30, mask=mask@entry=0x7ffdbee914b0, damage=..., repaint=..., updateRegion=updateRegion@entry=0x7ffdbee91498, validRegion=validRegion@entry=0x7ffdbee914a0, projection=..., outputGeometry=...) at ./scene.cpp:149
#23 0x00007f439dd9ca71 in KWin::SceneOpenGL::paint (this=this@entry=0x5608bb016e30, damage=..., toplevels=...) at ./plugins/scenes/opengl/scene_opengl.cpp:707
#24 0x00007f43c5626466 in KWin::Compositor::performCompositing (this=0x5608baeaddf0) at ./composite.cpp:692
#25 0x00007f43c30a63eb in QObject::event (this=0x5608baeaddf0, e=<optimized out>) at kernel/qobject.cpp:1282
#26 0x00007f43c3e79eac in QApplicationPrivate::notify_helper (this=this@entry=0x5608bad57550, receiver=receiver@entry=0x5608baeaddf0, e=e@entry=0x7ffdbee91950) at kernel/qapplication.cpp:3703
#27 0x00007f43c3e814b0 in QApplication::notify (this=0x7ffdbee91c00, receiver=0x5608baeaddf0, e=0x7ffdbee91950) at kernel/qapplication.cpp:3449
#28 0x00007f43c3074f08 in QCoreApplication::notifyInternal2 (receiver=0x5608baeaddf0, event=0x7ffdbee91950) at kernel/qcoreapplication.cpp:1095
#29 0x00007f43c30d2009 in QTimerInfoList::activateTimers (this=this@entry=0x5608badadda0) at kernel/qtimerinfo_unix.cpp:643
#30 0x00007f43c30cf43c in QEventDispatcherUNIXPrivate::activateTimers (this=this@entry=0x5608badadd00) at kernel/qeventdispatcher_unix.cpp:249
#31 0x00007f43c30d033a in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:514
#32 0x00007f43ae9c215e in QXcbUnixEventDispatcher::processEvents (this=0x5608badae050, flags=...) at qxcbeventdispatcher.cpp:60
#33 0x00007f43c307306a in QEventLoop::exec (this=this@entry=0x7ffdbee91b10, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#34 0x00007f43c307c3e0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1403
#35 0x00007f43c5e75d05 in kdemain (argc=<optimized out>, argv=0x7ffdbee91da8) at ./main_x11.cpp:474
#36 0x00007f43c5a9db97 in __libc_start_main (main=0x5608ba681720 <main>, argc=1, argv=0x7ffdbee91da8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdbee91d98) at ../csu/libc-start.c:310
#37 0x00005608ba68175a in _start ()

Possible duplicates by query: bug 397219, bug 368847, bug 350726, bug 318219, bug 312686.

Reported using DrKonqi
Comment 1 Vlad Zahorodnii 2020-01-25 11:04:55 UTC
How often does this crash occur? Can you reproduce it reliably?
Comment 2 shout 2020-03-11 12:53:08 UTC
Not sure whether this is related:

Kwin crashes every time I wake from suspend if the monitor is powered down when the system wakes. This is a replicable bug on my system.

The crash only occurs when I manually power down the monitor after suspend (which is necessary in my case), then attempt to wake from sleep *before* powering the monitor back up. If I power up the monitor before wake, the bug does not occur.

Crash text simply says:

`Application: KWin (kwin_x11), signal: Segmentation fault`

Furthermore, when clicking the button on the bug report app to install missing symbols for the backtrace, the process fails with an error stating the packages cannot be installed. No additional information is presented, nor does it say what the missing packages are.

Clicking the link below that bug report dialog to list missing debug packages (with a view to installing manually) just lists the following: 

`/usr/bin/kwin_x11`.

The monitor is attached through DisplayPort.

Journald provides the following related log entries:

```
Mar 11 12:09:29 aninstanceofubuntu kernel: kuiserver5[3455]: segfault at c ip 00007fb21507f60b sp 00007ffedc47e010 error 4 in libQt5XcbQpa.so.5.9.5[7fb215044000+fe000]
Mar 11 12:09:29 aninstanceofubuntu kernel: nextcloud[2560]: segfault at c ip 00007f9b9825460b sp 00007ffdf30070b0 error 4 in libQt5XcbQpa.so.5.9.5[7f9b98219000+fe000]
Mar 11 12:09:29 aninstanceofubuntu kernel: kwalletd5[2333]: segfault at c ip 00007fe7af82660b sp 00007ffcb49751e0 error 4 in libQt5XcbQpa.so.5.9.5[7fe7af7eb000+fe000]
Mar 11 12:09:29 aninstanceofubuntu kernel: kdeconnectd[2516]: segfault at c ip 00007f6877d8660b sp 00007ffda4bfe5c0 error 4 in libQt5XcbQpa.so.5.9.5[7f6877d4b000+fe000]
Mar 11 12:09:29 aninstanceofubuntu kernel: kactivitymanage[2462]: segfault at c ip 00007fee76fd360b sp 00007fff0eff7300 error 4 in libQt5XcbQpa.so.5.9.5[7fee76f98000+fe000]
Mar 11 12:09:29 aninstanceofubuntu kernel: xembedsniproxy[2508]: segfault at c ip 00007f3db9a2e60b sp 00007ffe71020820 error 4 in libQt5XcbQpa.so.5.9.5[7f3db99f3000+fe000]
Mar 11 12:09:29 aninstanceofubuntu kernel: baloorunner[3521]: segfault at c ip 00007f3be7a5960b sp 00007ffc1f7bf180 error 4 in libQt5XcbQpa.so.5.9.5[7f3be7a1e000+fe000]
Mar 11 12:09:29 aninstanceofubuntu kernel: kscreen_backend[2531]: segfault at c ip 00007fcf211da60b sp 00007ffddeb4eb40 error 4 in libQt5XcbQpa.so.5.9.5[7fcf2119f000+fe000]
```

System info:

- Kubuntu 18.04, with Kubuntu backports PPA (kubuntu-ppa-ubuntu-backports-bionic)
- KDE Plasma Version: 5.12.9
- KDE Frameworks Version: 5.47.0
- QT Version: 5.9.5
- Kernel Version: 5.3.0-40-generic
- CPU: 4 x AMD Ryzen 3 3200G with Radeon Vega Graphics (onboard)
- Memory: 29.4 GiB DDR4 RAM
Comment 3 Vlad Zahorodnii 2020-03-11 13:38:26 UTC
> Not sure whether this is related:
Is Dim Inactive effect enabled on your system?
Comment 4 shout 2020-03-11 14:03:32 UTC
(In reply to Vlad Zahorodnii from comment #3)
> Is Dim Inactive effect enabled on your system?

No, Dim Inactive Effect is not enabled.
Comment 5 Vlad Zahorodnii 2020-03-11 14:05:05 UTC
(In reply to dan from comment #4)
> (In reply to Vlad Zahorodnii from comment #3)
> > Is Dim Inactive effect enabled on your system?
> 
> No, Dim Inactive Effect is not enabled.

Could you please file a new bug report? Also, don't forget to attach the backtrace of the crash. :-)
Comment 6 shout 2020-03-11 14:42:40 UTC
(In reply to Vlad Zahorodnii from comment #5)
> Could you please file a new bug report? Also, don't forget to attach the
> backtrace of the crash. :-)

Yes of course, I'll try to get a backtrace and do that later, no problem.
Comment 7 Andy C 2020-03-16 15:36:58 UTC
(In reply to Vlad Zahorodnii from comment #1)
> How often does this crash occur? Can you reproduce it reliably?

Hello Vlad
I just had a repeat and I followed the steps in the DrKonqi assist to attach the backtrace to this Bug ID
Comment 8 Andy C 2020-03-21 04:25:57 UTC
Created attachment 126919 [details]
Systrace with Debug info of latest crash
Comment 9 Justin Zobel 2022-10-05 02:24:42 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 10 Bug Janitor Service 2022-10-20 04:59:27 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2022-11-04 05:07:54 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!