Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbosgd!gatech!seismo!brl-sem!ron From: ron@brl-sem.ARPA (Ron Natalie ) Newsgroups: net.arch Subject: Re: PDP-11 "red and green" stack violation Message-ID: <164@brl-sem.ARPA> Date: Sun, 20-Apr-86 23:00:47 EST Article-I.D.: brl-sem.164 Posted: Sun Apr 20 23:00:47 1986 Date-Received: Thu, 24-Apr-86 05:26:47 EST References: <192@atari.UUcp> Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 19 > What is a "red and green" stack violation? I've heard references to this > over the years, but no one has given me a satisfying explanation. > Does it exist only on obscure members of the PDP-11 family, or is it > a common, universal condition to which DEC has assigned a cute name? > Actually it is red and yellow stack violation. It isn't obscure PDP-11's just the big ones (45's and 70's). You'd get a warning trap when the kernel stack went below one address and a red stack when it went beyond a further limit. We installed code in our UNIX to process these traps. The problem is however, that you never see YELLOW STACK violations. The only time the stack even gets close to being out of range is when it gets loaded with garbage and that gets you a RED STACK fault immediately. This however was very useful in dealing with test versions of the operating system and flakey hardware, just one more consistancy check that shows up as something solid rather than looping or wierd trapping (you can't really do much in UNIX once the stack goes, we just halt with a distinctive pattern in the console lights, you know back when machines had lights). -Ron