Bug 400346

Summary: [Wayland] Whole system freezes on close an app by middle-clicking its entry in the task manager
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: generic-waylandAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: kde
Priority: NOR    
Version: 5.14.1   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2018-10-26 15:51:54 UTC
I used middle-click in the task manager to close an app. Wayland session crashed immediately.

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f85e17cc2fa in malloc_consolidate () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7f85dd2ac800 (LWP 568))]


(gdb) thread apply all bt

Thread 6 (Thread 0x7f85d64fa700 (LWP 585)):
#0  0x00007f85e183bc21 in poll () at /usr/lib/libc.so.6
#1  0x00007f85dfcbfee0 in g_main_context_poll
    (priority=<optimized out>, n_fds=2, fds=0x55aa91f4edd0, timeout=<optimized out>, context=0x55aa91f4cea0)
    at ../glib/glib/gmain.c:4221
#2  0x00007f85dfcbfee0 in g_main_context_iterate
    (context=0x55aa91f4cea0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at ../glib/glib/gmain.c:3915
#3  0x00007f85dfcc0f62 in g_main_loop_run (loop=0x55aa91f4cfe0) at ../glib/glib/gmain.c:4116
#4  0x00007f85d74e3c28 in gdbus_shared_thread_func (user_data=0x55aa91f4ce70) at ../glib/gio/gdbusprivate.c:275
#5  0x00007f85dfc893eb in g_thread_proxy (data=0x55aa91f3b4a0, data=<optimized out>) at ../glib/glib/gthread.c:784
#6  0x00007f85e0883a9d in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007f85e1846b23 in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7f85d6cfb700 (LWP 584)):
--Type <RET> for more, q to quit, c to continue without paging--c
#0  0x00007f85e183bc21 in poll () at /usr/lib/libc.so.6
#1  0x00007f85dfcbfee0 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x55aa91f3c270, timeout=<optimized out>, context=0x55aa91f3af30) at ../glib/glib/gmain.c:4221
#2  0x00007f85dfcbfee0 in g_main_context_iterate (context=context@entry=0x55aa91f3af30, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:3915
#3  0x00007f85dfcbffce in g_main_context_iteration (context=0x55aa91f3af30, may_block=may_block@entry=1) at ../glib/glib/gmain.c:3981
#4  0x00007f85dfcc0022 in glib_worker_main (data=<optimized out>) at ../glib/glib/gmain.c:5861
#5  0x00007f85dfc893eb in g_thread_proxy (data=0x55aa91f3b400, data=<optimized out>) at ../glib/glib/gthread.c:784
#6  0x00007f85e0883a9d in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007f85e1846b23 in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7f85c7fff700 (LWP 588)):
#0  0x00007f85e183bc21 in poll () at /usr/lib/libc.so.6
#1  0x00007f85dfcbfee0 in g_main_context_poll (priority=<optimized out>, n_fds=3, fds=0x7f85bc003ce0, timeout=<optimized out>, context=0x7f85bc000bf0) at ../glib/glib/gmain.c:4221
#2  0x00007f85dfcbfee0 in g_main_context_iterate (context=context@entry=0x7f85bc000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:3915
#3  0x00007f85dfcbffce in g_main_context_iteration (context=0x7f85bc000bf0, may_block=1) at ../glib/glib/gmain.c:3981
#4  0x00007f85e1bdf5e9 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f85e1b885fc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x00007f85e19cc5c9 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#7  0x00007f85e19cd9cc in  () at /usr/lib/libQt5Core.so.5
#8  0x00007f85e0883a9d in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007f85e1846b23 in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f85d4f4f700 (LWP 587)):
#0  0x00007f85e183bc21 in poll () at /usr/lib/libc.so.6
#1  0x00007f85dfcbfee0 in g_main_context_poll (priority=<optimized out>, n_fds=3, fds=0x7f85c0003ce0, timeout=<optimized out>, context=0x7f85c0000bf0) at ../glib/glib/gmain.c:4221
#2  0x00007f85dfcbfee0 in g_main_context_iterate (context=context@entry=0x7f85c0000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:3915
#3  0x00007f85dfcbffce in g_main_context_iteration (context=0x7f85c0000bf0, may_block=1) at ../glib/glib/gmain.c:3981
#4  0x00007f85e1bdf5e9 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f85e1b885fc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x00007f85e19cc5c9 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#7  0x00007f85e19cd9cc in  () at /usr/lib/libQt5Core.so.5
#8  0x00007f85e0883a9d in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007f85e1846b23 in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f85d87eb700 (LWP 571)):
#0  0x00007f85e183bc21 in poll () at /usr/lib/libc.so.6
#1  0x00007f85dfcbfee0 in g_main_context_poll (priority=<optimized out>, n_fds=3, fds=0x7f85d0003ce0, timeout=<optimized out>, context=0x7f85d0000bf0) at ../glib/glib/gmain.c:4221
#2  0x00007f85dfcbfee0 in g_main_context_iterate (context=context@entry=0x7f85d0000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:3915
#3  0x00007f85dfcbffce in g_main_context_iteration (context=0x7f85d0000bf0, may_block=1) at ../glib/glib/gmain.c:3981
#4  0x00007f85e1bdf5e9 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f85e1b885fc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x00007f85e19cc5c9 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#7  0x00007f85dc85dba6 in  () at /usr/lib/libQt5DBus.so.5
#8  0x00007f85e19cd9cc in  () at /usr/lib/libQt5Core.so.5
#9  0x00007f85e0883a9d in start_thread () at /usr/lib/libpthread.so.0
#10 0x00007f85e1846b23 in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f85dd2ac800 (LWP 568)):
#0  0x00007f85e17cc2fa in malloc_consolidate () at /usr/lib/libc.so.6
#1  0x00007f85e17cef58 in _int_malloc () at /usr/lib/libc.so.6
#2  0x00007f85e17d0ada in malloc () at /usr/lib/libc.so.6
#3  0x00007f85e17bb791 in _IO_file_doallocate () at /usr/lib/libc.so.6
#4  0x00007f85e17c9bc0 in _IO_doallocbuf () at /usr/lib/libc.so.6
#5  0x00007f85e17c8e48 in __GI__IO_file_overflow () at /usr/lib/libc.so.6
#6  0x00007f85e17c7f37 in __GI__IO_file_xsputn () at /usr/lib/libc.so.6
#7  0x00007f85e179b876 in vfprintf () at /usr/lib/libc.so.6
#8  0x00007f85e17a444a in printf () at /usr/lib/libc.so.6
#9  0x00007f85e2604305 in  () at /usr/lib/libKF5Crash.so.5
#10 0x00007f85e26047d0 in  () at /usr/lib/libKF5Crash.so.5
#11 0x00007f85e2604fee in  () at /usr/lib/libKF5Crash.so.5
#12 0x00007f85e260521c in KCrash::defaultCrashHandler(int) () at /usr/lib/libKF5Crash.so.5
#13 0x00007f85e1782e00 in <signal handler called> () at /usr/lib/libc.so.6
#14 0x00007f85da961bf9 in wl_map_insert_at (map=<optimized out>, flags=flags@entry=1, i=<optimized out>, data=data@entry=0x0) at src/wayland-util.c:247
#15 0x00007f85da95d8f3 in proxy_destroy (proxy=0x55aa920a7b50) at src/wayland-client.c:499
#16 0x00007f85da95d8f3 in wl_proxy_destroy (proxy=0x55aa920a7b50) at src/wayland-client.c:530
#17 0x00007f85d9f35309 in KWayland::Client::PlasmaWindow::release() () at /usr/lib/libKF5WaylandClient.so.5
#18 0x00007f85d9f3532b in KWayland::Client::PlasmaWindow::~PlasmaWindow() () at /usr/lib/libKF5WaylandClient.so.5
#19 0x00007f85d9f3542a in KWayland::Client::PlasmaWindow::~PlasmaWindow() () at /usr/lib/libKF5WaylandClient.so.5
#20 0x00007f85e1bb221b in QObjectPrivate::deleteChildren() () at /usr/lib/libQt5Core.so.5
#21 0x00007f85e1bbb1d5 in QObject::~QObject() () at /usr/lib/libQt5Core.so.5
#22 0x00007f85d9f359fa in KWayland::Client::PlasmaWindowManagement::~PlasmaWindowManagement() () at /usr/lib/libKF5WaylandClient.so.5
#23 0x00007f85e1bb221b in QObjectPrivate::deleteChildren() () at /usr/lib/libQt5Core.so.5
#24 0x00007f85e1bbb1d5 in QObject::~QObject() () at /usr/lib/libQt5Core.so.5
#25 0x00007f85c5b292c4 in  () at /usr/lib/qt/plugins/kf5/org.kde.kwindowsystem.platforms/KF5WindowSystemKWaylandPlugin.so
#26 0x00007f85e178545c in __run_exit_handlers () at /usr/lib/libc.so.6
#27 0x00007f85e178558e in  () at /usr/lib/libc.so.6
#28 0x000055aa90d35460 in launch(int, char const*, char const*, char const*, int, char const*, bool, char const*, bool, char const*) (argc=1, _name=0x55aa90d38281 "kded5", args=<optimized out>, cwd=<optimized out>, envc=0, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x55aa90d3819e "0") at /usr/src/debug/kinit-5.51.0/src/kdeinit/kinit.cpp:706
#29 0x000055aa90d3222a in main(int, char**) (argc=5, argv=<optimized out>) at /usr/src/debug/kinit-5.51.0/src/kdeinit/kinit.cpp:1733
Comment 1 David Edmundson 2018-10-26 16:15:41 UTC
>Wayland session crashed immediately.

What does that include?

Is this trace is for kded5?
Comment 2 Patrick Silva 2018-10-26 16:52:53 UTC
hum, maybe the problem is xwayland. Here are the coredumps at the same time:

Fri 2018-10-26 12:38:43 -03     531  1000  1000   6 present   /usr/bin/Xwayland
Fri 2018-10-26 12:38:45 -03     568  1000  1000  11 present   /usr/bin/kdeinit5

ID of my backtrace is 568 (kdeinit5 process).
Is the whole session expected to crash together xWayland process?
Comment 3 Patrick Silva 2018-10-26 19:32:51 UTC
backtrace of xwayland process, if it's helpful

Core was generated by `/usr/bin/Xwayland -displayfd 44 -rootless -wm 47'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007fab6b961d7f in raise () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7fab689dcd00 (LWP 531))]
(gdb) bt
#0  0x00007fab6b961d7f in raise () from /usr/lib/libc.so.6
#1  0x00007fab6b94c672 in abort () from /usr/lib/libc.so.6
#2  0x0000561df3346eaa in OsAbort () at ../xorg-server-1.20.2/os/utils.c:1350
#3  0x0000561df333f5b5 in AbortServer () at ../xorg-server-1.20.2/os/log.c:877
#4  FatalError (f=<optimized out>) at ../xorg-server-1.20.2/os/log.c:1015
#5  0x0000561df334a6e6 in OsSigHandler (signo=<optimized out>, sip=<optimized out>, 
    unused=<optimized out>, signo=<optimized out>, sip=<optimized out>, unused=<optimized out>)
    at ../xorg-server-1.20.2/os/osinit.c:156
#6  <signal handler called>
#7  0x00007fab6b961d7f in raise () from /usr/lib/libc.so.6
#8  0x00007fab6b94c672 in abort () from /usr/lib/libc.so.6
#9  0x00007fab6b94c548 in __assert_fail_base.cold.0 () from /usr/lib/libc.so.6
#10 0x00007fab6b95a396 in __assert_fail () from /usr/lib/libc.so.6
#11 0x0000561df346043b in xwl_present_flips_stop (window=<optimized out>, window=<optimized out>)
    at ../xorg-server-1.20.2/hw/xwayland/xwayland-present.c:521
#12 0x0000561df33af2ae in present_wnmd_flips_stop (window=<optimized out>, window=<optimized out>)
    at ../xorg-server-1.20.2/present/present_wnmd.c:159
#13 0x0000561df33af525 in present_wnmd_check_flip_window (window=0x561df5817730)
    at ../xorg-server-1.20.2/present/present_wnmd.c:332
#14 0x0000561df33b260f in present_clip_notify (window=0x561df5817730, dx=0, dy=0)
    at ../xorg-server-1.20.2/present/present_screen.c:203
#15 0x0000561df33db078 in compClipNotify (pWin=0x561df5817730, dx=0, dy=0)
    at ../xorg-server-1.20.2/composite/compwindow.c:317
#16 0x0000561df3420775 in miComputeClips (pParent=pParent@entry=0x561df5817730, 
--Type <RET> for more, q to quit, c to continue without paging--
    pScreen=pScreen@entry=0x561df50cf320, universe=universe@entry=0x7ffd3d4c7340, 
    kind=kind@entry=VTOther, exposed=exposed@entry=0x7ffd3d4c7570)
    at ../xorg-server-1.20.2/mi/mivaltree.c:478
#17 0x0000561df3420668 in miComputeClips (pParent=pParent@entry=0x561df574d130, 
    pScreen=pScreen@entry=0x561df50cf320, universe=universe@entry=0x7ffd3d4c7410, 
    kind=kind@entry=VTOther, exposed=exposed@entry=0x7ffd3d4c7570)
    at ../xorg-server-1.20.2/mi/mivaltree.c:428
#18 0x0000561df3420668 in miComputeClips (pParent=pParent@entry=0x561df5815fa0, 
    pScreen=pScreen@entry=0x561df50cf320, universe=universe@entry=0x7ffd3d4c74e0, 
    kind=kind@entry=VTOther, exposed=exposed@entry=0x7ffd3d4c7570)
    at ../xorg-server-1.20.2/mi/mivaltree.c:428
#19 0x0000561df3420668 in miComputeClips (pParent=pParent@entry=0x561df578c270, 
    pScreen=pScreen@entry=0x561df50cf320, universe=universe@entry=0x7ffd3d4c7590, 
    kind=kind@entry=VTOther, exposed=exposed@entry=0x7ffd3d4c7570)
    at ../xorg-server-1.20.2/mi/mivaltree.c:428
#20 0x0000561df3420dcb in miValidateTree (pParent=0x561df5316640, pChild=0x561df578c270, 
    kind=<optimized out>) at ../xorg-server-1.20.2/mi/mivaltree.c:681
#21 0x0000561df341b3c1 in miResizeWindow (pWin=0x561df578c270, x=0, y=<optimized out>, 
    w=<optimized out>, h=<optimized out>, pSib=0x0) at ../xorg-server-1.20.2/mi/miwindow.c:467
#22 0x0000561df33daecd in compResizeWindow (pWin=0x561df578c270, x=<optimized out>, y=<optimized out>, 
    w=<optimized out>, h=<optimized out>, pSib=<optimized out>)
    at ../xorg-server-1.20.2/composite/compwindow.c:407
#23 0x0000561df33e17d1 in ConfigureWindow (pWin=<optimized out>, mask=<optimized out>, 
    vlist=<optimized out>, client=<optimized out>) at ../xorg-server-1.20.2/dix/window.c:2422
--Type <RET> for more, q to quit, c to continue without paging--
#24 0x0000561df3412930 in ProcConfigureWindow (client=0x561df56ccff0)
    at ../xorg-server-1.20.2/dix/dispatch.c:916
#25 0x0000561df3411070 in Dispatch () at ../xorg-server-1.20.2/dix/dispatch.c:478
#26 0x0000561df330b12d in dix_main (envp=<optimized out>, argv=<optimized out>, argc=<optimized out>)
    at ../xorg-server-1.20.2/dix/main.c:276
#27 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>)
    at ../xorg-server-1.20.2/dix/stubmain.c:34
Comment 4 Patrick Silva 2018-10-26 20:32:53 UTC
crashed again

Thread 1 "Xwayland" received signal SIGABRT, Aborted.
0x00007f3bf44cad7f in raise () from target:/usr/lib/libc.so.6
(gdb) thread apply all bt

Thread 4 (Thread 540.544):
#0  0x00007f3bf318aafc in pthread_cond_wait@@GLIBC_2.3.2 ()
   from target:/usr/lib/libpthread.so.0
#1  0x00007f3bef02c094 in ?? () from target:/usr/lib/dri/swrast_dri.so
#2  0x00007f3bef02bfd8 in ?? () from target:/usr/lib/dri/swrast_dri.so
#3  0x00007f3bf3184a9d in start_thread () from target:/usr/lib/libpthread.so.0
#4  0x00007f3bf458eb23 in clone () from target:/usr/lib/libc.so.6

Thread 3 (Thread 540.543):
#0  0x00007f3bf318aafc in pthread_cond_wait@@GLIBC_2.3.2 ()
   from target:/usr/lib/libpthread.so.0
#1  0x00007f3bef02c094 in ?? () from target:/usr/lib/dri/swrast_dri.so
#2  0x00007f3bef02bfd8 in ?? () from target:/usr/lib/dri/swrast_dri.so
#3  0x00007f3bf3184a9d in start_thread () from target:/usr/lib/libpthread.so.0
#4  0x00007f3bf458eb23 in clone () from target:/usr/lib/libc.so.6

Thread 2 (Thread 540.542):
#0  0x00007f3bf318aafc in pthread_cond_wait@@GLIBC_2.3.2 ()
--Type <RET> for more, q to quit, c to continue without paging--c
   from target:/usr/lib/libpthread.so.0
#1  0x00007f3bf0c521ac in ?? () from target:/usr/lib/dri/i965_dri.so
#2  0x00007f3bf0c51ee8 in ?? () from target:/usr/lib/dri/i965_dri.so
#3  0x00007f3bf3184a9d in start_thread () from target:/usr/lib/libpthread.so.0
#4  0x00007f3bf458eb23 in clone () from target:/usr/lib/libc.so.6

Thread 1 (Thread 540.540):
#0  0x00007f3bf44cad7f in raise () from target:/usr/lib/libc.so.6
#1  0x00007f3bf44b5672 in abort () from target:/usr/lib/libc.so.6
#2  0x00007f3bf44b5548 in __assert_fail_base.cold.0 () from target:/usr/lib/libc.so.6
#3  0x00007f3bf44c3396 in __assert_fail () from target:/usr/lib/libc.so.6
#4  0x0000559b4d48a43b in xwl_present_flips_stop (window=<optimized out>, window=<optimized out>) at ../xorg-server-1.20.2/hw/xwayland/xwayland-present.c:521
#5  0x0000559b4d3d92ae in present_wnmd_flips_stop (window=<optimized out>, window=<optimized out>) at ../xorg-server-1.20.2/present/present_wnmd.c:159
#6  0x0000559b4d3d9525 in present_wnmd_check_flip_window (window=0x559b4e1a4c70) at ../xorg-server-1.20.2/present/present_wnmd.c:332
#7  0x0000559b4d3dc60f in present_clip_notify (window=0x559b4e1a4c70, dx=0, dy=0) at ../xorg-server-1.20.2/present/present_screen.c:203
#8  0x0000559b4d405078 in compClipNotify (pWin=0x559b4e1a4c70, dx=0, dy=0) at ../xorg-server-1.20.2/composite/compwindow.c:317
#9  0x0000559b4d44a775 in miComputeClips (pParent=pParent@entry=0x559b4e1a4c70, pScreen=pScreen@entry=0x559b4da72320, universe=universe@entry=0x7ffd21ca4ea0, kind=kind@entry=VTOther, exposed=exposed@entry=0x7ffd21ca50d0) at ../xorg-server-1.20.2/mi/mivaltree.c:478
#10 0x0000559b4d44a668 in miComputeClips (pParent=pParent@entry=0x559b4e0e0630, pScreen=pScreen@entry=0x559b4da72320, universe=universe@entry=0x7ffd21ca4f70, kind=kind@entry=VTOther, exposed=exposed@entry=0x7ffd21ca50d0) at ../xorg-server-1.20.2/mi/mivaltree.c:428
#11 0x0000559b4d44a668 in miComputeClips (pParent=pParent@entry=0x559b4e1a4a30, pScreen=pScreen@entry=0x559b4da72320, universe=universe@entry=0x7ffd21ca5040, kind=kind@entry=VTOther, exposed=exposed@entry=0x7ffd21ca50d0) at ../xorg-server-1.20.2/mi/mivaltree.c:428
#12 0x0000559b4d44a668 in miComputeClips (pParent=pParent@entry=0x559b4e1a4850, pScreen=pScreen@entry=0x559b4da72320, universe=universe@entry=0x7ffd21ca50f0, kind=kind@entry=VTOther, exposed=exposed@entry=0x7ffd21ca50d0) at ../xorg-server-1.20.2/mi/mivaltree.c:428
#13 0x0000559b4d44adcb in miValidateTree (pParent=0x559b4dcb9660, pChild=0x559b4e1a4850, kind=<optimized out>) at ../xorg-server-1.20.2/mi/mivaltree.c:681
#14 0x0000559b4d4453c1 in miResizeWindow (pWin=0x559b4e1a4850, x=0, y=<optimized out>, w=<optimized out>, h=<optimized out>, pSib=0x0) at ../xorg-server-1.20.2/mi/miwindow.c:467
#15 0x0000559b4d404ecd in compResizeWindow (pWin=0x559b4e1a4850, x=<optimized out>, y=<optimized out>, w=<optimized out>, h=<optimized out>, pSib=<optimized out>) at ../xorg-server-1.20.2/composite/compwindow.c:407
#16 0x0000559b4d40b7d1 in ConfigureWindow (pWin=<optimized out>, mask=<optimized out>, vlist=<optimized out>, client=<optimized out>) at ../xorg-server-1.20.2/dix/window.c:2422
#17 0x0000559b4d43c930 in ProcConfigureWindow (client=0x559b4e06fc50) at ../xorg-server-1.20.2/dix/dispatch.c:916
#18 0x0000559b4d43b070 in Dispatch () at ../xorg-server-1.20.2/dix/dispatch.c:478
#19 0x0000559b4d33512d in dix_main (envp=<optimized out>, argv=<optimized out>, argc=<optimized out>) at ../xorg-server-1.20.2/dix/main.c:276
#20 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at ../xorg-server-1.20.2/dix/stubmain.c:34
Comment 5 Patrick Silva 2018-10-27 16:07:54 UTC
backtrace with xwayland 1.20.3

Thread 1 "Xwayland" received signal SIGABRT, Aborted.
0x00007f8dadbf8d7f in raise () from target:/usr/lib/libc.so.6
(gdb) thread apply all bt

Thread 4 (Thread 527.531):
#0  0x00007f8dac8b8afc in pthread_cond_wait@@GLIBC_2.3.2 ()
   from target:/usr/lib/libpthread.so.0
#1  0x00007f8da875a094 in cnd_wait (mtx=0x55f6ead05d18, cond=0x55f6ead05d40)
    at ../mesa-18.2.3/include/c11/threads_posix.h:155
#2  pipe_semaphore_wait (sema=0x55f6ead05d18)
    at ../mesa-18.2.3/src/gallium/auxiliary/os/os_thread.h:108
#3  thread_function (init_data=init_data@entry=0x55f6ead05c78)
    at ../mesa-18.2.3/src/gallium/drivers/llvmpipe/lp_rast.c:805
#4  0x00007f8da8759fd8 in impl_thrd_routine (p=<optimized out>)
    at ../mesa-18.2.3/include/c11/threads_posix.h:87
#5  0x00007f8dac8b2a9d in start_thread () from target:/usr/lib/libpthread.so.0
#6  0x00007f8dadcbcb23 in clone () from target:/usr/lib/libc.so.6

Thread 3 (Thread 527.530):
#0  0x00007f8dac8b8afc in pthread_cond_wait@@GLIBC_2.3.2 ()
   from target:/usr/lib/libpthread.so.0
#1  0x00007f8da875a094 in cnd_wait (mtx=0x55f6ead05bb8, cond=0x55f6ead05be0)
--Type <RET> for more, q to quit, c to continue without paging--c
    at ../mesa-18.2.3/include/c11/threads_posix.h:155
#2  pipe_semaphore_wait (sema=0x55f6ead05bb8) at ../mesa-18.2.3/src/gallium/auxiliary/os/os_thread.h:108
#3  thread_function (init_data=init_data@entry=0x55f6ead05b18) at ../mesa-18.2.3/src/gallium/drivers/llvmpipe/lp_rast.c:805
#4  0x00007f8da8759fd8 in impl_thrd_routine (p=<optimized out>) at ../mesa-18.2.3/include/c11/threads_posix.h:87
#5  0x00007f8dac8b2a9d in start_thread () from target:/usr/lib/libpthread.so.0
#6  0x00007f8dadcbcb23 in clone () from target:/usr/lib/libc.so.6

Thread 2 (Thread 527.529):
#0  0x00007f8dac8b8afc in pthread_cond_wait@@GLIBC_2.3.2 () from target:/usr/lib/libpthread.so.0
#1  0x00007f8daa3801ac in cnd_wait (mtx=0x55f6eac4b148, cond=0x55f6eac4b170) at ../mesa-18.2.3/src/../include/c11/threads_posix.h:155
#2  util_queue_thread_func (input=input@entry=0x55f6eab30530) at ../mesa-18.2.3/src/util/u_queue.c:256
#3  0x00007f8daa37fee8 in impl_thrd_routine (p=<optimized out>) at ../mesa-18.2.3/src/../include/c11/threads_posix.h:87
#4  0x00007f8dac8b2a9d in start_thread () from target:/usr/lib/libpthread.so.0
#5  0x00007f8dadcbcb23 in clone () from target:/usr/lib/libc.so.6

Thread 1 (Thread 527.527):
#0  0x00007f8dadbf8d7f in raise () from target:/usr/lib/libc.so.6
#1  0x00007f8dadbe3672 in abort () from target:/usr/lib/libc.so.6
#2  0x00007f8dadbe3548 in __assert_fail_base.cold.0 () from target:/usr/lib/libc.so.6
#3  0x00007f8dadbf1396 in __assert_fail () from target:/usr/lib/libc.so.6
#4  0x000055f6ea63943b in xwl_present_flips_stop (window=<optimized out>, window=<optimized out>) at ../xorg-server-1.20.3/hw/xwayland/xwayland-present.c:521
#5  0x000055f6ea5882ae in present_wnmd_flips_stop (window=<optimized out>, window=<optimized out>) at ../xorg-server-1.20.3/present/present_wnmd.c:159
#6  0x000055f6ea588525 in present_wnmd_check_flip_window (window=0x55f6eb1ca0e0) at ../xorg-server-1.20.3/present/present_wnmd.c:332
#7  0x000055f6ea58b60f in present_clip_notify (window=0x55f6eb1ca0e0, dx=0, dy=0) at ../xorg-server-1.20.3/present/present_screen.c:203
#8  0x000055f6ea5b4078 in compClipNotify (pWin=0x55f6eb1ca0e0, dx=0, dy=0) at ../xorg-server-1.20.3/composite/compwindow.c:317
#9  0x000055f6ea5f9775 in miComputeClips (pParent=pParent@entry=0x55f6eb1ca0e0, pScreen=pScreen@entry=0x55f6eaaf8320, universe=universe@entry=0x7ffe2a91ccc0, kind=kind@entry=VTOther, exposed=exposed@entry=0x7ffe2a91cef0) at ../xorg-server-1.20.3/mi/mivaltree.c:478
#10 0x000055f6ea5f9668 in miComputeClips (pParent=pParent@entry=0x55f6eb162000, pScreen=pScreen@entry=0x55f6eaaf8320, universe=universe@entry=0x7ffe2a91cd90, kind=kind@entry=VTOther, exposed=exposed@entry=0x7ffe2a91cef0) at ../xorg-server-1.20.3/mi/mivaltree.c:428
#11 0x000055f6ea5f9668 in miComputeClips (pParent=pParent@entry=0x55f6eb16c490, pScreen=pScreen@entry=0x55f6eaaf8320, universe=universe@entry=0x7ffe2a91ce60, kind=kind@entry=VTOther, exposed=exposed@entry=0x7ffe2a91cef0) at ../xorg-server-1.20.3/mi/mivaltree.c:428
#12 0x000055f6ea5f9668 in miComputeClips (pParent=pParent@entry=0x55f6eb16c240, pScreen=pScreen@entry=0x55f6eaaf8320, universe=universe@entry=0x7ffe2a91cf10, kind=kind@entry=VTOther, exposed=exposed@entry=0x7ffe2a91cef0) at ../xorg-server-1.20.3/mi/mivaltree.c:428
#13 0x000055f6ea5f9dcb in miValidateTree (pParent=0x55f6ead3f640, pChild=0x55f6eb16c240, kind=<optimized out>) at ../xorg-server-1.20.3/mi/mivaltree.c:681
#14 0x000055f6ea5f43c1 in miResizeWindow (pWin=0x55f6eb16c240, x=0, y=<optimized out>, w=<optimized out>, h=<optimized out>, pSib=0x0) at ../xorg-server-1.20.3/mi/miwindow.c:467
#15 0x000055f6ea5b3ecd in compResizeWindow (pWin=0x55f6eb16c240, x=<optimized out>, y=<optimized out>, w=<optimized out>, h=<optimized out>, pSib=<optimized out>) at ../xorg-server-1.20.3/composite/compwindow.c:407
#16 0x000055f6ea5ba7d1 in ConfigureWindow (pWin=<optimized out>, mask=<optimized out>, vlist=<optimized out>, client=<optimized out>) at ../xorg-server-1.20.3/dix/window.c:2422
#17 0x000055f6ea5eb930 in ProcConfigureWindow (client=0x55f6eb0f5cb0) at ../xorg-server-1.20.3/dix/dispatch.c:916
#18 0x000055f6ea5ea070 in Dispatch () at ../xorg-server-1.20.3/dix/dispatch.c:478
#19 0x000055f6ea4e412d in dix_main (envp=<optimized out>, argv=<optimized out>, argc=<optimized out>) at ../xorg-server-1.20.3/dix/main.c:276
#20 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at ../xorg-server-1.20.3/dix/stubmain.c:34
(gdb)
Comment 6 Christoph Feck 2018-10-27 16:31:27 UTC
The original backtrace from comment #0 is bug 390151. The other backtrace is different, and looks like a bug in xwayland.
Comment 7 Patrick Silva 2018-11-03 19:14:32 UTC
Well, Wayland session is not exactly crashing.
Music playing in background stops, cursor freezes and I need to kill the session by pressing alt+ptrintscreen+k.
Comment 8 David Edmundson 2018-11-13 12:36:03 UTC
In the first trace
>#26 0x00007f85e178545c in __run_exit_handlers () at /usr/lib/libc.so.6

we're quitting anyway

The rest are traces in xwayland which isn't us

Is kwin_wayland crashing?
Comment 9 Patrick Silva 2018-11-13 13:53:53 UTC
(In reply to David Edmundson from comment #8)
> Is kwin_wayland crashing?

No.
I reported Xwayland crash
https://gitlab.freedesktop.org/xorg/xserver/issues/8
Comment 10 Bug Janitor Service 2018-11-28 04:46:13 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 2018-12-13 03:44:35 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!