sed memory exhausted

Gregory Fleischer (Lists) gfleischer.lists at gmail.com
Thu Nov 15 21:04:47 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Nov 15, 2007, at 10:40 PM, naruto canada wrote:

> hi
>
> anybody ran into this problem?
>
> I'm doing hlfs-uclibc-2.6 upto "5.27.1. Installation of Sed"
> after the installation of sed, all subsequent configure ran into
> memory exhaustion.
>
> ...
> sed: -e expression #1, char 11: Memory exhausted
> config.status: creating doc/Makefile
> sed: -e expression #1, char 19: Memory exhausted
> sed: -e expression #1, char 11: Memory exhausted
> ....
> ....
>
> I'm still looking for what went wrong.
> --  
> http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
> FAQ: http://www.linuxfromscratch.org/faq/
> Unsubscribe: See the above information page


I've seen this problem before.

If uClibc wasn't configured with MALLOC_GLIBC_COMPAT, then malloc(0)
will return NULL instead of allocating 1 byte.  This causes sed to
fail when attempting a re_malloc of zero which is valid in some cases.

If so, download and apply:
     http://www.linuxfromscratch.org/patches/downloads/sed/sed-4.1.4- 
uClibc-1.patch

You'll may need to manually delete the sed you just built, otherwise  
the configure for sed may fail.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHPSTwWbVJrJm/lrsRAtUrAKDRpMoe9IuouNcL7PBD/R1oPzcbmQCfVoHy
aOm8zLKEdboCLdSRn6YD9gI=
=5E+m
-----END PGP SIGNATURE-----



More information about the hlfs-dev mailing list