bug-coreutils
[Top][All Lists]
Advanced

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

Re: coreutils CVS test failure on Tru64 UNIX 5.1


From: Jim Meyering
Subject: Re: coreutils CVS test failure on Tru64 UNIX 5.1
Date: Sat, 29 May 2004 13:35:06 +0200

address@hidden (Albert Chin-A-Young) wrote:
...
> $ echo abc | ./tr '' '[.*]'; echo $?
> ./tr: memory exhausted
> 1

Thanks for reporting that!
The problem is that although there are tests and
replacements for inadequate malloc and realloc functions,
there aren't any for calloc.  And now that tr may use calloc
with a zero argument, it triggers the problem on systems
with an inadequate calloc function.

I have a patch, most of which will probably end up in
autoconf's functions.m4, since the required test is nearly
identical to the one performed by AC_FUNC_REALLOC.
In the mean time, I'm adding m4/calloc.m4 (AC_FUNC_CALLOC)
to the coreutils repository and calloc.c etc. to gnulib.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]