delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/05/15/12:23:02

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Date: Wed, 15 May 2002 19:21:32 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: lauras AT softhome DOT net
Message-Id: <3028-Wed15May2002192132+0300-eliz@is.elta.co.il>
X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com
In-reply-to: <2225079923.20020515154129@softhome.net> (message from Laurynas
Biveinis on Wed, 15 May 2002 15:41:29 +0100)
Subject: Re: emacs under w2k
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020512080610 DOT 329D-100000 AT is>
<1997943472 DOT 20020514191357 AT softhome DOT net>
<6480-Tue14May2002211843+0300-eliz AT is DOT elta DOT co DOT il>
<18721621770 DOT 20020514230156 AT softhome DOT net>
<2225079923 DOT 20020515154129 AT softhome DOT net>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Wed, 15 May 2002 15:41:29 +0100
> From: Laurynas Biveinis <lauras AT softhome DOT net>
> 
> Well I've hit something interesting - it aborts in malloc() after
> all...

As more or less expected, sigh...

> Any hints are welcome and stay tuned...

Here's a LARGE hint: Emacs doesn't use our malloc at all.  It uses its
own implementation of a relocatable allocator (see gmalloc.c and
ralloc.c), whose only interface to the DJGPP library is via sbrk.

So I think the next thing to find out is whether it explodes inside
sbrk (which would mean it's our fault) or in the gmalloc/ralloc code.

If the latter, I'd try to look for large positive values being
interpreted as negative numbers.  gmalloc is notorious for mixing
signed and unsigned variables in ingenious ways.

Btw, Charles will probably ask this at some point, so I'll answer
proactively: Emacs sets the Unixy sbrk bit in _crt0_startup_flags.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019