[comp.sys.sun] Portmap fix is Bug Id 1025560

jhanley@hqsun1.oracle.com (John Hanley) (11/26/89)

In article <3221@brazos.Rice.edu> levine@dtg.nsc.com writes:
>X-Sun-Spots-Digest: Volume 8, Issue 204, message 8 of 18
>
>There is a known bug in the SunOs 4.0.3 portmapper that may be the source
>of your problems.  Sun does have a patched version available, but you have
>to ask for it.  Sorry, I can't find the reference number.

Here 'tis.  Go pester your local support people for a cart.  It would be
much simpler for all if they just posted these things to Sun Spots, but
they've got copyrights and such to protect....  I've been after our local
Personal Answer Line people to explain just what error the portmapper was
detecting, but for naught.  Works for us -- we haven't seen any
recurrences of the "YP is hosed & noone can log in!" symptom.

                                      --JH, Oracle unix systems administration

 Bug Id: 1025560
 Release summary: 4.0.3
 Fixed in releases: 4.1

 Problem description:

In certain circumstances, the portmapper may detect an error and exit
without notification.  All software which uses the portmapper will
subsequently fail.

 Fix description:

A new portmapper is available which corrects the error condition without
exiting.  Any other errors are now logged to /var/adm/messages.

 [Instructions elided for install'ing -m 755 /usr/etc/portmap.]

cs@kanawha.eng.sun.com (Carl Smith) (12/02/89)

The portmapper problem was caused by a SIGCHLD interrupting svc_run and
calling a signal handler which changed the value of errno (svc_run checks
for and ignores errno == EINTR, but believes other errors are genuine and
returns).  The patch saves and restores errno in the SIGCHLD handler.

			Carl