Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 May 2021 19:07:23 -0400
From:      monochrome <monochrome@twcny.rr.com>
To:        freebsd-stable@freebsd.org
Subject:   Re: tail(1) broken in 13-stable
Message-ID:  <dcf37b27-aa2a-c320-1e39-72cda2038044@twcny.rr.com>
In-Reply-To: <YJPXvFzBRSDH74in@server.rulingia.com>
References:  <YJPBUOKKv4cDHhmq@server.rulingia.com> <CAGOYWV_8_MXvTfCGix8jzZeuysiUpXkVQErnpSyB2V=63%2B1-nA@mail.gmail.com> <YJPXvFzBRSDH74in@server.rulingia.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 5/6/21 7:49 AM, Peter Jeremy via freebsd-stable wrote:
> On 2021-May-06 12:59:54 +0200, Mariusz Zaborski <oshogbo@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dcf37b27-aa2a-c320-1e39-72cda2038044>