🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99535

Re: My Emacs core dumps in SunOS 4.1

#99535
From: Frank P. Bresz
Date: Mon, 13 Aug 1990 15:17
57 lines
2364 bytes
	OK 1 more time.
	
	This is GNU-Emacs.

	This is SunOS4.1

	This is GNU-Emacs on SunOS4.1

	In config.h add :
	#define SYSTEM_MALLOC

	Any Questions.
-------------------------------------------------
P.S.  1 other solution.

>From: eirik@ELF.TN.CORNELL.EDU
>Subject: SunOS 4.1, malloc, and localtime
>Date: 8 May 90 11:21:46 GMT

>With the enclosed patch, it is possible to build a working emacs under
>SunOS 4.1 using malloc.c from the emacs sources.  Just put this line
>into config.h:

#define SUNOS_LOCALTIME_BUG

>A static function called by tzsetwall clears the byte just past an
>eight byte region it mallocs.  Without this patch, that unsociable act
>corrupts GNU malloc's memory pool.


*** 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;


					Frank P. Bresz }*{
					ITTC Network Administrator
+--------------------+
|fbresz@ittc.wec.com |  My opinions are my own, I'm not paid
|uunet!ittc!fbresz   |  enough to make an official statement  
|(412)733-6749       |  +-----------------------------------+
|Fax: (412)733-6444  |  |      THIS SPACE FOR SALE!!!       |
+--------------------+  +-----------------------------------+
Technical Details
Message-ID: <9008131517.AA01399@ittc>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!UUNET.UU.NET!ittc!fpb

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,1e32dd2632561271
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-08-13 08:17:21 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!UUNET.UU.NET!ittc!fpb
From: ittc!fpb@UUNET.UU.NET (Frank P. Bresz)
Newsgroups: gnu.emacs.bug
Subject: Re: My Emacs core dumps in SunOS 4.1
Message-ID: <9008131517.AA01399@ittc>
Date: 13 Aug 90 15:17:21 GMT
Sender: neel@tut.cis.ohio-state.edu
Reply-To: ittc!fbresz@uunet.uu.net
Distribution: gnu
Organization: Westinghouse, ITTC, Pgh, PA.
Lines: 57
Posted: Mon Aug 13 16:17:21 1990