Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site seismo.CSS.GOV
Path: utzoo!watmath!clyde!bonnie!akgua!gatech!seismo!keith
From: keith@seismo.CSS.GOV (Keith Bostic)
Newsgroups: net.bugs.2bsd
Subject: CSS/Harvard 2.9BSD bug report #1
Message-ID: <205@seismo.CSS.GOV>
Date: Wed, 18-Sep-85 01:25:29 EDT
Article-I.D.: seismo.205
Posted: Wed Sep 18 01:25:29 1985
Date-Received: Thu, 19-Sep-85 05:28:22 EDT
Organization: Center for Seismic Studies, Arlington, VA
Lines: 43
Keywords: sys/sys1.c, mapin, KDSA5

Subject: 2.9 traps in exec
Index:	sys/sys1.c 2.9BSD

Description:
	The kernel panics with something akin to this in the stack.
		~panic
		~mapin
		~iupdat
		~iput
		~closef
		~setregs
		~exece
Repeat-By:
	It's different on every system, you find it when you raise
	MAXUSERS to the teens or above.
Fix:
	Apply the following diff to sys1.c.  The problem is that
	KDSA5 needs to be reset.

*** sys1.c.right	Tue Sep 17 14:16:07 1985
--- sys1.c.wrong	Mon Aug 19 23:59:28 1985
***************
*** 248,259
  	}
  	(void) suword((caddr_t) ap, 0);
  	(void) suword((caddr_t) (-NBPW), 0);
- 	if (bp) {
- 		mapout(bp);
- 		bp->b_flags |= B_AGE;
- 		brelse(bp);
- 		bp = 0;
- 	}
  	setregs();
  bad:
  	if (bp) {

--- 247,252 -----
  	}
  	(void) suword((caddr_t) ap, 0);
  	(void) suword((caddr_t) (-NBPW), 0);
  	setregs();
  bad:
  	if (bp) {