Thread View: comp.bugs.2bsd
5 messages
5 total messages
Started by Gregory M. Paris
Fri, 08 Jan 1988 03:30
select() problems with 2.10 BSD
Author: Gregory M. Paris
Date: Fri, 08 Jan 1988 03:30
Date: Fri, 08 Jan 1988 03:30
14 lines
1178 bytes
1178 bytes
Is anybody else having problems with select on 2.10 BSD? We're running it
on an 11/44 with an Interlan ethernet board, and our inetd won't work. I
followed the problem back to where inetd does a select for read on the open
sockets to see if any are ready for an accept. Select reports that all are
ready for reading, yet none are. This causes inetd to hang in accept
forever. I haven't had the patience to track it through the kernel yet.
--
Greg Paris gmp@rayssd.ray.com {cbosgd,decuac,gatech,ihnp4,uiucdcs}!rayssd!gmp
Is our geological destiny to be a thin black line in a cliff,
which will tell some future eye, "This was when man lived...
and died?"
Re: select() problems with 2.10 BSD
Author: Mike Ewan
Date: Mon, 11 Jan 1988 17:17
Date: Mon, 11 Jan 1988 17:17
24 lines
1666 bytes
1666 bytes
In article <1756@rayssd.RAY.COM> gmp@rayssd.RAY.COM (Gregory M. Paris) writes:
>
>Is anybody else having problems with select on 2.10 BSD? We're running it
>on an 11/44 with an Interlan ethernet board, and our inetd won't work. I
>followed the problem back to where inetd does a select for read on the open
>sockets to see if any are ready for an accept. Select reports that all are
>ready for reading, yet none are. This causes inetd to hang in accept
>forever. I haven't had the patience to track it through the kernel yet.
I am also having problems with an 11/44 and Interlan ethernet. Everything
seems to be going well until you do an ftp. You get connected then when
you start the xfer the kernal crashes. The kernal will crash on any net
access but at random periods. The ftp is more predictable.
I can ftp all day long to the loop device though. But the real net crashes
the kernal.
Any ideas anybody.
Mike.
--
Michael Ewan decvax----\
(503)627-6468 hplabs------\
sytek@tekgen.TEK.COM ihnp4-------->----!tektronix!tekgen!sytek
ucbvax------/
Re: select() problems with 2.10 BSD
Author: Casey Leedom
Date: Mon, 11 Jan 1988 17:54
Date: Mon, 11 Jan 1988 17:54
64 lines
2299 bytes
2299 bytes
In article <1756@rayssd.RAY.COM> gmp@rayssd.RAY.COM (Gregory M. Paris) writes:
> Is anybody else having problems with select on 2.10 BSD? ... Select
> reports [in inetd] that all are ready for reading, yet none are. This
> causes inetd to hang in accept forever.
Keith posted a fix to selscan which may be causing your problem. Since
the fix was so short I'll repeat it here. (Keith, Do we have an archive site
for 2.10BSD bug postings that people can get to anonymously?)
Casey
This is 2.10BSD bug posting V1/8:
-----
Subject: selscan routine is wrong
Index: sys/sys_generic.c 2.10BSD
Description:
The selscan routine works erratically, at best, if UCB_NET
is defined.
Repeat-By:
Use the select(2) call.
Fix:
Apply the following patch to sys_generic.c.
*** sys_generic.c.old Sat Oct 17 15:56:15 1987
--- sys_generic.c Sat Oct 17 16:14:29 1987
***************
*** 326,338 ****
int flag;
struct file *fp;
int n = 0;
! int (*selroutine)();
!
#ifdef UCB_NET
! int soo_select(), ino_select();
! selroutine = (fp->f_type == DTYPE_SOCKET) ? soo_select : ino_select;
#else
- int ino_select();
selroutine = ino_select;
#endif
for (which = 0; which < 3; which++) {
--- 326,335 ----
int flag;
struct file *fp;
int n = 0;
! int (*selroutine)(), ino_select();
#ifdef UCB_NET
! int soo_select();
#else
selroutine = ino_select;
#endif
for (which = 0; which < 3; which++) {
***************
*** 356,361 ****
--- 353,361 ----
u.u_error = EBADF;
break;
}
+ #ifdef UCB_NET
+ selroutine = (fp->f_type == DTYPE_SOCKET) ? soo_select : ino_select;
+ #endif
if ((*selroutine)(fp, flag)) {
FD_SET(i + j, &obits[which]);
n++;
Re: select() problems with 2.10 BSD
Author: Casey Leedom
Date: Mon, 11 Jan 1988 17:58
Date: Mon, 11 Jan 1988 17:58
64 lines
2299 bytes
2299 bytes
In article <1756@rayssd.RAY.COM> gmp@rayssd.RAY.COM (Gregory M. Paris) writes:
> Is anybody else having problems with select on 2.10 BSD? ... Select
> reports [in inetd] that all are ready for reading, yet none are. This
> causes inetd to hang in accept forever.
Keith posted a fix to selscan which may be causing your problem. Since
the fix was so short I'll repeat it here. (Keith, Do we have an archive site
for 2.10BSD bug postings that people can get to anonymously?)
Casey
This is 2.10BSD bug posting V1/8:
-----
Subject: selscan routine is wrong
Index: sys/sys_generic.c 2.10BSD
Description:
The selscan routine works erratically, at best, if UCB_NET
is defined.
Repeat-By:
Use the select(2) call.
Fix:
Apply the following patch to sys_generic.c.
*** sys_generic.c.old Sat Oct 17 15:56:15 1987
--- sys_generic.c Sat Oct 17 16:14:29 1987
***************
*** 326,338 ****
int flag;
struct file *fp;
int n = 0;
! int (*selroutine)();
!
#ifdef UCB_NET
! int soo_select(), ino_select();
! selroutine = (fp->f_type == DTYPE_SOCKET) ? soo_select : ino_select;
#else
- int ino_select();
selroutine = ino_select;
#endif
for (which = 0; which < 3; which++) {
--- 326,335 ----
int flag;
struct file *fp;
int n = 0;
! int (*selroutine)(), ino_select();
#ifdef UCB_NET
! int soo_select();
#else
selroutine = ino_select;
#endif
for (which = 0; which < 3; which++) {
***************
*** 356,361 ****
--- 353,361 ----
u.u_error = EBADF;
break;
}
+ #ifdef UCB_NET
+ selroutine = (fp->f_type == DTYPE_SOCKET) ? soo_select : ino_select;
+ #endif
if ((*selroutine)(fp, flag)) {
FD_SET(i + j, &obits[which]);
n++;
Re: select() problems with 2.10 BSD
Author: Mike Ewan
Date: Fri, 15 Jan 1988 00:05
Date: Fri, 15 Jan 1988 00:05
26 lines
1634 bytes
1634 bytes
In article <2261@tekgen.TEK.COM> sytek@tekgen.UUCP (Mike Ewan) writes:
>In article <1756@rayssd.RAY.COM> gmp@rayssd.RAY.COM (Gregory M. Paris) writes:
>>
>>Is anybody else having problems with select on 2.10 BSD? ...
>
>I am also having problems with an 11/44 and Interlan ethernet. Everything
>seems to be going well until you do an ftp. You get connected then when
>you start the xfer the kernal crashes. The kernal will crash on any net
>access but at random periods. The ftp is more predictable.
>
Ok. So I'm not having the same problem as Greg. I have installed the
bugfix though and here's the strange part. The networking works fine
from the 11/44 to one of our Tektronix workstations with Utek OS.
(Utek is 4.3bsd ported to the 68020 processor.) But if I try to access
our other 11/44 running Ultrix-11 (2.9 with networking) the kernal crashes.
Anybody have any ideas of what might be causing this.
Mike.
--
Michael Ewan decvax----\
(503)627-6468 hplabs------\
sytek@tekgen.TEK.COM ihnp4-------->----!tektronix!tekgen!sytek
ucbvax------/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads