swayfx/include/sway
Dominique Martinet b0918b1058 ipc-server: add display destroy listener and remove ipc_terminate
wl_event_source_remove() is illegal after display has been destroyed,
so just destroy everything when we still can.

==20392==ERROR: AddressSanitizer: heap-use-after-free on address 0x607000001240 at pc 0x00000048e86e bp 0x7ffe4b557e00 sp 0x7ffe4b557df0
READ of size 8 at 0x607000001240 thread T0
    #0 0x48e86d in wl_list_insert ../common/list.c:149
    #1 0x7fdf673d4d7d in wl_event_source_remove src/event-loop.c:487
    #2 0x41b742 in ipc_terminate ../sway/ipc-server.c:94
    #3 0x40b1ad in main ../sway/main.c:440
    #4 0x7fdf6664c18a in __libc_start_main ../csu/libc-start.c:308
    #5 0x409359 in _start (/opt/wayland/bin/sway+0x409359)

0x607000001240 is located 48 bytes inside of 72-byte region [0x607000001210,0x607000001258)
freed by thread T0 here:
    #0 0x7fdf692c4880 in __interceptor_free (/lib64/libasan.so.5+0xee880)
    #1 0x7fdf673d371a in wl_display_destroy src/wayland-server.c:1097

previously allocated by thread T0 here:
    #0 0x7fdf692c4c48 in malloc (/lib64/libasan.so.5+0xeec48)
    #1 0x7fdf673d4d9e in wl_event_loop_create src/event-loop.c:522
    #2 0x40acb2 in main ../sway/main.c:363
    #3 0x7fdf6664c18a in __libc_start_main ../csu/libc-start.c:308
2018-07-04 18:47:11 +09:00
..
desktop idle_inhibit: move server data to its own struct 2018-07-02 09:29:16 +09:00
input Fix crash when deleting last child in a tabbed or stacked container 2018-06-23 17:47:28 +10:00
tree sway views: add helpers to get view and layer from wlr_surface 2018-06-30 22:31:14 +09:00
commands.h Refactor cmd_output to use config_subcommand 2018-06-03 10:26:06 -04:00
config.h Sort binding key lists 2018-06-12 11:26:24 -04:00
criteria.h Add shell criteria token 2018-05-27 22:02:00 +10:00
debug.h Add debug tree view 2018-04-06 11:49:27 -04:00
desktop.h Simplify damage tracking functions, use them in layer shell 2018-04-06 11:45:40 -04:00
ipc-json.h Store sway_outputs so that they can be reenabled 2018-06-06 20:11:24 -04:00
ipc-server.h ipc-server: add display destroy listener and remove ipc_terminate 2018-07-04 18:47:11 +09:00
layers.h sway views: add helpers to get view and layer from wlr_surface 2018-06-30 22:31:14 +09:00
output.h Merge remote-tracking branch 'upstream/master' into atomic 2018-06-29 20:04:24 +10:00
security.h Move get_feature_policy to sway/security.c 2017-04-16 17:09:53 +03:00
server.h idle_inhibit: move server data to its own struct 2018-07-02 09:29:16 +09:00
xwayland.h Automatically float xwayland windows 2018-06-18 22:52:10 +01:00