From owner-freebsd-current@FreeBSD.ORG Thu May 7 17:51:51 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C213F106566C; Thu, 7 May 2009 17:51:51 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 8FF948FC16; Thu, 7 May 2009 17:51:51 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: (from root@localhost) by kientzle.com (8.14.3/8.14.3) id n47HpoKM004203; Thu, 7 May 2009 10:51:51 -0700 (PDT) (envelope-from kientzle@freebsd.org) Received: from dark.x.kientzle.com (fw2.kientzle.com [10.123.1.2]) by kientzle.com with SMTP id b4eti8a3ediv8nkn7mgdhtz3en; Thu, 07 May 2009 10:51:50 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <4A031FB6.2050907@freebsd.org> Date: Thu, 07 May 2009 10:51:50 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.21) Gecko/20090409 SeaMonkey/1.1.15 MIME-Version: 1.0 To: Alexey Shuvaev References: <20090505174831.GA40305@wep4035.physik.uni-wuerzburg.de> <3GBQgy9AhtC1kpgclCTM4BIxKP8@AbNt2aYVonA6XSQc9As8EVwIk24> <20090506032832.GB45796@wep4035.physik.uni-wuerzburg.de> <92cd2ff70905060501vaaf67bdnaee1be72e04f1ef8@mail.gmail.com> <20090506192603.GA56228@wep4035.physik.uni-wuerzburg.de> In-Reply-To: <20090506192603.GA56228@wep4035.physik.uni-wuerzburg.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, openoffice@freebsd.org Subject: Re: gunzip | tar reports broken pipe during OOO build on amd64. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2009 17:51:52 -0000 >>>> Tue, May 05, 2009 at 07:48:31PM +0200, Alexey Shuvaev wrote: >>>>> The reason appeared to be the first part of the command >>>>> "gunzip -c ... | ( tar -xf - ) && touch ..." >>>>> which exited with non-zero exit status (141) and "touch ..." was not >>> called. >>>>> Running the command manually has showed that gunzip was complaining >>> about >>>>> broken pipe (however the archive was extracted successfully). >>>> Yes, 141 means that SIGPIPE was delivered. This in turn means that >>>> 'tar -xf -' exited before gunzip had finished its job and gunzip had >>>> tried to write more data to the pipe. I finally reproduced this; it seems to only happen with /bin/csh. It does not happen with /bin/sh or bash. Also, in /bin/csh, this works: (gunzip -c ooo_crystal_images-1.tar.gz | tar xf -) && echo OK and this fails: gunzip -c ooo_crystal_images-1.tar.gz | (tar xf -) && echo OK Tim