Patch Name: PHCO_7757 Patch Description: s700_800 10.10 cumulative awk(1) patch Creation Date: 96/06/14 Post Date: 96/06/19 Hardware Platforms - OS Releases: s700: 10.10 s800: 10.10 Products: N/A Filesets: OS-Core.UX-CORE Automatic Reboot?: No Status: General Superseded Critical: No (superseded patches were critical) PHCO_6611: MEMORY_LEAK Path Name: /hp-ux_patches/s700_800/10.X/PHCO_7757 Symptoms: PHCO_7757: awk does not allow to reset ARGC and ARGV in BEGIN action. PHCO_7494: awk split function causes coredump when a formal argument is used as the "array" parameter. PHCO_7171: When the last field of an input record to awk(1) is NULL, awk(1) does not recognise it, causing the reported NF to be one less than the actual. PHCO_6611: Size of data segment of awk(1) increases unchecked. 10.x awk is slower compared to 9.X awk and also it cannot write to non-text files. Defect Description: PHCO_7757: awk does not allow to reset ARGC and ARGV in BEGIN action. PHCO_7494: awk split function causes coredump when a formal argument is used as the "array" parameter. PHCO_7171: awk(1) does not recognise the last input field if it is a NULL. PHCO_6611: 10.X awk leaks memory when calling user functions with "$" arguments.($0,$1...) 10.x awk is slower compared to 9.X.Also it differs functionally. SR: 5003322826 4701318857 1653157750 1653138040 1653139014 Patch Files: /usr/bin/awk what(1) Output: /usr/bin/awk: $Revision: 76.5.1.6 $ PATCH_10_10MR: /opt/langtools/lib/crt0.o awk.g.o awk .lx.o b.o main.o tran.o lib.o run.o parse.o proctab.o hpux_rel.o 96/06/14 cksum(1) Output: 2841475015 143360 /usr/bin/awk Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_6611 PHCO_7171 PHCO_7494 Equivalent Patches: PHCO_7756: s700: 10.00 10.01 s800: 10.00 10.01 Patch Package Size: 200 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 PHCO_7757 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHCO_7757.depot 5b. For a homogeneous NFS Diskless cluster run swcluster on the server to install the patch on the server and the clients: swcluster -i -b This will invoke swcluster in the interactive mode and force all clients to be shut down. WARNING: All cluster clients must be shut down prior to the patch installation. Installing the patch while the clients are booted is unsupported and can lead to serious problems. The swcluster command will invoke an swinstall session in which you must specify: alternate root path - default is /export/shared_root/OS_700 source depot path - /tmp/PHCO_7757.depot To complete the installation, select the patch by choosing "Actions -> Match What Target Has" and then "Actions -> Install" from the Menubar. 5c. For a heterogeneous NFS Diskless cluster: - run swinstall on the server as in step 5a to install the patch on the cluster server. - run swcluster on the server as in step 5b to install the patch on the cluster clients. The cluster clients must be shut down as described in step 5b. By default swinstall will archive the original software in /var/adm/sw/patch/PHCO_7757. 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 PHCO_7757.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/PHCO_7757.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None