Hi Uwe,

I'm no sort expert but it looks like the sort program has a bug:

http://bugs.opensolaris.org/view_bug.do?bug_id=5044446

sort produces an unclear error message when input lines are too long.

input lines longer than 8k can cause sort to stop and produce a message 
suggesting -S option could help when  it can't.

Maybe someone else can add a workaround...

Cindy

Uwe Dippel wrote:
> Noticed this using gupdatedb from Blastwave. [Yes, I filed it there, but no 
> answer]
> 
> # gupdatedb
> sort: insufficient memory; use -S option to increase allocation
> Broken Pipe
> 
> Played a bit with it, but didn't go away. Searched Google, and this was 
> something way back in Solaris 10.
> But nothing actual.
> Therefore I made it fail here, in front of my eyes:
> 
> # find . | wc -l
>   372245
> # find . | sort | wc -l
> sort: insufficient memory; use -S option to increase allocation
>        0
> 
> # which sort
> /usr/bin/sort
> # uname -a
> SunOS SolU 5.11 snv_96 i86pc i386 i86pc
> # ls -l /usr/bin/sort
> -r-xr-xr-x  96 root     bin         8148 Aug  9 01:58 /usr/bin/sort
> 
> What can I do?
> 
> Uwe
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> sysadmin-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss
_______________________________________________
sysadmin-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss

Reply via email to