Andreas Jaeger <aj(a)suse.de> writes:
I think I've found a big bad bug in the internal handling of
__malloc_hook in glibc's malloc implementation.
Thanks for the update.
The following _hack_ should fix the bootstrapping:
--- src/emacs.c.~2~ Thu Jun 17 08:31:05 1999
+++ src/emacs.c Thu Oct 28 16:03:22 1999
@@ -536,6 +536,7 @@
hook for a gmalloc of a potentially incompatible version. */
/* If we're using libmcheck, the hooks have already been initialized, */
/* don't touch them. -slb */
+ malloc (4);
__malloc_hook = NULL;
__realloc_hook = NULL;
__free_hook = NULL;
With your hack applied, my XEmacs builds and runs. If we intend to
apply it (which we should do if glibc doesn't get fixed soon), it
should be wrapped in appropriate #ifdef on the buggy glibc version,
with an accompanying comment on why it's there, to be phased out as
soon as glibc is fixed.