[5073] in Athena Bugs

home help back first fref pref prev next nref lref last post

rt 6.4R: inetd will coredump on "unknown service"

daemon@ATHENA.MIT.EDU (Jaspan@Barry, MIT-Project Athena)
Mon Jun 4 22:13:32 1990

To: bugs@ATHENA.MIT.EDU
Date: Mon, 04 Jun 90 22:13:13 EDT
From: Jaspan@Barry, MIT-Project Athena <bjaspan@ATHENA.MIT.EDU>

System name:		steve-dallas
Type and version:	RTPC-ROMPC 6.4R
Display type:		apa16

What were you trying to do?

Run the inetd from uunet with switched/unswitched functionality added
by Marc and myself.  To test it, I just copied Athena's inetd.conf
over to CRL.

What's wrong:

Naturally, Athena's inetd contains many sevices that don't exist at
CRL.  inetd correctly sysloged messages saying "unknown service" but
immediately coredumped whenever any connection was made.  I just
happened to check Athena's inetd and, sure enough, it has the same problem.

What should have happened:

It shouldn't have coredumped.

The problem is that inetd doesn't remove the unknown service entries
from its linked list of services, causing a -1 to be passed to
FD_ISSET which results in a bus error.

The fix is simple.  On line 457, insert the line "sep->se_checked =
0".  Then all the right cleanup will be performed.

Barr3y

home help back first fref pref prev next nref lref last post