On 5/6/21 7:49 AM, Peter Jeremy via freebsd-stable
wrote:> On 2021-May-06 12:59:54 +0200, Mariusz Zaborski <oshogbo at
freebsd.org> wrote:
>> Could you provide details how to reproduce this?
>>
>> On Thu, 6 May 2021 at 12:13, Peter Jeremy via freebsd-stable
>> <freebsd-stable at freebsd.org> wrote:
>>>
>>> Since updating from 12-stable to 13-stable, I've found that
tail(1)
>>> crashes, reporting:
>>> Assertion failed: (procfd > STDERR_FILENO), function
service_clean, file /usr/src/lib/libcasper/libcasper/service.c, line 394.
>>> tail: unable to init casper: Socket is not connected
>>> unless all three of stdin, stdout and stderr are open. Whilst it
>>> probably doesn't make sense to call tail without stdout open.
there's
>>> no obvious reason to require that stdin or stderr must be open.
>
> server% tail /COPYRIGHT <&-
> Assertion failed: (procfd > STDERR_FILENO), function service_clean, file
/usr/src/lib/libcasper/libcasper/service.c, line 394.
> tail: unable to init casper: Socket is not connected
>
(fixed quote with some additional tests)
I get a different error on a 13.0-RELEASE machine I converted from 12 to
current about a year ago (bash and sh):
$ tail /COPYRIGHT <&-
tail: can't limit stdio rights: Bad file descriptor
works with sudo:
$ sudo tail /COPYRIGHT <&-
* California, Berkeley and its contributors."
etc etc...
but not as root, with a different error in sh:
# tail /COPYRIGHT <&-
Missing name for redirect.
as root in bash:
# tail /COPYRIGHT <&-
tail: can't limit stdio rights: Bad file descriptor
works as both user and root in ksh