[lfs-support] write error with new version of tar

Rusty rustyd at bobpooch.com
Thu Jun 18 09:50:34 PDT 2015


Aleksandar Kuktin <akuktin <at> gmail.com> writes:

> 
> >On Fri, 19 Mar 2010 14:21:29 -0600
> >Mike McCarty <Mike.McCarty <at> sbcglobal.net> wrote:
> >
> > Bruce Dubbs wrote:
> > > Chris Staub wrote:
> > 
> > [...]
> > 
> > >> I do not get any kind of error message when just using "tar -tf"
> > >> by itself, only when piping through "head". Also, I tried piping
> > >> through various other programs (grep, sed...) and got nothing.
> > > 
> > > I get the same error message with head:
> > > 
> > > ./configure
> > > make
> > > cd src
> > > ./tar -tf ../../tar-1.23.tar.bz2 |head
> > > 
> > > 
> > > Me too.
> > > 
> > > 
> > > I'll report the bug.
> > 
> > I wonder if "head" is closing the input pipe when it has read
> > all it needs, and that's causing the error. I can't reproduce
> > that problem with my host system, however.
> > 
> > Mike
> 
> I can also confirm problems with tar-1.23.
> 
> What is your host system? I have Glibc-2.9, GNU Coreutils-7.6 and
> Bash-4.0.35, on top of Linux-2.6.23.2.
> 
> Speculating: maybe the problem is not with the tar per se, but
> somewhere in the interface? If there is a system on which tar-1.23
> behaves properly..
> 
> -AKuktin


This happens if the pipe signal is blocked and not delivered to tar.

# trap
trap -- '' SIGPIPE
# tar tfz jdk-7u55-linux-x64.tar.gz | head -1
jdk1.7.0_55/
tar: write error
# trap - SIGPIPE
# tar tfz jdk-7u55-linux-x64.tar.gz | head -1
jdk1.7.0_55/
# 



More information about the lfs-support mailing list