[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#70762: textutils: tail segfault



On Fri, Nov 15, 2002 at 08:23:24AM -0500, Jeff Bailey wrote:
> On Fri, 2002-11-15 at 04:00, Herbert Xu wrote:
> 
> > > But the original bug seems to be more of an issue: shouldn't it be a bug
> > > that tail chews up infinite amounts of memory when it can't find an
> > > end-of-line char? IMHO, tail should just bail out when it finds a line
> > > which is more than, say 10MB long (I'm being generous about limits here). 
> > > I mean, when there is no newline for 10MB's worth of data, is there even
> > > any usefulness to tail anymore? I just can't imagine any scenario where
> > > it'd actually do anything *useful*.
> 
> > No, we should not impose arbitrary limits on applications.
> 
> Sure, but it would also be reasonable to flush the buffer to the screen
> every (screensize/2) so that a human could follow it.

Tail can't do that until it finds the new lines...
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



Reply to: