🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.2bsd
Article #287

CSS/Harvard 2.9BSD bug report

#287
From: Keith Bostic
Date: Mon, 03 Feb 1986 17:24
37 lines
1411 bytes
Subject: adb is broken
Index:	bin/adb 2.9BSD

Description:
	Adb only works on the kernel.
Repeat-By:
	Try to get an adb stack trace from any program.
Fix:
	Apply the following fixes, provided by Peter Staubach at
	the University of Oklahoma.

defs.h.wrong ----- defs.h.right
112c112
< #define UAR0    (&corhdr[509]) /* default address of r0 (u.u_ar0) */
---
> #define UAR0	(&corhdr[ctob(USIZE)/sizeof(POS) - 3])

pcs.c.wrong ----- pcs.c.right
22c22
< POS		corhdr[512];
---
> POS		corhdr[ctob(USIZE)/sizeof(POS)];
136d135
< 
setup.c.wrong ----- setup.c.right
39c38
< POS             corhdr[ctob(USIZE)];
---
> POS		corhdr[ctob(USIZE)/sizeof(POS)];	/* was just 512 */
179c178
< 			datmap.e2 = 0140000L + ctob(USIZE);
---
> 			datmap.e2 = 0140000L + stksiz;
242c241
< 			  if ((ar0>(POS *)0140000) & (ar0<(POS *)0142000)
---
> 			  if ((ar0>(POS *)0140000) & (ar0<(POS *)(0140000+ctob(USIZE)))
Technical Details
Message-ID: <1281@seismo.CSS.GOV>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!gatech!seismo!keith

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!gatech!seismo!keith
From: keith@seismo.CSS.GOV (Keith Bostic)
Newsgroups: net.bugs.2bsd
Subject: CSS/Harvard 2.9BSD bug report
Message-ID: <1281@seismo.CSS.GOV>
Date: Mon, 3-Feb-86 12:24:53 EST
Article-I.D.: seismo.1281
Posted: Mon Feb  3 12:24:53 1986
Date-Received: Wed, 5-Feb-86 01:27:00 EST
Organization: Center for Seismic Studies, Arlington, VA
Lines: 37
Keywords: adb fixes