Patch-ID# 101391-02 Keywords: SNA p2p appc strip startp2p state abend zombie defunct accept Synopsis: SunLink SNA P2P 8.0: Jumbo patch Date: May/04/94 Solaris Release: 2.1, 2.2, 2.3 SunOS Release: 5.1, 5.2, 5.3 Unbundled Product: SunLink SNA P2P Unbundled Release: 8.0 Relevant Architectures: sparc BugId's fixed with this patch: 1152835 1154016 1158264 1162043 1162844 Changes incorporated in this version: 1152835 1154016 1158264 1162043 1162844 Patches accumulated and obsoleted by this patch: Patches which conflict with this patch: Patches required with this patch: Obsoleted by: Files included with this patch: SUNWconn/snap2p/p2p_etc/bin/appc SUNWconn/snap2p/p2p_etc/bin/startp2p SUNWconn/snap2p/p2p_lib/lib/libcpic.a SUNWconn/snap2p/p2p_lib/lib/libcpic_db.a SUNWconn/snap2p/p2p_etc/bin/APING/aping SUNWconn/snap2p/p2p_etc/bin/APING/apingd SUNWconn/snap2p/p2p_etc/bin/AREXEC/arexec SUNWconn/snap2p/p2p_etc/bin/AREXEC/arexecd SUNWconn/snap2p/p2p_etc/bin/ATELL/atell SUNWconn/snap2p/p2p_etc/bin/ATELL/atelld SUNWconn/snap2p/p2p_etc/src/tp_parent.c Problem Description: (Rev 01) SUNWsnp2p package File tp_parent.c was revised to close the gateway file descriptor after the fork/exec of the child TP process. Changed snap2p/arexec/Makefile to strip executable modules. Changed snap2p/atell/Makefile to strip executable modules. Changed snap2p/snalu62_tp/startp2p.sh script to increase sleep time from 5 to 8 seconds. SUNWrup2p package Changed snap2p/aping/Makefile to strip executable modules. Corrected dlc_name in L_GETTUNE trace message. Changed appc version to 8.0.1 for log file. (Rev 02) 1152835: TP gets STATE_CHECK_BAD_STATE return code When generating an "allocate", the security fields are copied to the "rcb" only if present. CPIC will check for UNSUCESSFUL returned from verb appc_test(), and will not generate an error condition. 1154016: TP gets DEALLOCATE_ABEND return code In cpic_lib.c, cmrcv() was calling [mc_]receive_immediate() when it should have been calling [mc_]receive_immediate_proc(). 1158264: TP forked by p2p becomes a zombie (defunct) SNAp2p creates a transaction program (TP) as a child process when it receives an incoming allocate. When the TP terminates, SunOS turns the child process into a zombie until the parent process (appc) issues a waitpid() system call to retrieve the child's termination status. But snap2p does not really care about the termination status. So the fix was to issue a signal() system call to set the disposition of the SIGCHLD signal to be ignored. This tells SunOS to not create the zombies. 1162043: appc does not recognize TP name with trailing blanks in attach When appc tries to match the TP name in an Attach, it does not recognize the trailing blanks. In the IBM world, it's a common practice to pad an EBCDIC string with blanks to 8 characters. 1162844: appc sends negative response when tp_accept issued appc uses waitpid() to check if the child process it just forked is up and running. Since there are multiple reasons waitpid() could return a non-zero value, appc should check the status of the child process, and should only send a negative response to the host if the status indicates the child has died. Patch Installation Instructions: -------------------------------- Generic 'installpatch' and 'backoutpatch' scripts are provided within each patch package with instructions appended to this section. Other specific or unique installation instructions may also be necessary and should be described below. Special Install Instructions: ----------------------------- After installation of this patch, all APPC application programs based upon the tp_parent.c source module should be updated with the new module, compiled and linked. All applications using CPI-C must be re-linked with the new CPI-C library. See also the following patches: 101407: Only if using Solaris 2.3 and SDLC over ZSH serial ports. 101410: Only if using Solaris 2.3 - snacommd patch. 101263: Only if using Solaris 2.1 or 2.2 and LLC2. The SUNWllc2a patches should be installed from this X.25 Jumbo patch. 101272: Only if using Solaris 2.3 and LLC2. The SUNWllc2a patches should be installed from this X.25 Jumbo patch. 101357: Only if using TRI/S version 3.0. Instructions to install patch using "installpatch" -------------------------------------------------- 1. Become super-user. 2. Apply the patch by typing:
.
See /tmp/log. for reason for failure.
Explanation and recommended action: The installation of one of
patch packages failed. Any previously installed packages
in the patch should have been removed. See the log file
for the reason for failure. Correct the problem and
re-apply the patch.
Patch Installation Messages:
---------------------------
Note: the messages listed below are not necessarily considered errors
as indicated in the explanations given. These messages are, however,
recorded in the patch installation log for diagnostic reference.
Message:
Package not patched:
PKG=SUNxxxx
Original package not installed
Explanation: One of the components of the patch would have patched a
package that is not installed on your system. This is not
necessarily an error. A Patch may fix a related bug for several
packages. Example: suppose a patch fixes a bug in both the
online-backup and fddi packages. If you had online-backup installed
but didn't have fddi installed, you would get the message
Package not patched:
PKG=SUNWbf
Original package not installed
This message only indicates an error if you thought the package
was installed on your system. If this is the case, take the
necessary action to install the package, backout the patch (if
it installed other packages) and re-install the patch.
Message:
Package not patched:
PKG=SUNxxx
ARCH=xxxxxxx
VERSION=xxxxxxx
Architecture mismatch
Explanation: One of the components of the patch would have patched a
package for an architecture different from your system. This is not
necessarily an error. Any patch to one of the architecture specific
packages may contain one element for each of the possible
architectures. For example, Assume you are running on a sun4m. If
you were to install a patch to package SUNWcar, you would see the
following (or similar) messages:
Package not patched:
PKG=SUNWcar
ARCH=sparc.sun4c
VERSION=11.5.0,REV=2.0.18
Architecture mismatch
Package not patched:
PKG=SUNWcar
ARCH=sparc.sun4d
VERSION=11.5.0,REV=2.0.18
Architecture mismatch
Package not patched:
PKG=SUNWcar
ARCH=sparc.sun4e
VERSION=11.5.0,REV=2.0.18
Architecture mismatch
Package not patched:
PKG=SUNWcar
ARCH=sparc.sun4
VERSION=11.5.0,REV=2.0.18
Architecture mismatch
The only time these messages indicate an error condition
is if installpatch does not correctly recognize your architecture.
Message:
Package not patched:
PKG=SUNxxxx
ARCH=xxxx
VERSION=xxxxxxx
Version mismatch
Explanation: The version of software to which the patch is applied is
not installed on your system. For example, if you were running Solaris
5.3, and you tried to install a patch against Solaris 5.2, you would
see the following (or similar) message:
Package not patched:
PKG=SUNWcsu
ARCH=sparc
VERSION=10.0.2
Version mismatch
This message does not necessarily indicate an error. If
the version mismatch was for a package you needed patched, either
get the correct patch version or install the correct package version.
Then backout the patch (if necessary) and re-apply.
Patch Backout Errors:
---------------------
Error message:
Patch has not been successfully applied to this system.
Explanation and recommended action: The user has attempted to back
out a patch that was never applied to this system. It is
possible that the patch was applied, but that the patch
directory /var/sadm/patch/ was deleted somehow.
If this is the case, the patch cannot be backed out. The
user may have to restore the original files from the
initial installation CD.
Error message:
This patch was obsoleted by patch $1.
Patches must be backed out in the order in
which they were installed. Patch backout aborted.
Explanation and recommended action: The obsoleted contents of an
older patch rev that apparently still exists under /var/sadm/patch
should never be restored out of sequence. This could undermine
the integrity of the more current patch rev installed and the
restoration of the files it has saved.
Error message:
Patch was installed without backing up the original
files. It cannot be backed out.
Explanation and recommended action: Either the -d option of
installpatch was set when the patch was applied, or the save
area of the patch was deleted to regain space. As a result, the
original files are not saved and backoutpatch cannot be used. The
original files can only be recovered from the original
installation CD.
Error message:
pkgrm of package failed return code .
See /var/sadm/patch//log for reason for failure.
Explanation and recommended action: The removal of one of
patch packages failed. See the log file for the reason for
failure. Correct the problem and run the backout script again.
Error message:
Restore of old files failed.
Explanation and recommended action: The backout script uses the
cpio command to restore the previous versions of the files
that were patched. The output of the cpio command should
have preceded this message. The user should take the
appropriate action to correct the cpio failure.
KNOWN PROBLEMS:
On client server machines the patch package is NOT applied
to existing clients or to the client root template space.
Therefore, when appropriate, ALL CLIENT MACHINES WILL NEED
THE PATCH APPLIED DIRECTLY USING THIS SAME INSTALLPATCH
METHOD ON THE CLIENT. See instructions above for
applying patches to a client.
A bug affecting a package utility (eg. pkgadd, pkgrm, pkgchk)
could affect the reliability of installpatch or backoutpatch
which uses package utilities to install and backout the patch
package. It is recommended that any patch that fixes package
utility problems be reviewed and, if necessary, applied before
other patches are applied. Such existing patches are:
100901 Solaris 2.1
101122 Solaris 2.2
101331 Solaris 2.3
SEE ALSO
pkgadd, pkgchk, pkgrm, pkginfo, showrev