mirror of
https://github.com/games-on-whales/wolf.git
synced 2026-10-15 21:12:08 +00:00
[PR #440] [MERGED] fix(test): static wayland registry listener #472
Labels
No labels
🧠 1 - 🤖 999
AMD
bug
bug
cannot reproduce
documentation
duplicate
easy
enhancement
enhancement
enhancement
fixed?
fixed?
good first issue
hard
help wanted
Intel
invalid
LXC
medium
moonlight-protocol
Multi GPU
nixos
not a bug
nvidia
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/wolf#472
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/games-on-whales/wolf/pull/440
Author: @JBailes
Created: 6/21/2026
Status: ✅ Merged
Merged: 6/21/2026
Merged by: @JBailes
Base:
stable← Head:fix/flaky-wayland-registry-listener📝 Commits (1)
e1a0f03fix(test): static wayland registry listener📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
tests/platforms/linux/wayland-client.hpp(+1 -1)📄 Description
The
[WAYLAND]"virtual inputs" test flakes with a SIGABRT (listener function for opcode 0 of wl_registry is NULL) only on the clang sanitizer variant.Cause: in
w_get_statethewl_registry_listeneris a stack local.wl_registry_add_listenerkeeps the pointer for the registry's lifetime, but the registry outlives the function. A registry event after it returns dispatches through a dangling pointer garbage in, abort. Non-deterministic: depends on a late global + whether the stack got reused (so sanitizers hit it, others mostly do't).Fix: make it
static const, like every other listener in the file (e.g.xdg_wm_base_listener). One word.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.