GNU bug report logs - #13530
head: memory exhausted when printing all from stdin but last P/E bytes

Previous Next

Package: coreutils;

Reported by: Lei Zhang <lei.zhang <at> uwaterloo.ca>

Date: Wed, 23 Jan 2013 02:43:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #68 received at 13530 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: lei.zhang <at> uwaterloo.ca, Paul Eggert <eggert <at> cs.ucla.edu>,
	13530 <at> debbugs.gnu.org, coreutils <at> gnu.org
Subject: Re: bug#13530: head: memory exhausted when printing all from stdin
	but last P/E bytes
Date: Sun, 02 Jun 2013 18:25:03 +0200
Pádraig Brady wrote:
> On 06/02/2013 04:46 AM, Jim Meyering wrote:
>> diff --git a/tests/misc/head-c.sh b/tests/misc/head-c.sh
>> index 37a86ce..a5b6c6a 100755
>> --- a/tests/misc/head-c.sh
>> +++ b/tests/misc/head-c.sh
>> @@ -19,6 +19,7 @@
>>  . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
>>  print_ver_ head
>>  require_ulimit_v_
>> +getlimits_
>>
>>  # exercise the fix of 2001-08-18, based on test case from Ian Bruce
>>  echo abc > in || framework_failure_
>> @@ -31,6 +32,6 @@ esac
>>  # Only allocate memory as needed.
>>  # Coreutils <= 8.21 would allocate memory up front
>>  # based on the value passed to -c
>> -(ulimit -v 20000; head --bytes=-E < /dev/null) || fail=1
>> +(ulimit -v 20000; head --bytes=-$SSIZE_MAX < /dev/null) || fail=1
>
> +1

Pushed.




This bug report was last modified 12 years and 42 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.