From owner-freebsd-stable Sun Feb 11 7:39:39 2001 Delivered-To: freebsd-stable@freebsd.org Received: from moon.harmonic.co.il (moon.harmonic.co.il [192.116.140.65]) by hub.freebsd.org (Postfix) with ESMTP id 0C62C37B491 for ; Sun, 11 Feb 2001 07:39:35 -0800 (PST) Received: (from nobody@localhost) by moon.harmonic.co.il (8.9.3/8.9.3) id RAA02974; Sun, 11 Feb 2001 17:36:35 +0200 To: Matt Dillon Subject: Re: RE: Proposed makewhatis perl script fix Message-ID: <981905794.3a86b1830102a@webmail.harmonic.co.il> Date: Sun, 11 Feb 2001 17:36:35 +0200 (IST) From: Roman Shterenzon Cc: freebsd-stable@FreeBSD.ORG References: <200102110819.f1B8Jk430590@earth.backplane.com> In-Reply-To: <200102110819.f1B8Jk430590@earth.backplane.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.2 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Quoting Matt Dillon : > :> :of what is broken. > :> : > :> :Kent > :> > :> makewhatis is just makewhatis... it has nothing to do with tar. > :> > :> When you tar something up, tar writes full blocks. But when you > untar > :> something the actual end of the archive may occur in the middle > of a > :> block. tar will close the input descriptor 'early' in this case, > :> potentially before gunzip or uncompress manage to write the last > block > :> of zeros. > : > :I also don't believe that this is the real fix - there is something > fishy > :going on in stable. I just upgraded all of our servers from 4.2-RELEASE > to > :4.2-STABLE and I see the following messages upon installing *any* > package: > : > :/home/blaz# pkg_add gmake-3.79.1.tgz > : > :gzip: stdout: Broken pipe > :tar: child returned status 1 > :/home/blaz# > : > :The package actually appears to install and work fine. I also noticed > similar > :messages from gzip during "make" on a port, but again the port built > and > :installed fine after that. > : > :So no, your makewhatis patch only appears to be a bandaid, but there is > :something going on deeper (possibly in the kernel) that was not there > in > :4.2-RELEASE. > : > :Blaz Zupan, Medinet d.o.o, Linhartova 21, 2000 Maribor, Slovenia > :E-mail: blaz@amis.net, Tel: +386-2-320-6320, Fax: +386-2-320-6325 > > There's nothing wrong with the kernel. It's exactly what I said it > was. > > pkg_add runs tar with the --fast-read option to extract the table of > contents. When I remove the option pkg_add no longer reports broken > pipes. When gunzip'ing piped to tar, and tar exits early due to > the option, gunzip properly gets a 'gzip: stdout: Broken pipe' > error. > > Maybe 'tar' was changed recently, maybe 'gunzip' was changed > recently, > I don't know. But it isn't a kernel problem. The kernel is doing > exactly what it is supposed to be doing. > I'm not sure, but there were rumors floating around that its due to some bug in the new OpenSSH. Can you confirm it? --Roman Shterenzon, UNIX System Administrator and Consultant [ Xpert UNIX Systems Ltd., Herzlia, Israel. Tel: +972-9-9522361 ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message