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" 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: <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 Precedence: bulk > Date: Wed, 15 May 2002 15:41:29 +0100 > From: Laurynas Biveinis > > 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.