🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99700

SunOS 4.1 emacs fatal error

#99700
From: Hans Lachman
Date: Tue, 22 May 1990 22:42
89 lines
3777 bytes
I am sending this message to bug-gnu-emacs@prep.ai.mit.edu
in order to report a problem with emacs on SPARC/SunOS 4.1.

I compiled emacs 18.55 on a SPARCstation 1 running SunOS 4.1.
I then tried to run it, and got the following:

	% emacs
	Fatal error (6).Abort (core dumped)
	%

(If the cursor is not already at the bottom of the screen,
it jumps to the bottom before printing "Fatal error".)

Debugging with dbxtool reveals that it is hitting an abort()
call in malloc.c, near the comment "/* Check for free block
clobbered */".  Two dbx sessions appear below.  I have seen
signal ABRT only on SunOS 4.1, and signal IOT only on SunOS
4.0.3.

When I build emacs under SunOS 4.1 on either a SPARCstation 1
or a SPARC 370 server, it always fails on these systems:
	SPARCstation 1	/ SunOS 4.0.3
	SPARCstation 1	/ SunOS 4.1
	Sun 4/110	/ SunOS 4.0.3
	Sun 4/110	/ SunOS 4.1
	Sun 4/260	/ SunOS 4.0.3
	Sun 4/280	/ SunOS 4.1

but it always runs OK on:
	Sun 4/260	/ SunOS 4.1
	SPARC 370 server/ SunOS 4.1

When I build emacs under SunOS 4.0.3 on a SPARCstation 1, it
runs just fine in all of the above environments.

I have only tested these programs on one or two machines of
each of the above machine types, so I don't know whether the
above results always apply.  There are two machines that run
the same kernel; emacs fails on one and runs on the other.
The one it fails on actually has more memory "available" (pstat -s)
than the other (so that trashes my memory-size hypothesis).

I am not using "HAVE_SUN_WINDOWS", ".emacs", or any kind of
special options.  I simply unpack the tar file, edit build-install
to set "EMACS" and "BIN", edit src/config.h to include
"s-sunos4.h" and "m-sparc.h", then I /bin/csh -fx build-install.
Everything works fine until I try to run emacs.

Please advise me on how to get emacs to compile and run
without this error.  Thanks,

	Hans Lachman <lachman@arisia.xerox.com>
------------------------------------------------------------------------------
(dbx) debug src/emacs-18.55.1
Reading symbolic information...
Read 29242 symbols
(dbx) run
Running: src/emacs-18.55.1 
signal ABRT (abort) in kill at 0x5fa98
kill+8: bgeu    kill+0x18
(dbx) where
kill() at 0x5fa98
abort() at 0x63664
malloc(n = 1), line 515 in "src/malloc.c"
getpwent() at 0x63154
getpwent() at 0x62554
getpwuid() at 0x61cd4
init_editfns(), line 69 in "src/editfns.c"
main(argc = 1, argv = 0xf7fffcac, envp = 0xf7fffcb4), line 361 in "src/emacs.c"
(dbx) 
------------------------------------------------------------------------------
(dbx) debug src/emacs-18.55.1
Reading symbolic information...
Read 29242 symbols
(dbx) run
Running: src/emacs-18.55.1 
signal IOT (IOT instruction) in kill at 0x5fa98
kill+8: bgeu    kill+0x18
(dbx) where
kill() at 0x5fa98
abort() at 0x63664
malloc(n = 1), line 515 in "malloc.c"
getpwent() at 0x63154
getpwent() at 0x62554
getpwuid() at 0x61cd4
init_editfns(), line 69 in "editfns.c"
main(argc = 1, argv = 0xf7fffd24, envp = 0xf7fffd2c), line 361 in "emacs.c"
(dbx) 
------------------------------------------------------------------------------
Technical Details
Message-ID: <9005222242.AA00763@arisia.Xerox.COM>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!apple!usc!cs.utexas.edu!tut.cis.ohio-state.edu!ARISIA.XEROX.COM!lachman

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,350a5d3f032ef870,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-05-22 17:59:43 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!apple!usc!cs.utexas.edu!tut.cis.ohio-state.edu!ARISIA.XEROX.COM!lachman
From: lachman@ARISIA.XEROX.COM (Hans Lachman)
Newsgroups: gnu.emacs.bug
Subject: SunOS 4.1 emacs fatal error
Message-ID: <9005222242.AA00763@arisia.Xerox.COM>
Date: 22 May 90 22:42:01 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 89
Posted: Tue May 22 23:42:01 1990