#1150601 libgtk-nocsd0: please update to a snapshot after upstream commit 08356a5, the packaged one crashes every process given an AppRun path

Package:
libgtk-nocsd0
Source:
libgtk-nocsd0
Description:
Library to disable GTK client side decorations
Submitter:
Maxim Makarov
Date:
2026-10-11 10:37:06 UTC
Severity:
normal
#1150601#5
Date:
2026-10-11 09:59:47 UTC
From:
To:
Dear Maintainer,

the packaged snapshot (0b77e1b, 2026-03-21) has a bug in
GTKNoCSDLibraryInPath(): the recursive directory walk does not skip
the "." entry, so it recurses forever and the process dies with
SIGSEGV in the library's constructor, before its own main() runs.
Since the package installs /usr/lib/environment.d/50-gtk-nocsd.conf,
the library is preloaded into every process of the session, and any
program whose arguments contain an existing path ending in "AppRun"
crashes, including cat, stat, dirname and /bin/true:

    $ mkdir -p /tmp/x/empty
    $ /bin/true /tmp/x/empty/AppRun
    Segmentation fault (core dumped)

Upstream fixed this on 2026-05-26 in commit
08356a51912676610a50695368c20c25cb0b73db ("Optimize
GTKNoCSDLibraryInPath", https://codeberg.org/MorsMortium/GTK-NoCSD).
The commit message only mentions slow AppImage startup, which may be
why it was not picked up as a crash fix.

Please update the package to a snapshot that includes that commit, or
cherry-pick it (13 insertions, 17 deletions, one file).

System: Ubuntu 26.04.1 LTS, KDE Plasma on Wayland. The Ubuntu package
is the unmodified Debian one.

#1150601#10
Date:
2026-10-11 10:34:54 UTC
From:
To:
Closing: these were accidental duplicates of #1150596, created by a
scripted reportbug submission that gave no feedback about having sent.
Two of them (#1150599, #1150600) were test runs with placeholder
subjects. The real report is #1150596. Sorry for the noise.