Awatmath.1301
net.bugs.4bsd
utzoo!decvax!watmath!arwhite
Wed Dec 16 14:42:37 1981
Multiplexor bugs
This bug causes a gp to be treated as a cp and a crash may result if you do
a NPGRP or CSIG in error on a group rather than channel (or as I found it;
by passing -1 as the channel number!)
-------mx1.c---------
417c417
c_flags&ISGRP) {
---
>                       if (cp==NULL) {
434c434
c_flags&ISGRP) {
---
>               if (cp==NULL) {
If you have an old multiplexor inode sitting around from before a real crash,
then the return of the null group[d] value will be carefully checked in mxopen
which will return - unfortunately not having set u.u_error - thus the channel
is actually returned as opened, but no tables have been set up!
SYMPTOMS:  System crashes.  On the way back up there is an attempt to preserve
editor files - which invokes mail to notify you it has done so.  Mail trys
to open /dev/mail to send you notice.  comsat is not yet up; /dev/mail is from
before the crash; and the system crashes in the close after successfully openingit
-------mx2.c---------
45c45
= NGROUPS || groups[d] == NULL) {
---
>       if (d >= NGROUPS) {

-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <[email protected]>
of http://communication.ucsd.edu/A-News/


This Usenet Oldnews Archive
article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.