Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#65076 - [xorg-server-xvfb] munges stdout and stderr together

Attached to Project: Arch Linux
Opened by Robbert Gurdeep Singh (beardhatcode) - Tuesday, 07 January 2020, 18:41 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 14 January 2020, 16:55 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Andreas Radke (AndyRTR)
Laurent Carlier (lordheavy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No



xvfb-run outputs everything (stdout and stderr) to stdout. While this should be separated.

The xvfb-run script in xorg-server-xvfb executes

instead of

Offending line:

Additional info:
* package version: xorg-server-xvfb 1.20.6-3
* config and/or log files etc.
* Ubuntu bugreport:
(cant find an bug for it)

Steps to reproduce:
xvfb-run -- sh -c "echo hey >&2" > /dev/null

Returns nothing (should return "hey")

A patch file is attached (removing the last 5 characters of the offending line)
This task depends upon

Comment by Jan de Groot (JGC) - Monday, 13 January 2020, 15:33 GMT
There is no upstream report for this because xvfb-run is a script taken from Debian.

Note that Ubuntu has reverted the suggested patch, as it breaks automated tests that rely on the behavior.
Comment by Andreas Radke (AndyRTR) - Tuesday, 14 January 2020, 17:09 GMT
We don't use Ubuntu "autopkgtests" that may fail.

No idea if our packages that (check)depend on xorg-server-xvfb would suddenly fail. I guess not.
Debian actually applied the patch and never went back it seems:

We should probably do the same and fix it.