From xemacs-m  Fri Feb 28 09:10:10 1997
Received: from birdland.rhein-neckar.de (root@birdland.rhein-neckar.de [193.197.88.3])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id JAA06964
	for <xemacs-beta@xemacs.org>; Fri, 28 Feb 1997 09:10:08 -0600 (CST)
Received: from mips.pfalz.de (uucp@localhost) by birdland.rhein-neckar.de (8.8.5/8.8.3) with BSMTP id QAA21149; Fri, 28 Feb 1997 16:05:41 +0100 (MET)
Received: from cthulhu.pfalz.de by mips.pfalz.de with bsmtp
	(Smail3.1.29.1 #6) id m0w0T51-000CmsC; Fri, 28 Feb 97 15:14 CET
Received: from arthur.pfalz.de by cthulhu.pfalz.de
	via rsmtp with bsmtp
	id <m0w0QTb-000CGWC@cthulhu.pfalz.de>
	for <somasekh@ecn.purdue.edu>; Fri, 28 Feb 1997 12:27:47 +0100 (MET)
	(Smail-3.2 1996-Jul-4 #20 built 1996-Oct-4)
Received: by arthur.pfalz.de
	via sendmail with stdio
	id <m0w0QBk-0001nNC@arthur.pfalz.de>
	for xemacs-beta@xemacs.org; Fri, 28 Feb 1997 12:09:20 +0100 (CET)
	(Smail-3.2.0.91 1997-Jan-14 #7 built 1997-Feb-10)
Message-Id: <m0w0QBk-0001nNC@arthur.pfalz.de>
Date: Fri, 28 Feb 1997 12:09:20 +0100 (CET)
From: Andreas Jaeger <aj@arthur.pfalz.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: somasekh@ecn.purdue.edu
Cc: XEmacs-Beta Listserv <xemacs-beta@xemacs.org>
Subject: Re: xemacs-20.1-b3, linux 2.1.26, glibc-2.0
In-Reply-To: Dinesh Somasekhar's message of Fri, 28 February 1997 01:53:16 -0500
References: <199702280653.BAA10282@ppp-x8-33.ecn.purdue.edu>


>>>>> Dinesh Somasekhar writes:

 > Hi,
 >  20.1-b3 compiled after following edits

 >  src/s/linux.h added #define __LDBL_UNION__ 

 >  Had to define -D_GNU_SOURCE externally to compile floatfns.c
You might define it on top of the file before the inclusion of any
header files.

 >  xemacs crashes in regexp.c if compiled with --use-system-malloc. trace
 >  attached

That's not a problem of regexp.c. It's a problem of the interaction
between glibc's malloc and XEmacs. For the moment I advise not to use
--use-system-malloc with glibc!

The problems with glibc 2.0.1 (and also with libc5.4 on Linux) are:
- glibc-malloc uses mmap and this might give problems with some of the
  tagged pointers
- glibc-malloc's internal state isn't saved when dumping XEmacs

The second problem will be addressed in glibc 2.0.2+ and libc5.4.24+
(both use the same malloc implementation) with the use of a function
pair malloc_get_state/malloc_set_state.

The calls to this functions have to be added to emacs.c - and alloc.c
has also to be changed to solve the first problem.
Since at the moment neither glibc 2.0.2 nor libc5.4.24 with the
necessary changes are released, it's impossible to use XEmacs and
glibc with system-malloc for now.

I will provide a set of patches as soon as I'm convinced that the
patches are correct.

Andreas
-- 
 Andreas Jaeger   aj@arthur.pfalz.de    jaeger@informatik.uni-kl.de
  Altenwoogstr. 31      67655 Kaiserslautern, Germany
   Phone +49 631 3403051 Fax/Modem +49 631 3403052
    http://www.student.uni-kl.de/~ajaeger/

