From owner-freebsd-stable@freebsd.org Thu May 6 23:07:26 2021 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7D938631171 for ; Thu, 6 May 2021 23:07:26 +0000 (UTC) (envelope-from monochrome@twcny.rr.com) Received: from p-impout003.msg.pkvw.co.charter.net (p-impout003aa.msg.pkvw.co.charter.net [47.43.26.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fbq3d14K9z3BmN for ; Thu, 6 May 2021 23:07:24 +0000 (UTC) (envelope-from monochrome@twcny.rr.com) Received: from [192.168.13.11] ([45.47.45.55]) by cmsmtp with ESMTP id en5XlsRrTYRZ9en5XlFJAm; Thu, 06 May 2021 23:07:23 +0000 X-Authority-Analysis: v=2.4 cv=DtiTREz+ c=1 sm=1 tr=0 ts=609476ab a=oJ4f3sEZGTo/oTi6ieWQlw==:117 a=oJ4f3sEZGTo/oTi6ieWQlw==:17 a=N659UExz7-8A:10 a=6I5d2MoRAAAA:8 a=Y8dqpXDON2tZQHkyz9IA:9 a=pILNOxqGKmIA:10 a=IjZwj45LgO3ly-622nXo:22 Subject: Re: tail(1) broken in 13-stable To: freebsd-stable@freebsd.org References: From: monochrome Message-ID: Date: Thu, 6 May 2021 19:07:23 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfHkcFIBp1WK10gYn4Oj7ABlLNhEVi6SJd96tUR6yFutBQqh+OSr9bXAJcR6rSwP5lVCPiZijT77TC5lRd9Q9vMt334mLuho+XNdd7Ub0iws3ixLa5jJd u2ZvfiDuN6OdZPiMmhZim+wpeOZJroSrDVFcq15gQbKAzzssC/71uVi7ZVPyrc2KCJWU9PcHfvP4D0beL+VWam2R4HThEetzIz8= X-Rspamd-Queue-Id: 4Fbq3d14K9z3BmN X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of monochrome@twcny.rr.com designates 47.43.26.134 as permitted sender) smtp.mailfrom=monochrome@twcny.rr.com X-Spamd-Result: default: False [-3.22 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[45.47.45.55:received]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[47.43.26.134:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:47.43.26.0/24]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[rr.com]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[47.43.26.134:from:127.0.2.255]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.92)[-0.924]; RCVD_IN_DNSWL_NONE(0.00)[47.43.26.134:from]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:40294, ipnet:47.43.24.0/21, country:US]; MIME_TRACE(0.00)[0:+]; MAILMAN_DEST(0.00)[freebsd-stable]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2021 23:07:26 -0000 On 5/6/21 7:49 AM, Peter Jeremy via freebsd-stable wrote: > On 2021-May-06 12:59:54 +0200, Mariusz Zaborski wrote: >> Could you provide details how to reproduce this? >> >> On Thu, 6 May 2021 at 12:13, Peter Jeremy via freebsd-stable >> 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