[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ls: write error: Broken pipe
From: |
Dan Nicolaescu |
Subject: |
Re: ls: write error: Broken pipe |
Date: |
Thu, 08 Nov 2007 23:36:05 -0800 |
address@hidden (Bob Proulx) writes:
> Dan Nicolaescu wrote:
> > Paul Eggert writes:
> > > bash -c '(while echo foo; do :; done); echo status=$? >&2' | head
> > >
> > > If it eventually outputs "write error: Broken pipe", you have SIGPIPE
> > > trapped, and that would explain your problem (which you need to track
> > > down). If it prints "status=141" you do not have SIGPIPE trapped and
> > > we need to investigate the issue further.
> >
> > The output is "write error: Broken pipe".
>
> Then that is a pretty strong indication that your session is trapping
> SIGPIPE. You will have to debug that to root cause. Something,
> somewhere in the start path for you is trapping that and it will cause
> endless problems until it is found and fixed.
Advice on finding that would be welcome.
> > If I execute the same thing in a Linux console it never stops.
>
> Do you mean that on the console that you do not get that error and
> everything seems to be working properly? That is what we would expect
> and should be the normal behavior in your other terminals too, but
> apparently is not.
Please ignore my statement above, I made a typo on the command line.
I run a few more experiments with the bash command above:
- when run from an xterm it fails with the broken pipe error
- when run from in an xterm like this:
bash
tcsh
bash -c '(while echo foo; do :; done); echo status=$? >&2' | head
it prints 141.
- when run from the Linux console it fails with the broken pipe
error. In that case the pstree chain is like this: init - login - tcsh
- Re: ls: write error: Broken pipe, (continued)
- Re: ls: write error: Broken pipe, Paul Eggert, 2007/11/01
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/01
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/02
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/02
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/02
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/02
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/08
- Re: ls: write error: Broken pipe, Paul Eggert, 2007/11/08
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/09
- Re: ls: write error: Broken pipe, Bob Proulx, 2007/11/09
- Re: ls: write error: Broken pipe,
Dan Nicolaescu <=
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/09
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/09
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/09
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/09
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/09
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/09
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/09
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/09
- Re: ls: write error: Broken pipe, Dan Nicolaescu, 2007/11/10
- Re: ls: write error: Broken pipe, Jim Meyering, 2007/11/10