« Return to Thread: Piping sed stalls on OpenSolaris 2010.03

Re: Piping sed stalls on OpenSolaris 2010.03

by Paul Eggert :: Rate this Message:

| View in Thread

On 04/13/2012 03:32 AM, Mats Erik Andersson wrote:
>     { echo "A comment";
>       sed -e 's,re,txt,g' < file |
>       sed -e 's,re2,txt2,g' |
>       sed -e 's,re3,txt3,g'; } > outfile
>
> All other modules implement pipes using one or two levels, not three.
> This three level construct stalls on OpenSolaris 2010.03, presumably
> waiting for input

This sounds like a serious bug with OpenSolaris.
But perhaps it is a bug in the script.  Can you
reproduce the problem by invoking

  make
  [^C]
  truss -f -o truss.log make
  [^C]

and then look at truss.log and see which system calls are
going wrong and why?  If it's puzzling please feel free
to compress truss.log and send it along.

 « Return to Thread: Piping sed stalls on OpenSolaris 2010.03