debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #01683
[Bug 2112552] Re: cat doesn't handle EPERM
Is anything else failing to build or is util-linux involved in a
transition? How is this built in proposed?
Given that this is a particularly special case about cat on procfs and
possibly sysfs, it's incredibly niche and it may be worthwhile to not
redirect it.
** Also affects: coreutils-from (Ubuntu)
Importance: Undecided
Status: New
** Changed in: coreutils-from (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/2112552
Title:
cat doesn't handle EPERM
Status in coreutils-from package in Ubuntu:
Incomplete
Status in rust-coreutils package in Ubuntu:
Confirmed
Status in util-linux package in Ubuntu:
Confirmed
Bug description:
This was found while investigating FTBFS in util-linux
(https://launchpadlibrarian.net/797485933/buildlog_ubuntu-questing-
amd64.util-linux_2.41-4ubuntu1_BUILDING.txt.gz).
This is triggered by this test: tests/ts/lsfd/mkfds-multiplexing
This test was skipped with GNU coreutils, because at some point, `cat` fails (with reason) to read a file: https://github.com/util-linux/util-linux/blob/35128888075ade600413092214b62acf3601ead9/tests/ts/lsfd/mkfds-multiplexing#L49-L55
With uutils coreutils, the test is not skipped, but fails for unclear reasons.
It boils down to this very easy reproducer: cat /proc/$$/syscall
GNU coreutils output:
skia@noble:/$ cat /proc/$$/syscall
cat: /proc/208/syscall: Operation not permitted
skia@noble:/$ echo $?
1
uutils coreutils output:
skia@questing:/$ cat /proc/$$/syscall
skia@questing:/$ echo $?
0
`strace cat /proc/$$/syscall` clearly shows that `read()` return EPERM with both binaries:
...
read(3, 0x7ffd4ef80798, 65536) = -1 EPERM (Operation not permitted)
...
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils-from/+bug/2112552/+subscriptions