• Bug#876058: xvfb-run does not use /bin/bash in shebang line

    From Rian Hunter@21:1/5 to All on Mon Sep 18 03:20:02 2017
    XPost: linux.debian.bugs.dist

    Package: xvfb
    Version: 2:1.19.3-2
    Severity: normal

    xvfb-run uses "#!/bin/sh" as its shebang line. This is wrong because
    it uses bash-specific features like "trap on_cleanup EXIT". This is
    especially broken when "#/bin/sh" links to "dash" (now the default
    shell on debian systems).

    This causes the Xvfb process to stick around when the child X client finishes.

    -- System Information:
    Debian Release: stretch/sid
    APT prefers testing
    APT policy: (500, 'testing')
    Architecture: amd64 (x86_64)

    Kernel: Linux 4.9.0-3-amd64 (SMP w/8 CPU cores)
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
    Shell: /bin/sh linked to /bin/dash
    Init: systemd (via /run/systemd/system)

    Versions of packages xvfb depends on:
    ii libaudit1 1:2.5.2-1
    ii libbsd0 0.8.3-1
    ii libc6 2.24-17
    ii libgcrypt20 1.7.0-2
    ii libgl1-mesa-glx [libgl1] 11.1.2-1
    ii libpixman-1-0 0.33.6-1
    ii libselinux1 2.6-3+b1
    ii libsystemd0 234-2.3
    ii libxau6 1:1.0.8-1
    ii libxdmcp6 1:1.1.2-1.1
    ii libxfont2 1:2.0.1-3
    ii libxshmfence1 1.2-1
    ii xserver-common 2:1.19.3-2

    Versions of packages xvfb recommends:
    ii xauth 1:1.0.9-1

    xvfb suggests no packages.

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sven Joachim@21:1/5 to Rian Hunter on Mon Sep 25 19:30:02 2017
    XPost: linux.debian.bugs.dist

    On 2017-09-17 17:07 -0700, Rian Hunter wrote:

    Package: xvfb
    Version: 2:1.19.3-2
    Severity: normal

    xvfb-run uses "#!/bin/sh" as its shebang line. This is wrong because
    it uses bash-specific features like "trap on_cleanup EXIT".

    No, this feature is not bash-specific, it is documented in SuSv3[1].

    This is especially broken when "#/bin/sh" links to "dash" (now the
    default shell on debian systems).

    That appears to be true, however. See #390433[2].

    Cheers,
    Sven


    1. http://pubs.opengroup.org/onlinepubs/009695399/utilities/trap.html
    2. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=390433

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rian Hunter@21:1/5 to All on Mon Sep 25 20:30:02 2017
    XPost: linux.debian.bugs.dist

    This is especially broken when "#/bin/sh" links to "dash" (now the
    default shell on debian systems).

    That appears to be true, however. See #390433[2].

    Thanks for the pointer. I'll see about getting a proper fix in the dash package.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)