On Tue, 2008-01-22 at 08:49 -0500, Michael Stone wrote:
> On Mon, Jan 14, 2008 at 03:22:39PM +0000, Sam Morris wrote:
> >Package: coreutils
> >Version: 5.97-5.3
> >Severity: normal
> >
> >I am trying to use sort to sort a 812 MB file:
> >
> >mmap2(NULL, 4118106112, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
> >0) = -1 ENOMEM (Cannot allocate memory)
> >--- SIGSEGV (Segmentation fault) @ 0 (0) ---
> >
> >I guess sort ignores the failure of the mmap system call. Here's a stack
> >trace:
> 
> What happens if you use the -S option to sort? (I actually don't think 
> it will matter, but give it a shot.) 

Indeed, it doesn't make a difference. I don't think so much that it is
the length of the file that's the issue--but the length of the longest
line (~600 MB or something ridiculous).

> 
> Mike Stone
> 
-- 
Sam Morris <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to