xserver/hw
Lyude a06bb73053 xwayland: Unconditionally initialize lists in init_tablet_manager_seat()
In the event that xwayland gets launched on a wayland compositor that
doesn't yet have support for wp_tablet_manager, we end up skipping the
initialization of the lists. This is wrong, because regardless of
whether or not a tablet is present we still attempt to traverse these
lists later in xwl_set_cursor(), expecting that if the lists are empty
from no tablet manager that we simply won't execute any loop iterations.

(EE)
(EE) Backtrace:
(EE) 0: Xwayland (OsSigHandler+0x3b) [0x4982f9]
(EE) 1: /lib64/libpthread.so.0 (__restore_rt+0x0) [0x7f73722545bf]
(EE) 2: Xwayland (xwl_set_cursor+0x9f) [0x429974]
(EE) 3: Xwayland (miPointerUpdateSprite+0x261) [0x4fe1ca]
(EE) 4: Xwayland (mieqProcessInputEvents+0x239) [0x4f8d33]
(EE) 5: Xwayland (ProcessInputEvents+0x9) [0x4282f0]
(EE) 6: Xwayland (Dispatch+0x42) [0x43e2d4]
(EE) 7: Xwayland (dix_main+0x5c9) [0x44c6dc]
(EE) 8: Xwayland (main+0x28) [0x61c523]
(EE) 9: /lib64/libc.so.6 (__libc_start_main+0xf1) [0x7f7371e9d401]
(EE) 10: Xwayland (_start+0x2a) [0x4208fa]
(EE) 11: ? (?+0x2a) [0x2a]
(EE)
(EE) Segmentation fault at address 0x28
(EE)
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE)

Reproduced when trying to run upstream xwayland under fedora 25's weston
package.

Signed-off-by: Lyude <lyude@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-05-05 08:50:45 +10:00
..
dmx dmx: Fix decl mismatch for XRT_WINDOW 2017-05-03 15:44:04 -04:00
kdrive meson: Fix kdrive build. 2017-05-04 11:04:40 +10:00
vfb Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
xfree86 meson: Fix typoed filename 2017-05-04 10:28:18 -04:00
xnest Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
xquartz Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
xwayland xwayland: Unconditionally initialize lists in init_tablet_manager_seat() 2017-05-05 08:50:45 +10:00
xwin dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00
meson.build Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00