Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jun 1997 05:20:50 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, jkh@time.cdrom.com
Cc:        freebsd-ports@hub.freebsd.org
Subject:   Re: ports/3971: bash-2.01 install doesn't edit /etc/shells
Message-ID:  <199706271920.FAA03667@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>>  The bug is that bash-1.14.7 supplies its own versions of malloc(),
>>  realloc() and free() but doesn't supply its own version of calloc().
>
>Actually, what it does is call GNU malloc (its "own versions" are
>merely the traditional GNU xfoo() wrappers around all the allocation
>calls)

Actually, it calls its own version of malloc() which seems to be an old,
reduced or buggy version of GNU malloc, and in any case is configured
by defining USE_GNU_MALLOC (the default).  It also has a non-buggy
version of GNU malloc that is configurd by defining something like
USE_GNU_MALLOC_LIBRARY (not the default).  ISTR that it needed to use
its own version of malloc() because it used its own version of putenv().

>and the problem is easily addressed by making it use the system
>versions, which are superior in any case.  The fix has been tested
>and committed.

The fix should #undef USE_GNU_MALLOC in the FreeBSD section, not globally.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706271920.FAA03667>