Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!bellcore!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!mstar!mstar.morningstar.com!bob From: bob@MorningStar.Com (Bob Sutterfield) Newsgroups: comp.emacs Subject: Re: Problems installing emacs on Sun3 Message-ID: Date: 3 Dec 90 15:43:09 GMT References: <10508@helios.TAMU.EDU> <1990Dec2.055549.3445@Latour.Sandelman.Ocug.On.Ca> Sender: usenet@MorningStar.COM (USENET Administrator) Reply-To: bob@MorningStar.Com (Bob Sutterfield) Distribution: usa Organization: Morning Star Technologies Lines: 51 In-Reply-To: mcr@Latour.Sandelman.Ocug.On.Ca's message of 2 Dec 90 05:55:49 GMT In article <1990Dec2.055549.3445@Latour.Sandelman.Ocug.On.Ca> mcr@Latour.Sandelman.Ocug.On.Ca (Michael Richardson) writes: IF there is a patch I would ask that it be posted, or some method of retrieving it be posted. I suspect that there is an appropriate place in the gnu.* hierarchy. I'm not sure, my site only start receiving it. Then you missed it when it came around on gnu.emacs.help in the FAQ document: From: jbw@bucsf.bu.edu (Joe Wells) Newsgroups: gnu.emacs.help Subject: GNU Emacs Frequently Asked Questions with Answers (part 1 of 2) Date: 19 Oct 90 01:38:21 GMT Organization: Boston University Computer Science Department 44. Why does Emacs crash under SunOS 4.1? Under SunOS 4.1, Emacs dies with this message: Fatal error (6).Abort There is a bug in the "localtime" routine supplied with SunOS 4.1. A private function called by tzsetwall zeroes the byte just past an eight byte region it mallocs. This corrupts GNU malloc's memory pool. Put "#define SYSTEM_MALLOC" in src/config.h. Or, for the purists: Put "#define SUNOS_LOCALTIME_BUG" in src/config.h and apply the following patch to src/malloc.c. (Patch by Eirik Fuller .) >*** malloc.c~ Fri Apr 7 22:12:10 1989 >--- malloc.c Tue May 8 07:07:22 1990 >*************** >*** 476,482 **** >--- 476,487 ---- > multiple of 8, then figure out which nestf[] area to use. > Both the beginning of the header and the beginning of the > block should be on an eight byte boundary. */ >+ #ifdef SUNOS_LOCALTIME_BUG >+ /* SunOS 4.1 localtime scribbles on the ninth byte. */ >+ nbytes = (n + ((sizeof *p + 15) & ~15) + EXTRA + 15) & ~15; >+ #else > nbytes = (n + ((sizeof *p + 7) & ~7) + EXTRA + 7) & ~7; >+ #endif > { > register unsigned int shiftr = (nbytes - 1) >> 2; > Brought to you by Super Global Mega Corp .com