Patch Name: PHSS_19888 Patch Description: s700_800 10.20 PRM C.01.06 Cumulative Patch Creation Date: 99/09/15 Post Date: 99/09/22 Hardware Platforms - OS Releases: s700: 10.20 s800: 10.20 Products: PRM C.01.06 Filesets: Proc-Resrc-Mgr.PRM-RUN,C.01.06 Proc-Resrc-Mgr.PRM-MAN,C.01.06 PRM-Sw-Lib.PRM-LIB,C.01.06 Automatic Reboot?: No Status: General Release Critical: No (superseded patches were critical) PHSS_18787: ABORT This patch fixes a problem which can cause prm0d to abort with SIGBUS. Path Name: /hp-ux_patches/s700_800/10.X/PHSS_19888 Symptoms: PHSS_19888: 1) Incorrect messages in prm.cat message catalog. 2) Memory manager keeps processes suspended too long. 3) Memory manager 'exempt' file installed in wrong location. PHSS_19443: 1) memory manager daemon suspends processes which cannot handle receiving SIGSTOP and SIGCONT. 2) application manager does not recognize shell script processes when their argv[0] is the name of the shell instead of the shell script. PHSS_18787: 1) prmrun unable to spawn interactive jobs 2) prm0d dumps core and exits with SIGBUS. 3) online release notes are missing Defect Description: PHSS_19888: 1) for some messages, the prm.cat message catalog text is different than the builtin message text. prm.cat is used for PRM message text when the LANG environment variable is set. This patch includes a new prm.cat which matches the builtin messages. 2) when there are processes that the memory manager has suppressed and the memory pressure decreases so that paging no longer occurs, the memory manager would wait 60 seconds before releasing the processes. This delay has been decreased to 15 seconds. This delay prevents the memory manager from re-activiating processes them immediately having to suppress them again when memory pressure increases. The decreased delay achieves the same result without the additional waiting. 3) The default memory manager 'exempt' file is installed in the wrong location /opt/prm/bin/exempt. The correct location is /opt/prm/exempt. This patch installs the default exempt file in /opt/prm/exempt. PHSS_19443: 1) the rules that the memory manager daemon used to determine if a process was exempt from being suspended were not sufficient. The rules allowed children of non job control shell scripts (such as /bin/sh) to be suspended. This causes the shell to think that the child process exited. Also, some interactive programs, such as vi, do not behave correctly after being suspended and resumed by a process other than the parent shell. With this patch the following processes will be exempt from suspension: - processes with locked memory - assorted prm commands - interactive shell processes - children of non job control shell scripts - programs appearing in /opt/prm/exempt * by default, this file contains /usr/bin/vi 2) The HP-UX 10.20 kernel patches PHKL_17033 (s700) and PHKL_17034 (s800) introduce new behavior when shell scripts are exec'd. Under 11.00, the shell script process argv[0] is the name of the script and the rest of the argv[] elements are the arguments to the script. Under the next version of 11.x, argv[0] will be the name of the shell executing the script and argv[1] will be the name of the script. Previous versions of the application manager can only recognize shell script processes if their argv[0] is the script name. The application manager included in this patch recognizes shell scripts if either their argv[0] or argv[1] is the script name. Thus supporting the old and new shell script exec behavior. PHSS_18787: 1) prmrun spawns the desired job and exits, rather than becoming the job itself. This behavior prevents running interactive commands, such as shells, via prmrun. This patch provides a new prmrun which does run the desired job in the background. The workaround is to use prmmove to assign an interactive process to a PRM group. 2) prm0d (memory daemon) will dump core and exit with SIGBUS when there is paging activity on the system and prm0d is suppressing processes. 3) The PRM C.01.06 release notes are not online. This patch installs PostScript and plain text versions of the release notes in /opt/prm/newconfig/RelNotes. SR: 0000000000 Patch Files: /opt/prm/bin/prmrun /opt/prm/bin/prm0d /opt/prm/bin/prm1d /opt/prm/exempt /opt/prm/man/man1.Z/prm.1 /opt/prm/newconfig/RelNotes/PRM.C.01.06.ps /opt/prm/newconfig/RelNotes/PRM.C.01.06.txt /usr/lib/nls/msg/C/prm.cat what(1) Output: /opt/prm/bin/prm0d: A.01.06 PHSS_19888 HP PRM 09/13/99 prm0d /opt/prm/bin/prm1d: A.01.06 PHSS_19888 HP PRM 09/13/99 prm1d /opt/prm/bin/prmrun: A.01.06 PHSS_19888 HP PRM 09/13/99 prmrun /opt/prm/exempt: None /opt/prm/man/man1.Z/prm.1: None /opt/prm/newconfig/RelNotes/PRM.C.01.06.ps: None /opt/prm/newconfig/RelNotes/PRM.C.01.06.txt: None /usr/lib/nls/msg/C/prm.cat: None cksum(1) Output: 3100713027 24576 /opt/prm/bin/prm0d 682661918 36864 /opt/prm/bin/prm1d 2187550679 32768 /opt/prm/bin/prmrun 761692648 76 /opt/prm/exempt 1256817390 3865 /opt/prm/man/man1.Z/prm.1 3318783527 101234 /opt/prm/newconfig/RelNotes/PRM.C.01.06.ps 2422239337 11497 /opt/prm/newconfig/RelNotes/PRM.C.01.06.txt 2073687300 29671 /usr/lib/nls/msg/C/prm.cat Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHSS_19443 PHSS_18787 Equivalent Patches: PHSS_19887: s700: 11.00 s800: 11.00 Patch Package Size: 300 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHSS_19888 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHSS_19888.depot By default swinstall will archive the original software in /var/adm/sw/patch/PHSS_19888. If you do not wish to retain a copy of the original software, you can create an empty file named /var/adm/sw/patch/PATCH_NOSAVE. WARNING: If this file exists when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. It is recommended that you move the PHSS_19888.text file to /var/adm/sw/patch for future reference. To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHSS_19888.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: SUBSYSTEM_SHUT PRM must be reset (disabled) before installing this patch. After the patch is installed, PRM may be enabled. # prmconfig -r [install patch] # prmconfig -i | -k -f [config file] # prmconfig -e