ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.17k stars 213 forks source link

gamescope crashs on MouseCursor::getTexture() on some hardware #1073

Open ChrisOboe opened 11 months ago

ChrisOboe commented 11 months ago

On one of my systems gamescope crashes (on another system with an Intel Core i5-1135G7, also with the same mesa version the identical gamescope build runs just fine. so i guess it may be gpu driver specific?)

Hardware: AMD Ryzen 5800X3D / AMD Radeon 7900XTX Software: Jovian-NixOS / mesa-23.1.9 / radv / gamescope 3.13.19

systemlog: ``` Dez 27 09:57:12 bodd systemd[1323]: Started Gamescope Session. Dez 27 09:57:12 bodd systemd[1323]: Reached target Current graphical user session. Dez 27 09:57:12 bodd gamescope-session[20871]: Making Gamescope Mode Save file at "/home/gamer/.config/gamescope/modes.cfg" Dez 27 09:57:12 bodd gamescope-session[20871]: Making Gamescope patched edid at "/home/gamer/.config/gamescope/edid.bin" Dez 27 09:57:12 bodd gamescope-session[20871]: Removing file: /home/gamer/.local/share/Steam/config/uioverrides/movies/* Dez 27 09:57:12 bodd gamescope-session[20887]: /nix/store/zx8aqgdy735qzk81glfwil6mbi6ddqb1-coreutils-9.4/bin/rm: cannot remove '/home/gamer/.local/share/Steam/config/uioverrides/movies/*': No such file or directory Dez 27 09:57:12 bodd gamescope-session[20888]: /nix/store/zx8aqgdy735qzk81glfwil6mbi6ddqb1-coreutils-9.4/bin/rm: cannot remove '/home/gamer/.local/share/Steam/config/uioverrides/movies/*.installed': No such file or di> Dez 27 09:57:12 bodd gamescope-session[20898]: /nix/store/fq931irblm459pcnb9p6jr3nksgjjm7j-galileo-mura-0.3/bin/galileo-mura-setup: line 8: /usr/bin/galileo-mura-extractor: No such file or directory Dez 27 09:57:12 bodd gamescope-session[20871]: Claimed global gamescope stats session at "/run/user/1000/gamescope-stats" Dez 27 09:57:12 bodd gamescope-session[20904]: vblank: Using timerfd. Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/headless/backend.c:67] Creating headless backend Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [libseat] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [libseat] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [libseat] [libseat/libseat.c:73] Seat opened with backend 'logind' Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/session/session.c:109] Successfully loaded libseat session Dez 27 09:57:12 bodd gamescope-session[20904]: ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment. Dez 27 09:57:12 bodd gamescope-session[20904]: ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment. Dez 27 09:57:12 bodd gamescope-session[20904]: ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment. Dez 27 09:57:12 bodd gamescope-session[20904]: drm: warning: picking an arbitrary DRM device Dez 27 09:57:12 bodd gamescope-session[20904]: drm: Immediate flips are not supported by the KMS driver Dez 27 09:57:12 bodd gamescope-session[20904]: drm: Immediate flips disabled from environment Dez 27 09:57:12 bodd gamescope-session[20904]: drm: Connector make VES model 43UHD_LCD_TV Dez 27 09:57:12 bodd gamescope-session[20904]: drm: [colorimetry]: EDID with colorimetry detected. Using it Dez 27 09:57:12 bodd gamescope-session[20904]: drm: [colorimetry]: r 0.639648 0.339844 Dez 27 09:57:12 bodd gamescope-session[20904]: drm: [colorimetry]: g 0.299805 0.690430 Dez 27 09:57:12 bodd gamescope-session[20904]: drm: [colorimetry]: b 0.137695 0.038086 Dez 27 09:57:12 bodd gamescope-session[20904]: drm: [colorimetry]: w 0.282227 0.296875 Dez 27 09:57:12 bodd gamescope-session[20904]: drm: found new connector 'HDMI-A-2' Dez 27 09:57:12 bodd gamescope-session[20904]: drm: found new connector 'DP-2' Dez 27 09:57:12 bodd gamescope-session[20904]: drm: found new connector 'HDMI-A-1' Dez 27 09:57:12 bodd gamescope-session[20904]: drm: found new connector 'DP-1' Dez 27 09:57:12 bodd gamescope-session[20904]: drm: CRTC 79 has no VALVE1_CRTC_REGAMMA_TF support Dez 27 09:57:12 bodd gamescope-session[20904]: drm: CRTC 83 has no VALVE1_CRTC_REGAMMA_TF support Dez 27 09:57:12 bodd gamescope-session[20904]: drm: CRTC 87 has no VALVE1_CRTC_REGAMMA_TF support Dez 27 09:57:12 bodd gamescope-session[20904]: drm: CRTC 91 has no VALVE1_CRTC_REGAMMA_TF support Dez 27 09:57:12 bodd gamescope-session[20904]: drm: Connectors: Dez 27 09:57:12 bodd gamescope-session[20904]: drm: HDMI-A-2 (connected) Dez 27 09:57:12 bodd gamescope-session[20904]: drm: DP-2 (disconnected) Dez 27 09:57:12 bodd gamescope-session[20904]: drm: HDMI-A-1 (disconnected) Dez 27 09:57:12 bodd gamescope-session[20904]: drm: DP-1 (disconnected) Dez 27 09:57:12 bodd gamescope-session[20904]: drm: selecting connector HDMI-A-2 Dez 27 09:57:12 bodd gamescope-session[20904]: drm: selecting mode 3840x2160@60Hz Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: selecting physical device 'AMD Radeon RX 7900 XTX (RADV GFX1100)': queue family 1 (general queue family 0) Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: physical device supports DRM format modifiers Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: supported DRM formats for sampling usage: Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: AR24 (0x34325241) Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: XR24 (0x34325258) Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: AB24 (0x34324241) Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: XB24 (0x34324258) Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: RG16 (0x36314752) Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: NV12 (0x3231564E) Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: AB4H (0x48344241) Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: XB4H (0x48344258) Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: AB48 (0x38344241) Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: XB48 (0x38344258) Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: AB30 (0x30334241) Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: XB30 (0x30334258) Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: AR30 (0x30335241) Dez 27 09:57:12 bodd gamescope-session[20904]: vulkan: XR30 (0x30335258) Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: Running compositor on wayland display 'gamescope-0' Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/headless/backend.c:17] Starting headless backend Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/backend.c:88] Starting libinput backend Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/events.c:70] Adding Power Button [0:1] Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/events.c:70] Adding Power Button [0:1] Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/events.c:70] Adding HID 0c45:7403 [3141:29699] Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/events.c:70] Adding HID 0c45:7403 [3141:29699] Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/events.c:70] Adding Valve Software Steam Controller [10462:4418] Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/events.c:70] Adding Trust 2.4G Keyboard And Mouse [1578:12934] Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/events.c:70] Adding Trust 2.4G Keyboard And Mouse [1578:12934] Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/events.c:70] Adding Trust 2.4G Keyboard And Mouse Consumer Control [1578:12934] Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/events.c:70] Adding Trust 2.4G Keyboard And Mouse System Control [1578:12934] Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/events.c:70] Adding EFL EFL_51V33 Consumer Control [3141:33025] Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/events.c:70] Adding EFL EFL_51V33 System Control [3141:33025] Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/events.c:70] Adding EFL EFL_51V33 Keyboard [3141:33025] Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/events.c:70] Adding EFL EFL_51V33 [3141:33025] Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/events.c:70] Adding USB Sound Device [3468:258] Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [backend/libinput/backend.c:129] libinput successfully initialized Dez 27 09:57:12 bodd gamescope-session[20920]: wlserver: [xwayland/server.c:108] Starting Xwayland on :0 Dez 27 09:57:12 bodd gamescope-session[20921]: wlserver: [xwayland/server.c:108] Starting Xwayland on :1 Dez 27 09:57:12 bodd gamescope-session[20944]: The XKEYBOARD keymap compiler (xkbcomp) reports: Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86CameraAccessEnable Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86CameraAccessDisable Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86CameraAccessToggle Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86NextElement Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86PreviousElement Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86AutopilotEngageToggle Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86MarkWaypoint Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86Sos Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86NavChart Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86FishingChart Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86SingleRangeRadar Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86DualRangeRadar Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86RadarOverlay Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86TraditionalSonar Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86ClearvuSonar Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86SidevuSonar Dez 27 09:57:12 bodd gamescope-session[20944]: > Warning: Could not resolve keysym XF86NavInfo Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [types/wlr_compositor.c:692] New wlr_surface 0x2b7a300 (res 0x2ea6aa0) Dez 27 09:57:12 bodd gamescope-session[20944]: Errors from xkbcomp are not fatal to the X server Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [xwayland/server.c:273] Xserver is ready Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [types/wlr_compositor.c:692] New wlr_surface 0x2bf3f50 (res 0x2e9dec0) Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [xwayland/server.c:273] Xserver is ready Dez 27 09:57:12 bodd gamescope-session[20904]: pipewire: stream state changed: connecting Dez 27 09:57:12 bodd gamescope-session[20904]: pipewire: stream state changed: paused Dez 27 09:57:12 bodd gamescope-session[20904]: pipewire: stream available on node ID: 56 Dez 27 09:57:12 bodd gamescope-session[20904]: xwm: Embedded, no cursor set. Using left_ptr by default. Dez 27 09:57:12 bodd gamescope-session[20904]: xwm: Embedded, no cursor set. Using left_ptr by default. Dez 27 09:57:12 bodd gamescope-session[20904]: drm: [josh edid] BASE Checksum valid? Y Dez 27 09:57:12 bodd gamescope-session[20904]: drm: [josh edid] Wrote new edid to: /home/gamer/.config/gamescope/edid.bin Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: Updating mode for xwayland server #0: 3840x2160@60 Dez 27 09:57:12 bodd gamescope-session[20904]: pipewire: renegotiating stream params (size: 3840x2160) Dez 27 09:57:12 bodd gamescope-session[20949]: Error : /etc/xbindkeysrc not found or reading not allowed. Dez 27 09:57:12 bodd gamescope-session[20949]: please, create one with 'xbindkeys --defaults > /etc/xbindkeysrc'. Dez 27 09:57:12 bodd gamescope-session[20949]: or, if you want scheme configuration style, Dez 27 09:57:12 bodd gamescope-session[20949]: with 'xbindkeys --defaults-guile > /home/gamer/.xbindkeysrc.scm'. Dez 27 09:57:12 bodd gamescope-session[21006]: steam.sh[21006]: Running Steam on nixos 24.05 64-bit Dez 27 09:57:12 bodd gamescope-session[21006]: steam.sh[21006]: STEAM_RUNTIME is enabled automatically Dez 27 09:57:12 bodd gamescope-session[21291]: setup.sh[21291]: Steam runtime environment up-to-date! Dez 27 09:57:12 bodd gamescope-session[21006]: steam.sh[21006]: Steam client's requirements are satisfied Dez 27 09:57:12 bodd gamescope-session[21533]: 12/27 09:57:12 Init: Installing breakpad exception handler for appid(steam)/version(1691097434)/tid(21533) Dez 27 09:57:12 bodd gamescope-session[20904]: wlserver: [types/wlr_compositor.c:692] New wlr_surface 0x2a89880 (res 0x2e646f0) Dez 27 09:57:12 bodd gamescope-session[20976]: [2023-12-27 09:57:12.937] [MANGOHUD] [error] [overlay_params.cpp:999] Failed to read presets file: '/home/gamer/.config/MangoHud/presets.conf' Dez 27 09:57:12 bodd gamescope-session[20904]: xwm: Rejecting WM_CHANGE_STATE to ICONIC for window 0x400007 Dez 27 09:57:13 bodd gamescope-session[20904]: wlserver: [types/wlr_compositor.c:692] New wlr_surface 0x2f49cd0 (res 0x2e330a0) Dez 27 09:57:13 bodd gamescope-session[20904]: xwm: got the same buffer committed twice, ignoring. Dez 27 09:57:13 bodd gamescope-session[23416]: The XKEYBOARD keymap compiler (xkbcomp) reports: Dez 27 09:57:13 bodd gamescope-session[23417]: The XKEYBOARD keymap compiler (xkbcomp) reports: Dez 27 09:57:13 bodd gamescope-session[23416]: > Warning: Dez 27 09:57:13 bodd gamescope-session[23417]: > Warning: Dez 27 09:57:13 bodd gamescope-session[23416]: Unsupported maximum keycode 708, clipping. Dez 27 09:57:13 bodd gamescope-session[23417]: Unsupported maximum keycode 708, clipping. Dez 27 09:57:13 bodd gamescope-session[23416]: > Dez 27 09:57:13 bodd gamescope-session[23417]: > Dez 27 09:57:13 bodd gamescope-session[23416]: X11 cannot support keycodes above 255. Dez 27 09:57:13 bodd gamescope-session[23417]: X11 cannot support keycodes above 255. Dez 27 09:57:13 bodd gamescope-session[23416]: Errors from xkbcomp are not fatal to the X server Dez 27 09:57:13 bodd gamescope-session[23417]: Errors from xkbcomp are not fatal to the X server Dez 27 09:57:13 bodd gamescope-session[20904]: corrupted size vs. prev_size Dez 27 09:57:13 bodd systemd[1]: Started Process Core Dump (PID 23437/UID 0). Dez 27 09:57:13 bodd systemd-coredump[23455]: [🡕] Process 20904 (gamescope-wl) of user 1000 dumped core. Module libpipewire-module-session-manager.so without build-id. Module libpipewire-module-metadata.so without build-id. Module libpipewire-module-adapter.so without build-id. Module libpipewire-module-client-device.so without build-id. Module libpipewire-module-client-node.so without build-id. Module libpcre.so.1 without build-id. Module libselinux.so.1 without build-id. Module libpipewire-module-protocol-native.so without build-id. Module libdbus-1.so.3 without build-id. Module libspa-dbus.so without build-id. Module libspa-journal.so without build-id. Module libspa-support.so without build-id. Module libelf.so.0 without build-id. Module libdrm_amdgpu.so.1 without build-id. Module libxml2.so.2 without build-id. Module libncursesw.so.6 without build-id. Module libxshmfence.so.1 without build-id. Module libxcb-shm.so.0 without build-id. Module libxcb-randr.so.0 without build-id. Module libxcb-sync.so.1 without build-id. Module libxcb-xfixes.so.0 without build-id. Module libxcb-present.so.0 without build-id. Module libxcb-dri3.so.0 without build-id. Module libX11-xcb.so.1 without build-id. Module libexpat.so.1 without build-id. Module libz.so.1 without build-id. Module libpcre2-8.so.0 without build-id. Module libgpg-error.so.0 without build-id. Module libICE.so.6 without build-id. Module libSM.so.6 without build-id. Module libgudev-1.0.so.0 without build-id. Module libzstd.so.1 without build-id. Module liblzma.so.5 without build-id. Module liblz4.so.1 without build-id. Module libgcrypt.so.20 without build-id. Module libXdmcp.so.6 without build-id. Module libXau.so.6 without build-id. Module libjsoncpp.so.25 without build-id. Module libXt.so.6 without build-id. Module libwacom.so.9 without build-id. Module libevdev.so.2 without build-id. Module libmtdev.so.1 without build-id. Module libsystemd.so.0 without build-id. Module libXss.so.1 without build-id. Module libXrandr.so.2 without build-id. Module libXi.so.6 without build-id. Module libxcb.so.1 without build-id. Module libffi.so.8 without build-id. Module libgcc_s.so.1 without build-id. Module libstdc++.so.6 without build-id. Module libXcursor.so.1 without build-id. Module libopenvr_api.so without build-id. Module libdisplay-info.so.1 without build-id. Module libpipewire-0.3.so.0 without build-id. Module libcap.so.2 without build-id. Module libXmu.so.6 without build-id. Module libXtst.so.6 without build-id. Module libvulkan.so.1 without build-id. Module libinput.so.10 without build-id. Module libseat.so.1 without build-id. Module libudev.so.1 without build-id. Module libSDL2-2.0.so.0 without build-id. Module libxkbcommon.so.0 without build-id. Module libdrm.so.2 without build-id. Module libXRes.so.1 without build-id. Module libXxf86vm.so.1 without build-id. Module libXext.so.6 without build-id. Module libXrender.so.1 without build-id. Module libXcomposite.so.1 without build-id. Module libXfixes.so.3 without build-id. Module libXdamage.so.1 without build-id. Module libX11.so.6 without build-id. Module .gamescope-wrapped without build-id. Stack trace of thread 20947: #0 0x00007fe052aa4d7c __pthread_kill_implementation (libc.so.6 + 0x8cd7c) #1 0x00007fe052a559c6 raise (libc.so.6 + 0x3d9c6) #2 0x00007fe052a3e8fa abort (libc.so.6 + 0x268fa) #3 0x00007fe052a3f767 __libc_message.cold (libc.so.6 + 0x27767) #4 0x00007fe052aaea45 malloc_printerr (libc.so.6 + 0x96a45) #5 0x00007fe052aaf34e unlink_chunk.constprop.0 (libc.so.6 + 0x9734e) #6 0x00007fe052aaf5a5 _int_free_create_chunk (libc.so.6 + 0x975a5) #7 0x00007fe052ab0908 _int_free_merge_chunk (libc.so.6 + 0x98908) #8 0x00007fe052ab0c79 _int_free (libc.so.6 + 0x98c79) #9 0x00007fe052ab3323 free (libc.so.6 + 0x9b323) #10 0x000000000045d560 _ZN11MouseCursor10getTextureEv (.gamescope-wrapped + 0x5d560) #11 0x0000000000461ea4 _ZL9paint_allb (.gamescope-wrapped + 0x61ea4) #12 0x000000000046eccb _Z17steamcompmgr_mainiPPc (.gamescope-wrapped + 0x6eccb) #13 0x0000000000479069 _ZL21steamCompMgrThreadRuniPPc (.gamescope-wrapped + 0x79069) #14 0x00007fe052ce05c3 execute_native_thread_routine (libstdc++.so.6 + 0xe05c3) #15 0x00007fe052aa3084 start_thread (libc.so.6 + 0x8b084) #16 0x00007fe052b2560c __clone3 (libc.so.6 + 0x10d60c) Stack trace of thread 20911: #0 0x00007fe052ab18cb _int_malloc (libc.so.6 + 0x998cb) #1 0x00007fe052ab2c9d __libc_malloc (libc.so.6 + 0x9ac9d) #2 0x00007fe0415eef91 ralloc_size (libvulkan_radeon.so + 0x1eef91) #3 0x00007fe04162fc76 nir_get_deref_path (libvulkan_radeon.so + 0x22fc76) #4 0x00007fe04167b52c lookup_entry_and_kill_aliases.isra.0 (libvulkan_radeon.so + 0x27b52c) #5 0x00007fe04167b6fc invalidate_copies_for_cf_node (libvulkan_radeon.so + 0x27b6fc) #6 0x00007fe04167dab5 copy_prop_vars_cf_node (libvulkan_radeon.so + 0x27dab5) #7 0x00007fe04167dab5 copy_prop_vars_cf_node (libvulkan_radeon.so + 0x27dab5) #8 0x00007fe04167dab5 copy_prop_vars_cf_node (libvulkan_radeon.so + 0x27dab5) #9 0x00007fe04167dab5 copy_prop_vars_cf_node (libvulkan_radeon.so + 0x27dab5) #10 0x00007fe04167d9fc copy_prop_vars_cf_node (libvulkan_radeon.so + 0x27d9fc) #11 0x00007fe04167dca5 nir_opt_copy_prop_vars (libvulkan_radeon.so + 0x27dca5) #12 0x00007fe04154a87b radv_optimize_nir (libvulkan_radeon.so + 0x14a87b) #13 0x00007fe04154b3ca radv_shader_spirv_to_nir (libvulkan_radeon.so + 0x14b3ca) #14 0x00007fe0415212b8 radv_compute_pipeline_compile (libvulkan_radeon.so + 0x1212b8) #15 0x00007fe0415219c5 radv_compute_pipeline_create (libvulkan_radeon.so + 0x1219c5) #16 0x00007fe041521b56 radv_CreateComputePipelines (libvulkan_radeon.so + 0x121b56) #17 0x0000000000497472 _ZN13CVulkanDevice15compilePipelineEjj10ShaderTypejjjjb (.gamescope-wrapped + 0x97472) #18 0x000000000049d0a9 _ZN13CVulkanDevice19compileAllPipelinesEv (.gamescope-wrapped + 0x9d0a9) #19 0x00007fe052ce05c3 execute_native_thread_routine (libstdc++.so.6 + 0xe05c3) #20 0x00007fe052aa3084 start_thread (libc.so.6 + 0x8b084) #21 0x00007fe052b2560c __clone3 (libc.so.6 + 0x10d60c) Stack trace of thread 20904: #0 0x00007fe052b17d8f __poll (libc.so.6 + 0xffd8f) #1 0x000000000047d10f _Z12wlserver_runv (.gamescope-wrapped + 0x7d10f) #2 0x000000000041cb07 main (.gamescope-wrapped + 0x1cb07) #3 0x00007fe052a3ffce __libc_start_call_main (libc.so.6 + 0x27fce) #4 0x00007fe052a40089 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x28089) #5 0x000000000043a195 _start (.gamescope-wrapped + 0x3a195) Stack trace of thread 20910: #0 0x00007fe052a9fc96 __futex_abstimed_wait_common (libc.so.6 + 0x87c96) #1 0x00007fe052aa2488 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x8a488) #2 0x00007fe04161eba9 cnd_wait (libvulkan_radeon.so + 0x21eba9) #3 0x00007fe0415f2f1b util_queue_thread_func (libvulkan_radeon.so + 0x1f2f1b) #4 0x00007fe04161eae7 impl_thrd_routine (libvulkan_radeon.so + 0x21eae7) #5 0x00007fe052aa3084 start_thread (libc.so.6 + 0x8b084) #6 0x00007fe052b2560c __clone3 (libc.so.6 + 0x10d60c) Stack trace of thread 20905: #0 0x00007fe052b25a26 epoll_wait (libc.so.6 + 0x10da26) #1 0x000000000047204e _ZN9gamescope7CWaiterILm1024EE10PollEventsEi (.gamescope-wrapped + 0x7204e) #2 0x0000000000472210 _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN9gamescope12CAsyncWaiterISt10shared_ptrI8commit_tELm1024EEC4EPKcEUlvE_EEEEE6_M_runEv (.gamescope-> #3 0x00007fe052ce05c3 execute_native_thread_routine (libstdc++.so.6 + 0xe05c3) #4 0x00007fe052aa3084 start_thread (libc.so.6 + 0x8b084) #5 0x00007fe052b2560c __clone3 (libc.so.6 + 0x10d60c) Stack trace of thread 20946: #0 0x00007fe052b17d8f __poll (libc.so.6 + 0xffd8f) #1 0x00000000004c4492 _ZL12run_pipewireP14pipewire_state (.gamescope-wrapped + 0xc4492) #2 0x00007fe052ce05c3 execute_native_thread_routine (libstdc++.so.6 + 0xe05c3) #3 0x00007fe052aa3084 start_thread (libc.so.6 + 0x8b084) #4 0x00007fe052b2560c __clone3 (libc.so.6 + 0x10d60c) Stack trace of thread 20909: #0 0x00007fe052b17d8f __poll (libc.so.6 + 0xffd8f) #1 0x0000000000481552 _Z23flip_handler_thread_runv (.gamescope-wrapped + 0x81552) #2 0x00007fe052ce05c3 execute_native_thread_routine (libstdc++.so.6 + 0xe05c3) #3 0x00007fe052aa3084 start_thread (libc.so.6 + 0x8b084) #4 0x00007fe052b2560c __clone3 (libc.so.6 + 0x10d60c) Stack trace of thread 20945: #0 0x00007fe052b25a26 epoll_wait (libc.so.6 + 0x10da26) #1 0x00007fe04b1f6390 impl_pollfd_wait (libspa-support.so + 0x19390) #2 0x00007fe04b1e6c5d loop_iterate (libspa-support.so + 0x9c5d) #3 0x00007fe053031ba0 do_loop (libpipewire-0.3.so.0 + 0x4cba0) #4 0x00007fe052aa3084 start_thread (libc.so.6 + 0x8b084) #5 0x00007fe052b2560c __clone3 (libc.so.6 + 0x10d60c) Stack trace of thread 20922: #0 0x00007fe052a9fc96 __futex_abstimed_wait_common (libc.so.6 + 0x87c96) #1 0x00007fe052aa2488 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x8a488) #2 0x00007fe04161eba9 cnd_wait (libvulkan_radeon.so + 0x21eba9) #3 0x00007fe0415f2f1b util_queue_thread_func (libvulkan_radeon.so + 0x1f2f1b) #4 0x00007fe04161eae7 impl_thrd_routine (libvulkan_radeon.so + 0x21eae7) #5 0x00007fe052aa3084 start_thread (libc.so.6 + 0x8b084) #6 0x00007fe052b2560c __clone3 (libc.so.6 + 0x10d60c) Stack trace of thread 20948: #0 0x00007fe052b17a80 __open (libc.so.6 + 0xffa80) #1 0x000000000045f894 _Z15statsThreadMainv (.gamescope-wrapped + 0x5f894) #2 0x00007fe052ce05c3 execute_native_thread_routine (libstdc++.so.6 + 0xe05c3) #3 0x00007fe052aa3084 start_thread (libc.so.6 + 0x8b084) #4 0x00007fe052b2560c __clone3 (libc.so.6 + 0x10d60c) Stack trace of thread 22155: #0 0x00007fe052a9fc96 __futex_abstimed_wait_common (libc.so.6 + 0x87c96) #1 0x00007fe052aa2488 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x8a488) #2 0x00007fe04161eba9 cnd_wait (libvulkan_radeon.so + 0x21eba9) #3 0x00007fe0415f2f1b util_queue_thread_func (libvulkan_radeon.so + 0x1f2f1b) #4 0x00007fe04161eae7 impl_thrd_routine (libvulkan_radeon.so + 0x21eae7) #5 0x00007fe052aa3084 start_thread (libc.so.6 + 0x8b084) #6 0x00007fe052b2560c __clone3 (libc.so.6 + 0x10d60c) ELF object binary architecture: AMD x86-64 ```
Backtrace: ``` (gdb) bt #0 0x00007fcf272a4d7c in __pthread_kill_implementation () from /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6 #1 0x00007fcf272559c6 in raise () from /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6 #2 0x00007fcf2723e8fa in abort () from /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6 #3 0x00007fcf2723f767 in __libc_message.cold () from /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6 #4 0x00007fcf272aea45 in malloc_printerr () from /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6 #5 0x00007fcf272af34e in unlink_chunk.constprop () from /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6 #6 0x00007fcf272af5a5 in _int_free_create_chunk () from /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6 #7 0x00007fcf272b0908 in _int_free_merge_chunk () from /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6 #8 0x00007fcf272b0c79 in _int_free () from /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6 #9 0x00007fcf272b3323 in free () from /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6 #10 0x000000000045d560 in MouseCursor::getTexture() () #11 0x0000000000461ea4 in paint_all(bool) () #12 0x000000000046eccb in steamcompmgr_main(int, char**) () #13 0x0000000000479069 in steamCompMgrThreadRun(int, char**) () #14 0x00007fcf274e05c3 in execute_native_thread_routine () from /nix/store/dghjv6hfz0s0z4kffa5ahyw2mhp79215-gcc-12.3.0-lib/lib/libstdc++.so.6 #15 0x00007fcf272a3084 in start_thread () from /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6 #16 0x00007fcf2732560c in clone3 () from /nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6 ```
misyltoad commented 11 months ago

Would you be able to compile with address sanitizer?

ChrisOboe commented 11 months ago
Here is my log when built with `-fsanitize=address` ``` Dez 27 13:07:57 bodd systemd[1359]: Started Gamescope Session. Dez 27 13:07:57 bodd systemd[1359]: Reached target Current graphical user session. Dez 27 13:07:57 bodd gamescope-session[236701]: Making Gamescope Mode Save file at "/home/gamer/.config/gamescope/modes.cfg" Dez 27 13:07:57 bodd gamescope-session[236701]: Making Gamescope patched edid at "/home/gamer/.config/gamescope/edid.bin" Dez 27 13:07:57 bodd gamescope-session[236701]: Removing file: /home/gamer/.local/share/Steam/config/uioverrides/movies/* Dez 27 13:07:57 bodd gamescope-session[236717]: /nix/store/zx8aqgdy735qzk81glfwil6mbi6ddqb1-coreutils-9.4/bin/rm: cannot remove '/home/gamer/.local/share/Steam/config/uioverrides/movies/*': No such file or directory Dez 27 13:07:57 bodd gamescope-session[236718]: /nix/store/zx8aqgdy735qzk81glfwil6mbi6ddqb1-coreutils-9.4/bin/rm: cannot remove '/home/gamer/.local/share/Steam/config/uioverrides/movies/*.installed': No such file or d> Dez 27 13:07:57 bodd gamescope-session[236728]: /nix/store/fq931irblm459pcnb9p6jr3nksgjjm7j-galileo-mura-0.3/bin/galileo-mura-setup: line 8: /usr/bin/galileo-mura-extractor: No such file or directory Dez 27 13:07:57 bodd gamescope-session[236701]: Claimed global gamescope stats session at "/run/user/1000/gamescope-stats" Dez 27 13:07:58 bodd gamescope-session[236734]: vblank: Using timerfd. Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/headless/backend.c:67] Creating headless backend Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [libseat] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [libseat] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [libseat] [libseat/libseat.c:73] Seat opened with backend 'logind' Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/session/session.c:109] Successfully loaded libseat session Dez 27 13:07:58 bodd gamescope-session[236734]: ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment. Dez 27 13:07:58 bodd gamescope-session[236734]: ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment. Dez 27 13:07:58 bodd gamescope-session[236734]: ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment. Dez 27 13:07:58 bodd gamescope-session[236734]: drm: warning: picking an arbitrary DRM device Dez 27 13:07:58 bodd gamescope-session[236734]: drm: Immediate flips are not supported by the KMS driver Dez 27 13:07:58 bodd gamescope-session[236734]: drm: Immediate flips disabled from environment Dez 27 13:07:58 bodd gamescope-session[236734]: drm: Connector make VES model 43UHD_LCD_TV Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: EDID with colorimetry detected. Using it Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: r 0.639648 0.339844 Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: g 0.299805 0.690430 Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: b 0.137695 0.038086 Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: w 0.282227 0.296875 Dez 27 13:07:58 bodd gamescope-session[236734]: drm: found new connector 'HDMI-A-2' Dez 27 13:07:58 bodd gamescope-session[236734]: drm: Connector make SNY model SONY TV Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: EDID with colorimetry detected. Using it Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: r 0.625000 0.339844 Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: g 0.280273 0.594727 Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: b 0.155273 0.070312 Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: w 0.283203 0.297852 Dez 27 13:07:58 bodd gamescope-session[236734]: drm: found new connector 'HDMI-A-1' Dez 27 13:07:58 bodd gamescope-session[236734]: drm: Connector make VLV model Index HMD Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: EDID with colorimetry detected. Using it Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: r 0.629883 0.355469 Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: g 0.330078 0.625000 Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: b 0.150391 0.075195 Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [colorimetry]: w 0.290039 0.315430 Dez 27 13:07:58 bodd gamescope-session[236734]: drm: found new connector 'DP-2' Dez 27 13:07:58 bodd gamescope-session[236734]: drm: found new connector 'DP-1' Dez 27 13:07:58 bodd gamescope-session[236734]: drm: CRTC 79 has no VALVE1_CRTC_REGAMMA_TF support Dez 27 13:07:58 bodd gamescope-session[236734]: drm: CRTC 83 has no VALVE1_CRTC_REGAMMA_TF support Dez 27 13:07:58 bodd gamescope-session[236734]: drm: CRTC 87 has no VALVE1_CRTC_REGAMMA_TF support Dez 27 13:07:58 bodd gamescope-session[236734]: drm: CRTC 91 has no VALVE1_CRTC_REGAMMA_TF support Dez 27 13:07:58 bodd gamescope-session[236734]: drm: Connectors: Dez 27 13:07:58 bodd gamescope-session[236734]: drm: HDMI-A-2 (connected) Dez 27 13:07:58 bodd gamescope-session[236734]: drm: HDMI-A-1 (connected) Dez 27 13:07:58 bodd gamescope-session[236734]: drm: DP-2 (connected) Dez 27 13:07:58 bodd gamescope-session[236734]: drm: DP-1 (disconnected) Dez 27 13:07:58 bodd gamescope-session[236734]: drm: selecting connector HDMI-A-2 Dez 27 13:07:58 bodd gamescope-session[236734]: drm: selecting mode 3840x2160@60Hz Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: selecting physical device 'AMD Radeon RX 7900 XTX (RADV GFX1100)': queue family 1 (general queue family 0) Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: physical device supports DRM format modifiers Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: supported DRM formats for sampling usage: Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: AR24 (0x34325241) Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: XR24 (0x34325258) Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: AB24 (0x34324241) Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: XB24 (0x34324258) Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: RG16 (0x36314752) Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: NV12 (0x3231564E) Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: AB4H (0x48344241) Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: XB4H (0x48344258) Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: AB48 (0x38344241) Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: XB48 (0x38344258) Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: AB30 (0x30334241) Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: XB30 (0x30334258) Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: AR30 (0x30335241) Dez 27 13:07:58 bodd gamescope-session[236734]: vulkan: XR30 (0x30335258) Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: Running compositor on wayland display 'gamescope-0' Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/headless/backend.c:17] Starting headless backend Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/backend.c:88] Starting libinput backend Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding Power Button [0:1] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding Power Button [0:1] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding HID 0c45:7403 [3141:29699] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding HID 0c45:7403 [3141:29699] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding Valve Software Steam Controller [10462:4418] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding Trust 2.4G Keyboard And Mouse [1578:12934] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding Trust 2.4G Keyboard And Mouse [1578:12934] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding Trust 2.4G Keyboard And Mouse Consumer Control [1578:12934] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding Trust 2.4G Keyboard And Mouse System Control [1578:12934] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding EFL EFL_51V33 Consumer Control [3141:33025] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding EFL EFL_51V33 System Control [3141:33025] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding EFL EFL_51V33 Keyboard [3141:33025] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding EFL EFL_51V33 [3141:33025] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding USB Sound Device [3468:258] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/events.c:70] Adding 3D Camera: eTronVideo [10462:9216] Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [backend/libinput/backend.c:129] libinput successfully initialized Dez 27 13:07:58 bodd gamescope-session[236750]: wlserver: [xwayland/server.c:108] Starting Xwayland on :0 Dez 27 13:07:58 bodd gamescope-session[236751]: wlserver: [xwayland/server.c:108] Starting Xwayland on :1 Dez 27 13:07:58 bodd gamescope-session[236772]: The XKEYBOARD keymap compiler (xkbcomp) reports: Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86CameraAccessEnable Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86CameraAccessDisable Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86CameraAccessToggle Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86NextElement Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86PreviousElement Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86AutopilotEngageToggle Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86MarkWaypoint Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86Sos Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86NavChart Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86FishingChart Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86SingleRangeRadar Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86DualRangeRadar Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86RadarOverlay Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86TraditionalSonar Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86ClearvuSonar Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86SidevuSonar Dez 27 13:07:58 bodd gamescope-session[236772]: > Warning: Could not resolve keysym XF86NavInfo Dez 27 13:07:58 bodd gamescope-session[236772]: Errors from xkbcomp are not fatal to the X server Dez 27 13:07:58 bodd gamescope-session[236773]: The XKEYBOARD keymap compiler (xkbcomp) reports: Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86CameraAccessEnable Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86CameraAccessDisable Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86CameraAccessToggle Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86NextElement Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86PreviousElement Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86AutopilotEngageToggle Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86MarkWaypoint Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86Sos Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86NavChart Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86FishingChart Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86SingleRangeRadar Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86DualRangeRadar Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86RadarOverlay Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86TraditionalSonar Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86ClearvuSonar Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86SidevuSonar Dez 27 13:07:58 bodd gamescope-session[236773]: > Warning: Could not resolve keysym XF86NavInfo Dez 27 13:07:58 bodd gamescope-session[236773]: Errors from xkbcomp are not fatal to the X server Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [types/wlr_compositor.c:692] New wlr_surface 0x619000145f80 (res 0x60c0002ac1c0) Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [xwayland/server.c:273] Xserver is ready Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [types/wlr_compositor.c:692] New wlr_surface 0x619000146480 (res 0x60c0002acb80) Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [xwayland/server.c:273] Xserver is ready Dez 27 13:07:58 bodd gamescope-session[236734]: pipewire: stream state changed: connecting Dez 27 13:07:58 bodd gamescope-session[236734]: pipewire: stream state changed: paused Dez 27 13:07:58 bodd gamescope-session[236734]: pipewire: stream available on node ID: 66 Dez 27 13:07:58 bodd gamescope-session[236734]: xwm: Embedded, no cursor set. Using left_ptr by default. Dez 27 13:07:58 bodd gamescope-session[236734]: xwm: Embedded, no cursor set. Using left_ptr by default. Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [josh edid] BASE Checksum valid? Y Dez 27 13:07:58 bodd gamescope-session[236734]: drm: [josh edid] Wrote new edid to: /home/gamer/.config/gamescope/edid.bin Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: Updating mode for xwayland server #0: 3840x2160@60 Dez 27 13:07:58 bodd gamescope-session[236734]: pipewire: renegotiating stream params (size: 3840x2160) Dez 27 13:07:58 bodd gamescope-session[236778]: Error : /etc/xbindkeysrc not found or reading not allowed. Dez 27 13:07:58 bodd gamescope-session[236778]: please, create one with 'xbindkeys --defaults > /etc/xbindkeysrc'. Dez 27 13:07:58 bodd gamescope-session[236778]: or, if you want scheme configuration style, Dez 27 13:07:58 bodd gamescope-session[236778]: with 'xbindkeys --defaults-guile > /home/gamer/.xbindkeysrc.scm'. Dez 27 13:07:58 bodd gamescope-session[236837]: steam.sh[236837]: Running Steam on nixos 24.05 64-bit Dez 27 13:07:58 bodd gamescope-session[236837]: steam.sh[236837]: STEAM_RUNTIME is enabled automatically Dez 27 13:07:58 bodd gamescope-session[237126]: setup.sh[237126]: Steam runtime environment up-to-date! Dez 27 13:07:58 bodd gamescope-session[236837]: steam.sh[236837]: Steam client's requirements are satisfied Dez 27 13:07:58 bodd gamescope-session[237367]: 12/27 13:07:58 Init: Installing breakpad exception handler for appid(steam)/version(1691097434)/tid(237367) Dez 27 13:07:58 bodd gamescope-session[236734]: wlserver: [types/wlr_compositor.c:692] New wlr_surface 0x619000149180 (res 0x60c0002c0ec0) Dez 27 13:07:58 bodd gamescope-session[236805]: [2023-12-27 13:07:58.788] [MANGOHUD] [error] [overlay_params.cpp:999] Failed to read presets file: '/home/gamer/.config/MangoHud/presets.conf' Dez 27 13:07:58 bodd gamescope-session[236734]: xwm: Rejecting WM_CHANGE_STATE to ICONIC for window 0x400007 Dez 27 13:07:59 bodd gamescope-session[236734]: wlserver: [types/wlr_compositor.c:692] New wlr_surface 0x619000149680 (res 0x60c0002c1dc0) Dez 27 13:07:59 bodd gamescope-session[236734]: xwm: got the same buffer committed twice, ignoring. Dez 27 13:07:59 bodd gamescope-session[239297]: The XKEYBOARD keymap compiler (xkbcomp) reports: Dez 27 13:07:59 bodd gamescope-session[239297]: > Warning: Unsupported maximum keycode 708, clipping. Dez 27 13:07:59 bodd gamescope-session[239297]: > X11 cannot support keycodes above 255. Dez 27 13:07:59 bodd gamescope-session[239296]: The XKEYBOARD keymap compiler (xkbcomp) reports: Dez 27 13:07:59 bodd gamescope-session[239296]: > Warning: Unsupported maximum keycode 708, clipping. Dez 27 13:07:59 bodd gamescope-session[239296]: > X11 cannot support keycodes above 255. Dez 27 13:07:59 bodd gamescope-session[239297]: Errors from xkbcomp are not fatal to the X server Dez 27 13:07:59 bodd gamescope-session[239296]: Errors from xkbcomp are not fatal to the X server Dez 27 13:07:59 bodd gamescope-session[236734]: ================================================================= Dez 27 13:07:59 bodd gamescope-session[236734]: ==236734==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6290001d0200 at pc 0x00000050aa6e bp 0x7f05a69961e0 sp 0x7f05a69961d8 Dez 27 13:07:59 bodd gamescope-session[236734]: WRITE of size 4 at 0x6290001d0200 thread T7 Dez 27 13:07:59 bodd gamescope-session[236734]: #0 0x50aa6d in MouseCursor::getTexture() (/nix/store/pr9dwg52h42f93bz5b6ajz557ady9bm9-gamescope-3.13.19/bin/.gamescope-wrapped+0x50aa6d) Dez 27 13:07:59 bodd gamescope-session[236734]: #1 0x5190d3 in paint_all(bool) (/nix/store/pr9dwg52h42f93bz5b6ajz557ady9bm9-gamescope-3.13.19/bin/.gamescope-wrapped+0x5190d3) Dez 27 13:07:59 bodd gamescope-session[236734]: #2 0x54cbae in steamcompmgr_main(int, char**) (/nix/store/pr9dwg52h42f93bz5b6ajz557ady9bm9-gamescope-3.13.19/bin/.gamescope-wrapped+0x54cbae) Dez 27 13:07:59 bodd gamescope-session[236734]: #3 0x582418 in steamCompMgrThreadRun(int, char**) (/nix/store/pr9dwg52h42f93bz5b6ajz557ady9bm9-gamescope-3.13.19/bin/.gamescope-wrapped+0x582418) Dez 27 13:07:59 bodd gamescope-session[236734]: #4 0x7f05bcce05c2 in execute_native_thread_routine (/nix/store/dghjv6hfz0s0z4kffa5ahyw2mhp79215-gcc-12.3.0-lib/lib/libstdc++.so.6+0xe05c2) Dez 27 13:07:59 bodd gamescope-session[236734]: #5 0x7f05bc9c3083 in start_thread (/nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6+0x8b083) Dez 27 13:07:59 bodd gamescope-session[236734]: #6 0x7f05bca4560b in __GI___clone3 (/nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6+0x10d60b) Dez 27 13:07:59 bodd gamescope-session[236734]: 0x6290001d0200 is located 0 bytes to the right of 16384-byte region [0x6290001cc200,0x6290001d0200) Dez 27 13:07:59 bodd gamescope-session[236734]: allocated by thread T7 here: Dez 27 13:07:59 bodd gamescope-session[236734]: #0 0x7f05bd6bcef8 in operator new(unsigned long) (/nix/store/dghjv6hfz0s0z4kffa5ahyw2mhp79215-gcc-12.3.0-lib/lib/libasan.so.8+0xbcef8) Dez 27 13:07:59 bodd gamescope-session[236734]: #1 0x50902e in MouseCursor::getTexture() (/nix/store/pr9dwg52h42f93bz5b6ajz557ady9bm9-gamescope-3.13.19/bin/.gamescope-wrapped+0x50902e) Dez 27 13:07:59 bodd gamescope-session[236734]: #2 0x5190d3 in paint_all(bool) (/nix/store/pr9dwg52h42f93bz5b6ajz557ady9bm9-gamescope-3.13.19/bin/.gamescope-wrapped+0x5190d3) Dez 27 13:07:59 bodd gamescope-session[236734]: Thread T7 created by T0 here: Dez 27 13:07:59 bodd gamescope-session[236734]: #0 0x7f05bd64d136 in __interceptor_pthread_create (/nix/store/dghjv6hfz0s0z4kffa5ahyw2mhp79215-gcc-12.3.0-lib/lib/libasan.so.8+0x4d136) Dez 27 13:07:59 bodd gamescope-session[236734]: #1 0x7f05bcce0698 in std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (/nix/store/dghjv6hfz0> Dez 27 13:07:59 bodd gamescope-session[236734]: #2 0x200983a06 () Dez 27 13:07:59 bodd gamescope-session[236734]: SUMMARY: AddressSanitizer: heap-buffer-overflow (/nix/store/pr9dwg52h42f93bz5b6ajz557ady9bm9-gamescope-3.13.19/bin/.gamescope-wrapped+0x50aa6d) in MouseCursor::getTextur> Dez 27 13:07:59 bodd gamescope-session[236734]: Shadow bytes around the buggy address: Dez 27 13:07:59 bodd gamescope-session[236734]: 0x0c5280031ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:07:59 bodd gamescope-session[236734]: 0x0c5280032000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:07:59 bodd gamescope-session[236734]: 0x0c5280032010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:07:59 bodd gamescope-session[236734]: 0x0c5280032020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:07:59 bodd gamescope-session[236734]: 0x0c5280032030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:07:59 bodd gamescope-session[236734]: =>0x0c5280032040:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:07:59 bodd gamescope-session[236734]: 0x0c5280032050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:07:59 bodd gamescope-session[236734]: 0x0c5280032060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:07:59 bodd gamescope-session[236734]: 0x0c5280032070: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:07:59 bodd gamescope-session[236734]: 0x0c5280032080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:07:59 bodd gamescope-session[236734]: 0x0c5280032090: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:07:59 bodd gamescope-session[236734]: Shadow byte legend (one shadow byte represents 8 application bytes): Dez 27 13:07:59 bodd gamescope-session[236734]: Addressable: 00 Dez 27 13:07:59 bodd gamescope-session[236734]: Partially addressable: 01 02 03 04 05 06 07 Dez 27 13:07:59 bodd gamescope-session[236734]: Heap left redzone: fa Dez 27 13:07:59 bodd gamescope-session[236734]: Freed heap region: fd Dez 27 13:07:59 bodd gamescope-session[236734]: Stack left redzone: f1 Dez 27 13:07:59 bodd gamescope-session[236734]: Stack mid redzone: f2 Dez 27 13:07:59 bodd gamescope-session[236734]: Stack right redzone: f3 Dez 27 13:07:59 bodd gamescope-session[236734]: Stack after return: f5 Dez 27 13:07:59 bodd gamescope-session[236734]: Stack use after scope: f8 Dez 27 13:07:59 bodd gamescope-session[236734]: Global redzone: f9 Dez 27 13:07:59 bodd gamescope-session[236734]: Global init order: f6 Dez 27 13:07:59 bodd gamescope-session[236734]: Poisoned by user: f7 Dez 27 13:07:59 bodd gamescope-session[236734]: Container overflow: fc Dez 27 13:07:59 bodd gamescope-session[236734]: Array cookie: ac Dez 27 13:07:59 bodd gamescope-session[236734]: Intra object redzone: bb Dez 27 13:07:59 bodd gamescope-session[236734]: ASan internal: fe Dez 27 13:07:59 bodd gamescope-session[236734]: Left alloca redzone: ca Dez 27 13:07:59 bodd gamescope-session[236734]: Right alloca redzone: cb Dez 27 13:07:59 bodd gamescope-session[236734]: ==236734==ABORTING ```
misyltoad commented 11 months ago

Did you build as debug? I'm surprised there's no line numbers.

ChrisOboe commented 11 months ago
ahh nix strips binaries by default. Here is another log with address sanatizer and proper debug info ``` Dez 27 13:22:03 bodd gamescope-session[141844]: > Warning: Unsupported maximum keycode 708, clipping. Dez 27 13:22:03 bodd gamescope-session[141844]: > X11 cannot support keycodes above 255. Dez 27 13:22:03 bodd gamescope-session[141845]: Errors from xkbcomp are not fatal to the X server Dez 27 13:22:03 bodd gamescope-session[141844]: Errors from xkbcomp are not fatal to the X server Dez 27 13:22:03 bodd gamescope-session[139360]: ================================================================= Dez 27 13:22:03 bodd gamescope-session[139360]: ==139360==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6290001d0200 at pc 0x00000050aa6e bp 0x7f3c55b961e0 sp 0x7f3c55b961d8 Dez 27 13:22:03 bodd gamescope-session[139360]: WRITE of size 4 at 0x6290001d0200 thread T7 Dez 27 13:22:03 bodd gamescope-session[139360]: #0 0x50aa6d in MouseCursor::getTexture() ../src/steamcompmgr.cpp:1926 Dez 27 13:22:03 bodd gamescope-session[139360]: #1 0x5190d3 in MouseCursor::undirty() ../src/steamcompmgr.hpp:91 Dez 27 13:22:03 bodd gamescope-session[139360]: #2 0x5190d3 in paint_all ../src/steamcompmgr.cpp:2585 Dez 27 13:22:03 bodd gamescope-session[139360]: #3 0x54cbae in steamcompmgr_main(int, char**) ../src/steamcompmgr.cpp:8082 Dez 27 13:22:03 bodd gamescope-session[139360]: #4 0x582418 in steamCompMgrThreadRun ../src/main.cpp:903 Dez 27 13:22:03 bodd gamescope-session[139360]: #5 0x7f3c6bee05c2 in execute_native_thread_routine (/nix/store/dghjv6hfz0s0z4kffa5ahyw2mhp79215-gcc-12.3.0-lib/lib/libstdc++.so.6+0xe05c2) Dez 27 13:22:03 bodd gamescope-session[139360]: #6 0x7f3c6bbc3083 in start_thread (/nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6+0x8b083) Dez 27 13:22:03 bodd gamescope-session[139360]: #7 0x7f3c6bc4560b in __GI___clone3 (/nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6+0x10d60b) Dez 27 13:22:03 bodd gamescope-session[139360]: 0x6290001d0200 is located 0 bytes to the right of 16384-byte region [0x6290001cc200,0x6290001d0200) Dez 27 13:22:03 bodd gamescope-session[139360]: allocated by thread T7 here: Dez 27 13:22:03 bodd gamescope-session[139360]: #0 0x7f3c6c8bcef8 in operator new(unsigned long) (/nix/store/dghjv6hfz0s0z4kffa5ahyw2mhp79215-gcc-12.3.0-lib/lib/libasan.so.8+0xbcef8) Dez 27 13:22:03 bodd gamescope-session[139360]: #1 0x50902e in std::__new_allocator::allocate(unsigned long, void const*) /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gcc-12.3.0/include/c++/12.3.0/bit> Dez 27 13:22:03 bodd gamescope-session[139360]: #2 0x50902e in std::allocator::allocate(unsigned long) /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gcc-12.3.0/include/c++/12.3.0/bits/allocator.h:188 Dez 27 13:22:03 bodd gamescope-session[139360]: #3 0x50902e in std::allocator_traits >::allocate(std::allocator&, unsigned long) /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeee> Dez 27 13:22:03 bodd gamescope-session[139360]: #4 0x50902e in std::_Vector_base >::_M_allocate(unsigned long) /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gcc-12.3.0/incl> Dez 27 13:22:03 bodd gamescope-session[139360]: #5 0x50902e in std::_Vector_base >::_M_allocate(unsigned long) /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gcc-12.3.0/incl> Dez 27 13:22:03 bodd gamescope-session[139360]: #6 0x50902e in std::_Vector_base >::_M_create_storage(unsigned long) /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gcc-12.3.> Dez 27 13:22:03 bodd gamescope-session[139360]: #7 0x50902e in std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /nix/store/eeeeeeeeee> Dez 27 13:22:03 bodd gamescope-session[139360]: #8 0x50902e in std::vector >::vector(unsigned long, std::allocator const&) /nix/store/eeeeeeeeeeeeeeeeeeeeee> Dez 27 13:22:03 bodd gamescope-session[139360]: #9 0x50902e in void std::_Construct >, unsigned int>(std::vector >*> Dez 27 13:22:03 bodd gamescope-session[139360]: #10 0x50902e in void std::allocator_traits >::construct >, unsigned int>(std::allocator Dez 27 13:22:03 bodd gamescope-session[139360]: #11 0x50902e in std::_Sp_counted_ptr_inplace >, std::allocator, (__gnu_cxx::_Lock_policy)2>::_Sp_counted> Dez 27 13:22:03 bodd gamescope-session[139360]: #12 0x50902e in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count >, std::allocator, unsig> Dez 27 13:22:03 bodd gamescope-session[139360]: #13 0x50902e in std::__shared_ptr >, (__gnu_cxx::_Lock_policy)2>::__shared_ptr, unsigned > Dez 27 13:22:03 bodd gamescope-session[139360]: #14 0x50902e in std::shared_ptr > >::shared_ptr, unsigned int>(std::_Sp_alloc_shared_tag<> Dez 27 13:22:03 bodd gamescope-session[139360]: #15 0x50902e in std::shared_ptr > > std::make_shared >,> Dez 27 13:22:03 bodd gamescope-session[139360]: #16 0x50902e in MouseCursor::getTexture() ../src/steamcompmgr.cpp:1923 Dez 27 13:22:03 bodd gamescope-session[139360]: #17 0x5190d3 in MouseCursor::undirty() ../src/steamcompmgr.hpp:91 Dez 27 13:22:03 bodd gamescope-session[139360]: #18 0x5190d3 in paint_all ../src/steamcompmgr.cpp:2585 Dez 27 13:22:03 bodd gamescope-session[139360]: Thread T7 created by T0 here: Dez 27 13:22:03 bodd gamescope-session[139360]: #0 0x7f3c6c84d136 in __interceptor_pthread_create (/nix/store/dghjv6hfz0s0z4kffa5ahyw2mhp79215-gcc-12.3.0-lib/lib/libasan.so.8+0x4d136) Dez 27 13:22:03 bodd gamescope-session[139360]: #1 0x7f3c6bee0698 in std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (/nix/store/dghjv6hfz0> Dez 27 13:22:03 bodd gamescope-session[139360]: #2 0x200983a06 () Dez 27 13:22:03 bodd gamescope-session[139360]: SUMMARY: AddressSanitizer: heap-buffer-overflow ../src/steamcompmgr.cpp:1926 in MouseCursor::getTexture() Dez 27 13:22:03 bodd gamescope-session[139360]: Shadow bytes around the buggy address: Dez 27 13:22:03 bodd gamescope-session[139360]: 0x0c5280031ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:22:03 bodd gamescope-session[139360]: 0x0c5280032000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:22:03 bodd gamescope-session[139360]: 0x0c5280032010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:22:03 bodd gamescope-session[139360]: 0x0c5280032020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:22:03 bodd gamescope-session[139360]: 0x0c5280032030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:22:03 bodd gamescope-session[139360]: =>0x0c5280032040:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:22:03 bodd gamescope-session[139360]: 0x0c5280032050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:22:03 bodd gamescope-session[139360]: 0x0c5280032060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:22:03 bodd gamescope-session[139360]: 0x0c5280032070: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:22:03 bodd gamescope-session[139360]: 0x0c5280032080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:22:03 bodd gamescope-session[139360]: 0x0c5280032090: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:22:03 bodd gamescope-session[139360]: Shadow byte legend (one shadow byte represents 8 application bytes): Dez 27 13:22:03 bodd gamescope-session[139360]: Addressable: 00 Dez 27 13:22:03 bodd gamescope-session[139360]: Partially addressable: 01 02 03 04 05 06 07 Dez 27 13:22:03 bodd gamescope-session[139360]: Heap left redzone: fa Dez 27 13:22:03 bodd gamescope-session[139360]: Freed heap region: fd Dez 27 13:22:03 bodd gamescope-session[139360]: Stack left redzone: f1 Dez 27 13:22:03 bodd gamescope-session[139360]: Stack mid redzone: f2 Dez 27 13:22:03 bodd gamescope-session[139360]: Stack right redzone: f3 Dez 27 13:22:03 bodd gamescope-session[139360]: Stack after return: f5 Dez 27 13:22:03 bodd gamescope-session[139360]: Stack use after scope: f8 Dez 27 13:22:03 bodd gamescope-session[139360]: Global redzone: f9 Dez 27 13:22:03 bodd gamescope-session[139360]: Global init order: f6 Dez 27 13:22:03 bodd gamescope-session[139360]: Poisoned by user: f7 Dez 27 13:22:03 bodd gamescope-session[139360]: Container overflow: fc Dez 27 13:22:03 bodd gamescope-session[139360]: Array cookie: ac Dez 27 13:22:03 bodd gamescope-session[139360]: Intra object redzone: bb Dez 27 13:22:03 bodd gamescope-session[139360]: ASan internal: fe Dez 27 13:22:03 bodd gamescope-session[139360]: Left alloca redzone: ca Dez 27 13:22:03 bodd gamescope-session[139360]: Right alloca redzone: cb Dez 27 13:22:03 bodd gamescope-session[139360]: ==139360==ABORTING ```
ChrisOboe commented 11 months ago
here is another log from the latest master (d434d86c0d8a569af518c6bdd9ff2616f5a784c9) ``` Dez 27 13:47:38 bodd gamescope-session[242074]: ================================================================= Dez 27 13:47:38 bodd gamescope-session[242074]: ==242074==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6290001d0200 at pc 0x00000050f41e bp 0x7f1a19f95bb0 sp 0x7f1a19f95ba8 Dez 27 13:47:38 bodd gamescope-session[242074]: WRITE of size 4 at 0x6290001d0200 thread T7 Dez 27 13:47:38 bodd gamescope-session[242074]: #0 0x50f41d in MouseCursor::getTexture() ../src/steamcompmgr.cpp:1947 Dez 27 13:47:38 bodd gamescope-session[242074]: #1 0x51c089 in MouseCursor::undirty() ../src/steamcompmgr.hpp:83 Dez 27 13:47:38 bodd gamescope-session[242074]: #2 0x51c089 in paint_all ../src/steamcompmgr.cpp:2607 Dez 27 13:47:38 bodd gamescope-session[242074]: #3 0x55230e in steamcompmgr_main(int, char**) ../src/steamcompmgr.cpp:8221 Dez 27 13:47:38 bodd gamescope-session[242074]: #4 0x588a78 in steamCompMgrThreadRun ../src/main.cpp:903 Dez 27 13:47:38 bodd gamescope-session[242074]: #5 0x7f1a314e05c2 in execute_native_thread_routine (/nix/store/dghjv6hfz0s0z4kffa5ahyw2mhp79215-gcc-12.3.0-lib/lib/libstdc++.so.6+0xe05c2) Dez 27 13:47:38 bodd gamescope-session[242074]: #6 0x7f1a312a3083 in start_thread (/nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6+0x8b083) Dez 27 13:47:38 bodd gamescope-session[242074]: #7 0x7f1a3132560b in __GI___clone3 (/nix/store/9y8pmvk8gdwwznmkzxa6pwyah52xy3nk-glibc-2.38-27/lib/libc.so.6+0x10d60b) Dez 27 13:47:38 bodd gamescope-session[242074]: 0x6290001d0200 is located 0 bytes to the right of 16384-byte region [0x6290001cc200,0x6290001d0200) Dez 27 13:47:38 bodd gamescope-session[242074]: allocated by thread T7 here: Dez 27 13:47:38 bodd gamescope-session[242074]: #0 0x7f1a31ebcef8 in operator new(unsigned long) (/nix/store/dghjv6hfz0s0z4kffa5ahyw2mhp79215-gcc-12.3.0-lib/lib/libasan.so.8+0xbcef8) Dez 27 13:47:38 bodd gamescope-session[242074]: #1 0x50d9de in std::__new_allocator::allocate(unsigned long, void const*) /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gcc-12.3.0/include/c++/12.3.0/bit> Dez 27 13:47:38 bodd gamescope-session[242074]: #2 0x50d9de in std::allocator::allocate(unsigned long) /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gcc-12.3.0/include/c++/12.3.0/bits/allocator.h:188 Dez 27 13:47:38 bodd gamescope-session[242074]: #3 0x50d9de in std::allocator_traits >::allocate(std::allocator&, unsigned long) /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeee> Dez 27 13:47:38 bodd gamescope-session[242074]: #4 0x50d9de in std::_Vector_base >::_M_allocate(unsigned long) /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gcc-12.3.0/incl> Dez 27 13:47:38 bodd gamescope-session[242074]: #5 0x50d9de in std::_Vector_base >::_M_allocate(unsigned long) /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gcc-12.3.0/incl> Dez 27 13:47:38 bodd gamescope-session[242074]: #6 0x50d9de in std::_Vector_base >::_M_create_storage(unsigned long) /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gcc-12.3.> Dez 27 13:47:38 bodd gamescope-session[242074]: #7 0x50d9de in std::_Vector_base >::_Vector_base(unsigned long, std::allocator const&) /nix/store/eeeeeeeeee> Dez 27 13:47:38 bodd gamescope-session[242074]: #8 0x50d9de in std::vector >::vector(unsigned long, std::allocator const&) /nix/store/eeeeeeeeeeeeeeeeeeeeee> Dez 27 13:47:38 bodd gamescope-session[242074]: #9 0x50d9de in void std::_Construct >, unsigned int>(std::vector >*> Dez 27 13:47:38 bodd gamescope-session[242074]: #10 0x50d9de in void std::allocator_traits >::construct >, unsigned int>(std::allocator Dez 27 13:47:38 bodd gamescope-session[242074]: #11 0x50d9de in std::_Sp_counted_ptr_inplace >, std::allocator, (__gnu_cxx::_Lock_policy)2>::_Sp_counted> Dez 27 13:47:38 bodd gamescope-session[242074]: #12 0x50d9de in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count >, std::allocator, unsig> Dez 27 13:47:38 bodd gamescope-session[242074]: #13 0x50d9de in std::__shared_ptr >, (__gnu_cxx::_Lock_policy)2>::__shared_ptr, unsigned > Dez 27 13:47:38 bodd gamescope-session[242074]: #14 0x50d9de in std::shared_ptr > >::shared_ptr, unsigned int>(std::_Sp_alloc_shared_tag<> Dez 27 13:47:38 bodd gamescope-session[242074]: #15 0x50d9de in std::shared_ptr > > std::make_shared >,> Dez 27 13:47:38 bodd gamescope-session[242074]: #16 0x50d9de in MouseCursor::getTexture() ../src/steamcompmgr.cpp:1944 Dez 27 13:47:38 bodd gamescope-session[242074]: #17 0x51c089 in MouseCursor::undirty() ../src/steamcompmgr.hpp:83 Dez 27 13:47:38 bodd gamescope-session[242074]: #18 0x51c089 in paint_all ../src/steamcompmgr.cpp:2607 Dez 27 13:47:38 bodd gamescope-session[242074]: #19 0xa5781f (/nix/store/cqk137dk22wby6ky66jigya5lhsyxd8r-gamescope-3.13.19/bin/.gamescope-wrapped+0xa5781f) Dez 27 13:47:38 bodd gamescope-session[242074]: Thread T7 created by T0 here: Dez 27 13:47:38 bodd gamescope-session[242074]: #0 0x7f1a31e4d136 in __interceptor_pthread_create (/nix/store/dghjv6hfz0s0z4kffa5ahyw2mhp79215-gcc-12.3.0-lib/lib/libasan.so.8+0x4d136) Dez 27 13:47:38 bodd gamescope-session[242074]: #1 0x7f1a314e0698 in std::thread::_M_start_thread(std::unique_ptr >, void (*)()) (/nix/store/dghjv6hfz0> Dez 27 13:47:38 bodd gamescope-session[242074]: #2 0x20098d606 () Dez 27 13:47:38 bodd gamescope-session[242074]: SUMMARY: AddressSanitizer: heap-buffer-overflow ../src/steamcompmgr.cpp:1947 in MouseCursor::getTexture() Dez 27 13:47:38 bodd gamescope-session[242074]: Shadow bytes around the buggy address: Dez 27 13:47:38 bodd gamescope-session[242074]: 0x0c5280031ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:47:38 bodd gamescope-session[242074]: 0x0c5280032000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:47:38 bodd gamescope-session[242074]: 0x0c5280032010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:47:38 bodd gamescope-session[242074]: 0x0c5280032020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:47:38 bodd gamescope-session[242074]: 0x0c5280032030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Dez 27 13:47:38 bodd gamescope-session[242074]: =>0x0c5280032040:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:47:38 bodd gamescope-session[242074]: 0x0c5280032050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:47:38 bodd gamescope-session[242074]: 0x0c5280032060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:47:38 bodd gamescope-session[242074]: 0x0c5280032070: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:47:38 bodd gamescope-session[242074]: 0x0c5280032080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:47:38 bodd gamescope-session[242074]: 0x0c5280032090: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Dez 27 13:47:38 bodd gamescope-session[242074]: Shadow byte legend (one shadow byte represents 8 application bytes): Dez 27 13:47:38 bodd gamescope-session[242074]: Addressable: 00 Dez 27 13:47:38 bodd gamescope-session[242074]: Partially addressable: 01 02 03 04 05 06 07 Dez 27 13:47:38 bodd gamescope-session[242074]: Heap left redzone: fa Dez 27 13:47:38 bodd gamescope-session[242074]: Freed heap region: fd Dez 27 13:47:38 bodd gamescope-session[242074]: Stack left redzone: f1 Dez 27 13:47:38 bodd gamescope-session[242074]: Stack mid redzone: f2 Dez 27 13:47:38 bodd gamescope-session[242074]: Stack right redzone: f3 Dez 27 13:47:38 bodd gamescope-session[242074]: Stack after return: f5 Dez 27 13:47:38 bodd gamescope-session[242074]: Stack use after scope: f8 Dez 27 13:47:38 bodd gamescope-session[242074]: Global redzone: f9 Dez 27 13:47:38 bodd gamescope-session[242074]: Global init order: f6 Dez 27 13:47:38 bodd gamescope-session[242074]: Poisoned by user: f7 Dez 27 13:47:38 bodd gamescope-session[242074]: Container overflow: fc Dez 27 13:47:38 bodd gamescope-session[242074]: Array cookie: ac Dez 27 13:47:38 bodd gamescope-session[242074]: Intra object redzone: bb Dez 27 13:47:38 bodd gamescope-session[242074]: ASan internal: fe Dez 27 13:47:38 bodd gamescope-session[242074]: Left alloca redzone: ca Dez 27 13:47:38 bodd gamescope-session[242074]: Right alloca redzone: cb Dez 27 13:47:38 bodd gamescope-session[242074]: ==242074==ABORTING ```
ChrisOboe commented 11 months ago

I just tried 3.13.16.4 (since https://github.com/ValveSoftware/gamescope/issues/1054 mentions that since 3.13.17 cursor scaling is broken) and this version doesn't crash.

ParetoOptimalDev commented 10 months ago

@ChrisOboe Can you share your nix code to rebuild with those options? I think I might be affected by this as well after recently updating.

misyltoad commented 10 months ago

I am not able to reproduce the address sanitizer issues :(

misyltoad commented 10 months ago

The fact you built without full debug makes it kinda useless ugggg

misyltoad commented 10 months ago

Can you try master? I handled an edgecase for lower cursor sizes there.

misyltoad commented 10 months ago

Looks like cursor size is lower on 7900XTX due to this commit which caused the issue: https://github.com/torvalds/linux/commit/3b304bced035fa4e1144d657b4687238be931806

ChrisOboe commented 9 months ago

@Joshua-Ashton it doesn't seem to work with master.

here is my log from ba5f9e8e0c490ebadc1012ff1e6f5a38cb4a00f7 ``` Feb 18 17:52:02 bodd gamescope-session[13442]: wlserver: [types/wlr_compositor.c:692] New wlr_surface 0x6190005f7380 (res 0x60c000f66ac0) Feb 18 17:52:02 bodd gamescope-session[13442]: wlserver: [xwayland/server.c:273] Xserver is ready Feb 18 17:52:02 bodd gamescope-session[13491]: Errors from xkbcomp are not fatal to the X server Feb 18 17:52:02 bodd gamescope-session[13442]: wlserver: [types/wlr_compositor.c:692] New wlr_surface 0x6190005f7880 (res 0x60c000f67480) Feb 18 17:52:02 bodd gamescope-session[13442]: wlserver: [xwayland/server.c:273] Xserver is ready Feb 18 17:52:02 bodd gamescope-session[13442]: pipewire: stream state changed: connecting Feb 18 17:52:02 bodd gamescope-session[13442]: pipewire: stream state changed: paused Feb 18 17:52:02 bodd gamescope-session[13442]: pipewire: stream available on node ID: 87 Feb 18 17:52:02 bodd gamescope-session[13442]: xwm: Embedded, no cursor set. Using left_ptr by default. Feb 18 17:52:02 bodd gamescope-session[13442]: ================================================================= Feb 18 17:52:02 bodd gamescope-session[13442]: ==13442==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6290001f3200 at pc 0x00000046ead8 bp 0x7fe7697fefc0 sp 0x> Feb 18 17:52:02 bodd gamescope-session[13442]: READ of size 4 at 0x6290001f3200 thread T7 Feb 18 17:52:02 bodd gamescope-session[13442]: #0 0x46ead7 in MouseCursor::getTexture() ../src/steamcompmgr.cpp:1931 Feb 18 17:52:02 bodd gamescope-session[13442]: #1 0x4afe6b in MouseCursor::undirty() (/nix/store/bwimnflzdmxwakh79gj9rznkbr6mvi8n-gamescope-3.13.16.4/bin/.gamescope-wra> Feb 18 17:52:02 bodd gamescope-session[13442]: #2 0x4a4b6a in init_xwayland_ctx(unsigned int, gamescope_xwayland_server_t*) ../src/steamcompmgr.cpp:7260 Feb 18 17:52:02 bodd gamescope-session[13442]: #3 0x4a77aa in steamcompmgr_main(int, char**) ../src/steamcompmgr.cpp:7529 Feb 18 17:52:02 bodd gamescope-session[13442]: #4 0x520e01 in steamCompMgrThreadRun ../src/main.cpp:915 Feb 18 17:52:02 bodd gamescope-session[13442]: #5 0x522066 in void std::__invoke_impl(std::__invoke_other, void (*&&)(int, cha> Feb 18 17:52:02 bodd gamescope-session[13442]: #6 0x521f2d in std::__invoke_result::type std::__invoke Feb 18 17:52:02 bodd gamescope-session[13442]: #7 0x521e60 in void std::thread::_Invoker >::_M_invoke<0ul, 1ul, 2ul>(std:> Feb 18 17:52:02 bodd gamescope-session[13442]: #8 0x521dfd in std::thread::_Invoker >::operator()() /nix/store/QS1NWZBP2M> Feb 18 17:52:02 bodd gamescope-session[13442]: #9 0x521de1 in std::thread::_State_impl > >::_M_run(> Feb 18 17:52:02 bodd gamescope-session[13442]: #10 0x7fe787ce8682 in execute_native_thread_routine (/nix/store/1s98ricsglmfjjqkfnpvywnip5z7gp9q-gcc-13.2.0-lib/lib/libst> Feb 18 17:52:02 bodd gamescope-session[13442]: #11 0x7fe787aa2382 in start_thread (/nix/store/cyrrf49i2hm1w7vn2j945ic3rrzgxbqs-glibc-2.38-44/lib/libc.so.6+0x8b382) (Bui> Feb 18 17:52:02 bodd gamescope-session[13442]: #12 0x7fe787b2500b in __clone3 (/nix/store/cyrrf49i2hm1w7vn2j945ic3rrzgxbqs-glibc-2.38-44/lib/libc.so.6+0x10e00b) (BuildI> Feb 18 17:52:02 bodd gamescope-session[13442]: 0x6290001f3200 is located 0 bytes after 16384-byte region [0x6290001ef200,0x6290001f3200) Feb 18 17:52:02 bodd gamescope-session[13442]: allocated by thread T7 here: Feb 18 17:52:02 bodd gamescope-session[13442]: #0 0x7fe7886dcb78 in operator new(unsigned long) (/nix/store/1s98ricsglmfjjqkfnpvywnip5z7gp9q-gcc-13.2.0-lib/lib/libasan.> Feb 18 17:52:02 bodd gamescope-session[13442]: #1 0x4fbee9 in std::__new_allocator::allocate(unsigned long, void const*) /nix/store/QS1NWZBP2ML3CXZSXIHN82> Feb 18 17:52:02 bodd gamescope-session[13442]: #2 0x4e05f4 in std::allocator::allocate(unsigned long) /nix/store/QS1NWZBP2ML3CXZSXIHN82HL0W73SNR0-gcc-13.2> Feb 18 17:52:02 bodd gamescope-session[13442]: #3 0x4e05f4 in std::allocator_traits >::allocate(std::allocator&, unsigned lon> Feb 18 17:52:02 bodd gamescope-session[13442]: #4 0x4e05f4 in std::_Vector_base >::_M_allocate(unsigned long) /nix/store/QS1N> Feb 18 17:52:02 bodd gamescope-session[13442]: #5 0x4da92c in std::_Vector_base >::_M_create_storage(unsigned long) /nix/stor> Feb 18 17:52:02 bodd gamescope-session[13442]: #6 0x4cbb2c in std::_Vector_base >::_Vector_base(unsigned long, std::allocator> Feb 18 17:52:02 bodd gamescope-session[13442]: #7 0x4bdfb6 in std::vector >::vector(unsigned long, std::allocator Feb 18 17:52:02 bodd gamescope-session[13442]: #8 0x46e38b in MouseCursor::getTexture() ../src/steamcompmgr.cpp:1899 Feb 18 17:52:02 bodd gamescope-session[13442]: #9 0x4afe6b in MouseCursor::undirty() (/nix/store/bwimnflzdmxwakh79gj9rznkbr6mvi8n-gamescope-3.13.16.4/bin/.gamescope-wra> Feb 18 17:52:02 bodd gamescope-session[13442]: #10 0x4a4b6a in init_xwayland_ctx(unsigned int, gamescope_xwayland_server_t*) ../src/steamcompmgr.cpp:7260 Feb 18 17:52:02 bodd gamescope-session[13442]: #11 0x4a77aa in steamcompmgr_main(int, char**) ../src/steamcompmgr.cpp:7529 Feb 18 17:52:02 bodd gamescope-session[13442]: #12 0x520e01 in steamCompMgrThreadRun ../src/main.cpp:915 Feb 18 17:52:02 bodd gamescope-session[13442]: #13 0x522066 in void std::__invoke_impl(std::__invoke_other, void (*&&)(int, ch> Feb 18 17:52:02 bodd gamescope-session[13442]: #14 0x521f2d in std::__invoke_result::type std::__invoke Feb 18 17:52:02 bodd gamescope-session[13442]: #15 0x521e60 in void std::thread::_Invoker >::_M_invoke<0ul, 1ul, 2ul>(std> Feb 18 17:52:02 bodd gamescope-session[13442]: #16 0x521dfd in std::thread::_Invoker >::operator()() /nix/store/QS1NWZBP2> Feb 18 17:52:02 bodd gamescope-session[13442]: #17 0x521de1 in std::thread::_State_impl > >::_M_run> Feb 18 17:52:02 bodd gamescope-session[13442]: #18 0x7fe787ce8682 in execute_native_thread_routine (/nix/store/1s98ricsglmfjjqkfnpvywnip5z7gp9q-gcc-13.2.0-lib/lib/libst> Feb 18 17:52:02 bodd gamescope-session[13442]: Thread T7 created by T0 here: Feb 18 17:52:02 bodd gamescope-session[13442]: #0 0x7fe78864b6a6 in __interceptor_pthread_create (/nix/store/1s98ricsglmfjjqkfnpvywnip5z7gp9q-gcc-13.2.0-lib/lib/libasan> Feb 18 17:52:02 bodd gamescope-session[13442]: #1 0x7fe787ce8758 in std::thread::_M_start_thread(std::unique_ptr Feb 18 17:52:02 bodd gamescope-session[13442]: #2 0x520bb6 in main ../src/main.cpp:896 Feb 18 17:52:02 bodd gamescope-session[13442]: #3 0x7fe787a3f0cd in __libc_start_call_main (/nix/store/cyrrf49i2hm1w7vn2j945ic3rrzgxbqs-glibc-2.38-44/lib/libc.so.6+0x28> Feb 18 17:52:02 bodd gamescope-session[13442]: SUMMARY: AddressSanitizer: heap-buffer-overflow ../src/steamcompmgr.cpp:1931 in MouseCursor::getTexture() Feb 18 17:52:02 bodd gamescope-session[13442]: Shadow bytes around the buggy address: Feb 18 17:52:02 bodd gamescope-session[13442]: 0x6290001f2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Feb 18 17:52:02 bodd gamescope-session[13442]: 0x6290001f3000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Feb 18 17:52:02 bodd gamescope-session[13442]: 0x6290001f3080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Feb 18 17:52:02 bodd gamescope-session[13442]: 0x6290001f3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Feb 18 17:52:02 bodd gamescope-session[13442]: 0x6290001f3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Feb 18 17:52:02 bodd gamescope-session[13442]: =>0x6290001f3200:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Feb 18 17:52:02 bodd gamescope-session[13442]: 0x6290001f3280: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Feb 18 17:52:02 bodd gamescope-session[13442]: 0x6290001f3300: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Feb 18 17:52:02 bodd gamescope-session[13442]: 0x6290001f3380: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Feb 18 17:52:02 bodd gamescope-session[13442]: 0x6290001f3400: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Feb 18 17:52:02 bodd gamescope-session[13442]: 0x6290001f3480: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Feb 18 17:52:02 bodd gamescope-session[13442]: Shadow byte legend (one shadow byte represents 8 application bytes): Feb 18 17:52:02 bodd gamescope-session[13442]: Addressable: 00 Feb 18 17:52:02 bodd gamescope-session[13442]: Partially addressable: 01 02 03 04 05 06 07 Feb 18 17:52:02 bodd gamescope-session[13442]: Heap left redzone: fa Feb 18 17:52:02 bodd gamescope-session[13442]: Freed heap region: fd Feb 18 17:52:02 bodd gamescope-session[13442]: Stack left redzone: f1 Feb 18 17:52:02 bodd gamescope-session[13442]: Stack mid redzone: f2 Feb 18 17:52:02 bodd gamescope-session[13442]: Stack right redzone: f3 Feb 18 17:52:02 bodd gamescope-session[13442]: Stack after return: f5 Feb 18 17:52:02 bodd gamescope-session[13442]: Stack use after scope: f8 Feb 18 17:52:02 bodd gamescope-session[13442]: Global redzone: f9 Feb 18 17:52:02 bodd gamescope-session[13442]: Global init order: f6 Feb 18 17:52:02 bodd gamescope-session[13442]: Poisoned by user: f7 Feb 18 17:52:02 bodd gamescope-session[13442]: Container overflow: fc Feb 18 17:52:02 bodd gamescope-session[13442]: Array cookie: ac Feb 18 17:52:02 bodd gamescope-session[13442]: Intra object redzone: bb Feb 18 17:52:02 bodd gamescope-session[13442]: ASan internal: fe Feb 18 17:52:02 bodd gamescope-session[13442]: Left alloca redzone: ca Feb 18 17:52:02 bodd gamescope-session[13442]: Right alloca redzone: cb Feb 18 17:52:02 bodd gamescope-session[13442]: ==13442==ABORTING Feb 18 17:52:02 bodd gamescope-session[13459]: (EE) failed to read Wayland events: Broken pipe ```

@ParetoOptimalDev i use the nixpkgs overlay from https://github.com/Jovian-Experiments/Jovian-NixOS to get upstream gamescope instead of nixpkgs patched one and then i use the following overlay to change version or enable address sanatizer:

 nixpkgs.overlays = [
    (self: super: {
      gamescope = super.gamescope.overrideAttrs rec {
        # the src will change the source to fetch. here is latest master
        src = pkgs.fetchFromGitHub {
          owner = "ValveSoftware";
          repo = "gamescope";
          rev = "ba5f9e8e0c490ebadc1012ff1e6f5a38cb4a00f7";
          fetchSubmodules = true;
          hash = "sha256-u2BC9AykLCEsBTSckM0hgQSkrTF7H8FP+W1LU2LFWKI=";
        };
        # dontStrip will prevent nix from stripping the built binary
        dontStrip = true;
        # this will set the cflags for compiling
        NIX_CFLAGS_COMPILE="-O0 -g3 -fsanitize=address";
      };
    })
  ];