🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.v7
Article #127

Stack growth bug on non-separate I/D machines

#127
From: Guy Harris
Date: Sat, 06 Aug 1983 08:06
28 lines
1371 bytes
The following was originally posted by:

	Dale Mosby, Rand Dow:  rand.orstcs@RAND-RELAY

as a bug in 2.8BSD, but the bug comes from V7 (and has been fixed
in System III).

When the stack is expanded, routine `backup' (file mch.s)
is executed to take care of instruction restart.  A flag
called `fflg' is incremented when the instruction is a
floating point instruction.  Unfortunately this flag is NEVER
cleared so subsequent stack expands may not be executed correctly.
This remains like that until the system is rebooted.  The single
instruction fix follows:  file mch.s (or mch.c)

	.
	.
/* hard part
 * simulate the ssr2 register missing on 11/40
 */
backup:
	clr	r2		/ backup register ssr1
	mov	$1,bflg		/ clrs jflg
	clrb	fflg		/ INSERTED INSTRUCTION ****
	mov	ssr+4,r0
	jsr	pc,fetch
	.
	.
Technical Details
Message-ID: <963@rlgvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!decvax!harpo!seismo!rlgvax!guy
References: <1449@hp-pcd.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1a 7/7/83; site rlgvax.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!decvax!harpo!seismo!rlgvax!guy
From: guy@rlgvax.UUCP (Guy Harris)
Newsgroups: net.bugs.v7
Subject: Stack growth bug on non-separate I/D machines
Message-ID: <963@rlgvax.UUCP>
Date: Sat, 6-Aug-83 04:06:04 EDT
Article-I.D.: rlgvax.963
Posted: Sat Aug  6 04:06:04 1983
Date-Received: Sat, 6-Aug-83 23:06:18 EDT
References: <1449@hp-pcd.UUCP>
Organization: CCI Office Systems Group, Reston, VA
Lines: 28