No description
Find a file
Pavel Ondračka b125b19fc2 xwayland: clean up glamor EGL state on fatal exits
Xwayland initializes glamor on top of an EGL display, but some fatal
exit paths bypass the normal screen close sequence. In particular, this
can happen through xwl_give_up() after the Wayland compositor goes away,
or through ddxGiveUp() after early startup failures such as keymap
compilation failure.

A relevant excerpt from the ASan report:
  Direct leak of 368 byte(s) in 1 object(s) allocated from:
    #0 in calloc
    #1 in dri2_display_create ../src/egl/drivers/dri2/egl_dri2.c:1014
    #2 in dri2_initialize ../src/egl/drivers/dri2/egl_dri2.c:874
    #3 in eglInitialize ../src/egl/main/eglapi.c:697
    #4 in xwl_glamor_gbm_init_egl ../hw/xwayland/xwayland-glamor-gbm.c:1739
    #5 in xwl_glamor_init ../hw/xwayland/xwayland-glamor.c:242
    #6 in xwl_screen_init ../hw/xwayland/xwayland-screen.c:1121
    #7 in AddScreen ../dix/dispatch.c:3999
    #8 in InitOutput ../hw/xwayland/xwayland.c:437
    #9 in dix_main ../dix/main.c:190
    ...
  Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 in calloc
    #1 in _eglCreateArray ../src/egl/main/eglarray.c:69
    #2 in _eglLinkConfig ../src/egl/main/eglconfig.c:85
    #3 in dri2_add_config ../src/egl/drivers/dri2/egl_dri2.c:457
    #4 in drm_add_configs_for_visuals ../src/egl/drivers/dri2/platform_drm.c:563
    #5 in dri2_initialize_drm ../src/egl/drivers/dri2/platform_drm.c:706
    #6 in dri2_initialize ../src/egl/drivers/dri2/egl_dri2.c:892
    #7 in eglInitialize ../src/egl/main/eglapi.c:697
    ...

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2170>
2026-09-28 07:26:12 +00:00
.gitlab-ci Use _X_FALLTHROUGH macro to silence fallthrough warnings in clang as well 2026-09-12 18:25:58 +00:00
composite composite: Fix PanoramiX overlay window release 2026-08-08 20:11:24 +00:00
config meson: convert remaining foo == a or foo == b to foo in [a, b] style 2026-09-12 18:20:30 +00:00
damageext damageext: fix wrong REQUEST_SIZE_MATCH type in SProcDamageAdd 2026-04-24 01:09:42 +00:00
dbe Zero out structs to avoid leaking information via padding 2026-04-24 01:14:55 +00:00
dix Use _X_FALLTHROUGH macro to silence fallthrough warnings in clang as well 2026-09-12 18:25:58 +00:00
doc meson: replace join_paths() with / operator 2026-03-28 10:02:41 -07:00
dri3 meson: only install dri3.h if building dri3 support 2026-09-01 01:21:05 +00:00
exa exa: silence -Wold-style-declaration warning from gcc 16 2026-08-09 15:29:21 -07:00
fb Use _X_FALLTHROUGH macro to silence fallthrough warnings in clang as well 2026-09-12 18:25:58 +00:00
glamor glamor: free the link log on shader link failure 2026-09-28 07:26:11 +00:00
glx Use _X_FALLTHROUGH macro to silence fallthrough warnings in clang as well 2026-09-12 18:25:58 +00:00
hw xwayland: clean up glamor EGL state on fatal exits 2026-09-28 07:26:12 +00:00
include meson: convert remaining foo == a or foo == b to foo in [a, b] style 2026-09-12 18:20:30 +00:00
man Disable font server connections by default 2026-07-30 10:07:05 +10:00
mi Use _X_FALLTHROUGH macro to silence fallthrough warnings in clang as well 2026-09-12 18:25:58 +00:00
miext Use _X_FALLTHROUGH macro to silence fallthrough warnings in clang as well 2026-09-12 18:25:58 +00:00
os Use _X_FALLTHROUGH macro to silence fallthrough warnings in clang as well 2026-09-12 18:25:58 +00:00
present present: actually return the created notifies 2026-05-10 23:37:05 +00:00
pseudoramiX pseudoramiX: add missing byte swapping in various fields 2026-04-24 01:55:37 +00:00
randr randr: Set the legacy RandR size range to include rotations 2026-08-08 16:45:28 +00:00
record Strip trailing whitespace from source files 2026-01-25 10:40:02 -08:00
render Use _X_FALLTHROUGH macro to silence fallthrough warnings in clang as well 2026-09-12 18:25:58 +00:00
test Use _X_FALLTHROUGH macro to silence fallthrough warnings in clang as well 2026-09-12 18:25:58 +00:00
Xext Use _X_FALLTHROUGH macro to silence fallthrough warnings in clang as well 2026-09-12 18:25:58 +00:00
xfixes Add log messages when ForceTerminate is blocked 2026-07-12 12:34:36 -07:00
Xi Xi: byte-swap XIQueryDevice ScrollClass flags 2026-09-01 05:11:53 +00:00
xkb Use _X_FALLTHROUGH macro to silence fallthrough warnings in clang as well 2026-09-12 18:25:58 +00:00
.appveyor.yml appveyor: Add libxcvt build dep 2021-11-04 13:03:25 +00:00
.dir-locals.el .dir-locals.el: Add missing final newline 2019-10-01 17:05:28 +00:00
.git-blame-ignore-revs Ignore the coding style change commit during git blame 2026-01-25 10:39:58 -08:00
.gitignore Clean up the .gitignore file 2024-01-12 00:50:24 +00:00
.gitlab-ci.yml Use _X_FALLTHROUGH macro to silence fallthrough warnings in clang as well 2026-09-12 18:25:58 +00:00
.mailmap Update mailmap for Peter Harris 2026-01-25 10:40:01 -08:00
.travis.yml travis: Add OSX meson build to matrix 2019-05-02 15:42:58 +00:00
COPYING COPYING: sort licenses 2026-06-13 16:01:24 +00:00
meson.build Use _X_FALLTHROUGH macro to silence fallthrough warnings in clang as well 2026-09-12 18:25:58 +00:00
meson_options.txt os: drop SUN-DES-1 authentication 2026-01-25 10:39:53 -08:00
README.md Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
SECURITY.md Create a SECURITY.md file 2026-01-25 10:40:03 -08:00
xorg-server.m4 Strip trailing whitespace from source files 2026-01-25 10:40:02 -08:00
xorg-server.pc.in pkgconfig files: Add URL 2026-01-25 10:40:01 -08:00
xserver.ent.in

X Server

The X server accepts requests from client applications to create windows, which are (normally rectangular) "virtual screens" that the client program can draw into.

Windows are then composed on the actual screen by the X server (or by a separate composite manager) as directed by the window manager, which usually communicates with the user via graphical controls such as buttons and draggable titlebars and borders.

For a comprehensive overview of X Server and X Window System, consult the following article: https://en.wikipedia.org/wiki/X_server

All questions regarding this software should be directed at the Xorg mailing list:

https://lists.freedesktop.org/mailman/listinfo/xorg

The primary development code repository can be found at:

https://gitlab.freedesktop.org/xorg/xserver

For patch submission instructions, see:

https://www.x.org/wiki/Development/Documentation/SubmittingPatches

As with other projects hosted on freedesktop.org, X.Org follows its Code of Conduct, based on the Contributor Covenant. Please conduct yourself in a respectful and civilized manner when using the above mailing lists, bug trackers, etc:

https://www.freedesktop.org/wiki/CodeOfConduct