SRU for resolute, please sponsor and build.

Proposed version: xdg-desktop-portal-hyprland 1.3.11-1ubuntu0.1
(universe).

[Impact]
On 26.04 the portal segfaults while exiting: it disconnects the Wayland
display before destroying the proxies, and their destructors marshal a
destroy request into the freed object map. The crash is on the
compositor-gone path, so systemd's Restart=on-failure retries the portal
with no compositor and can hit start-limit-hit; screen sharing and
screenshots then stay broken until systemctl --user reset-failed. The
error-tracker bucket is 83 reports/week.

[Test Plan]
1. On a Hyprland session with 1.3.11-1build2, activate the portal through
   a private D-Bus session and close the bus:
   dbus-run-session -- gdbus call --session --dest
   org.freedesktop.impl.portal.desktop.hyprland --object-path
   /org/freedesktop/portal/desktop --method
   org.freedesktop.DBus.Peer.Ping
   The portal exits via the terminate() tail; expect SIGSEGV in
   wl_map_insert_at.
2. With 1.3.11-1ubuntu0.1, repeat: the portal must exit without a core.
3. Log out of Hyprland with the portal running; no core and no
   start-limit-hit.
4. After release, the error-tracker bucket should fall to zero.

A libwayland-only reproducer is attached with its gdb log; it proves the
release-before-disconnect ordering without the package.

[Where problems could occur]
The change is shutdown-order-only: it releases the remaining proxies
before wl_display_disconnect() and nulls the display. No runtime path
changes and no new build dependencies. The patch is adapted from upstream
0121b2e to the 1.3.11 proxy set; there is no xdgOutputManager in this
version.

[Other info]
Upstream 0121b2e3f85c7ebf6280173f1054f7e5606262d1, merged as
https://github.com/hyprwm/xdg-desktop-portal-hyprland/pull/443, first
released in 1.5.0. The 1.5.0 fix is incomplete (#453: icc,
workspaceSource and workspaceTracker are not reset); that is a separate
follow-up for 27.04. 26.10 (1.4.1-1) has the same teardown with an extra
CCZxdgOutputV1 proxy and needs its own backport.

The source package and debdiff are prepared, but the binary has not been
built here: sdbus-c++, hyprlang, hyprutils and Qt6 are not installed and
there is no sudo. Please build in a clean chroot and run the test plan.


** Patch added: "resolute 1.3.11-1ubuntu0.1 debdiff"
   
https://bugs.launchpad.net/bugs/2190907/+attachment/6025320/+files/xdg-desktop-portal-hyprland_1.3.11-1ubuntu0.1.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2190907

Title:
  xdg-desktop-portal-hyprland 1.3.11: SEGV in wl_map_insert_at on exit

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdg-desktop-portal-hyprland/+bug/2190907/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to