From xemacs-m  Mon Jan 27 00:33:55 1997
Received: from UCSD.EDU (mailbox2.ucsd.edu [132.239.1.54])
          by xemacs.org (8.8.4/8.8.4) with ESMTP
	  id AAA14411 for <xemacs-beta@xemacs.org>; Mon, 27 Jan 1997 00:33:54 -0600 (CST)
Received: from sdnp5.ucsd.edu (sdnp5.ucsd.edu [132.239.79.10]) by UCSD.EDU (8.8.3/8.6.9) with SMTP id WAA10028 for <xemacs-beta@xemacs.org>; Sun, 26 Jan 1997 22:33:55 -0800 (PST)
Received: by sdnp5.ucsd.edu (SMI-8.6/SMI-SVR4)
	id WAA26883; Sun, 26 Jan 1997 22:36:52 -0800
Sender: dmoore@sdnp5.ucsd.edu
To: xemacs-beta@xemacs.org
Subject: Re: fix for temacs crash on linux libc 5.4.20
References: <hhraj7yalf.fsf@dres.elam.org> <m23evneixz.fsf@altair.xemacs.org>
X-Face: "oX;zS#-JU$-,WKSzG.1gGE]x^cIg!hW.dq>.f6pzS^A+(k!T|M:}5{_%>Io<>L&{hO7W4cicOQ|>/lZ1G(m%7iaCf,6Qgk0%%Bz7b2-W3jd0m_UG\Y;?]}4s0O-U)uox>P3JN)9cm]O\@,vy2e{`3pb!"pqmRy3peB90*2L
From: David Moore <dmoore@UCSD.EDU>
Date: 26 Jan 1997 22:36:51 -0800
In-Reply-To: Steven L Baur's message of 26 Jan 1997 22:22:16 -0800
Message-ID: <rvwwsz7hfg.fsf@sdnp5.ucsd.edu>
Lines: 28
X-Mailer: Red Gnus v0.80/XEmacs 19.15

Steven L Baur <steve@miranova.com> writes:

> James LewisMoss writes:
> 
> > Seems mallopt in libc 5.4.20 sets __malloc_initialized to 1 now so
> > that the gmalloc in xemacs doesn't get initialized.   Here is a short
> > patch that fixed that on my system.
> 
> Will someone please try this out on a non-Linux box to see if breaks
> anything?

	No other file in the xemacs dist depends on this variable, so
making it file local should be fine everywhere.

	The question is why mallopt is setting it to 1, I suspect this
is because the gmalloc currently provided with xemacs is getting old.
And mallopt is calling the new __malloc_initialize() routine.  If it is,
and someone else is calling mallopt, then there is probably other
potential for problems since the datastructures that mallopt is
manipulating won't look as it expects.

	Why is mallopt being called?

-- 
David Moore <dmoore@ucsd.edu>       | Computer Systems Lab      __o
UCSD Dept. Computer Science - 0114  | Work: (619) 534-8604    _ \<,_
La Jolla, CA 92093-0114             | Fax:  (619) 534-1445   (_)/ (_)
<URL:http://oj.egbt.org/dmoore/>    | In a cloud bones of steel.

