Article View: gnu.emacs.bug
Article #99689Emacs crashing/malloc problem
From: Paul Reilly
Date: Thu, 17 May 1990 15:54
Date: Thu, 17 May 1990 15:54
28 lines
1563 bytes
1563 bytes
I have noticed many complaints of Emacs crashing, often related to the
use of the X menu package. The cause of this problem on AViiON
machines turned out to be a malloc/calloc incompatibility due to an
ANSI name-space feature which was recently added to DG/UX (Rev 4.20).
This problem may be plaguing other systems as well. Briefly,
allocations which use calloc will NOT call the Gnu alloc, but
subsequent calls to free will call the Gnu code likely resulting in an
abort. I fixed the problem by adding the following code to malloc.c:
GENERIC *
calloc(num, size)
unsigned num, size;
{
register char *mp;
if((mp = malloc(num *= size)) != NULL)
(void)memset(mp, 0, num);
return(mp);
}
Hope this helps.
--
Paul Reilly, Data General Corp. reilly@dg-rtp.dg.com
Research Triangle Park, North Carolina, 27709 ...mcnc!rti!dg-rtp!reilly
Hm: (919) 847-7294 Wk: (919) 248-6210
Technical Details
Message-ID:
<REILLY.90May17115418@wsmav22.rtp.dg.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!samsung!uakari.primate.wisc.edu!xanth!mcnc!rti!dg-rtp!dg-rtp!reillyShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,4ee82ca1356c56e5,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-05-17 10:38:24 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!samsung!uakari.primate.wisc.edu!xanth!mcnc!rti!dg-rtp!dg-rtp!reilly From: reilly@rtp.dg.com (Paul Reilly) Newsgroups: gnu.emacs.bug Subject: Emacs crashing/malloc problem Message-ID: <REILLY.90May17115418@wsmav22.rtp.dg.com> Date: 17 May 90 15:54:18 GMT Sender: usenet@dg-rtp.dg.com (Usenet Administration) Distribution: gnu Organization: Data General, RTP, NC Lines: 28 Posted: Thu May 17 16:54:18 1990