🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #2074

Re: screen: Crashes the kernel!

#2074
From: Barton E. Schaefer
Date: Sun, 19 Feb 1989 21:14
28 lines
1850 bytes
In article <105@melba.oz>  writes:
}
} [I]f you exit from screen by exiting the shells in turn,
} rather than by using ^A^\, then there is a screen process left
} running and connected to the socket $HOME/.screen/`hostname`.`tty`.
} The next time you log in (I think it has to be straight away), you
} get a message saying there is a screen program running, use "screen
} -r" to reattach.  If you the do a screen -r, it hangs.  If you then
} attempt to kill the screen, using ^\, the kernel panics with a kernel
} mode bus error.

There is a bug in the code to handle "screen -r", that is, to reattach
to a previously detached screen process.  The crash results from an
ioctl(TIOCNOTTY) call on an invalid file descriptor.

I have communicated with the author (Oliver Laumann) about this, and he
has urged me to post my patch.  I will do so later today, when I have
a chance to extract the code specific to this bug from some other local
modifications I have made.

I have no explanation for the failure of screen to exit when the shells
are exited one by one, but the patch should take care of the panic.
Look for it soon.
-- 
Bart Schaefer       "Dogs are the animal byproducts in the wienie of life."
                                                                -- Garfield
CSNET / Internet                schaefer@cse.ogc.edu
UUCP                            ...{sun,tektronix,verdix}!ogccse!schaefer
Technical Details
Message-ID: <2004@ogccse.ogc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!husc6!ogccse!schaefer
References: <105@melba.oz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!husc6!ogccse!schaefer
From: schaefer@ogccse.ogc.edu (Barton E. Schaefer)
Newsgroups: comp.sources.bugs
Subject: Re: screen: Crashes the kernel!
Message-ID: <2004@ogccse.ogc.edu>
Date: 19 Feb 89 21:14:10 GMT
References: <105@melba.oz>
Reply-To: schaefer@ogccse.UUCP (Barton E. Schaefer)
Organization: Oregon Graduate Center, Beaverton, OR
Lines: 28