Patch Name: PHCO_27908 Patch Description: s700_800 11.11 libsamalloc cumulative patch Creation Date: 02/12/02 Post Date: 03/02/11 Hardware Platforms - OS Releases: s700: 11.11 s800: 11.11 Products: N/A Filesets: OS-Core.CORE-SHLIBS,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: No Category Tags: enhancement general_release Path Name: /hp-ux_patches/s700_800/11.X/PHCO_27908 Symptoms: PHCO_27908: ( SR:8606282081 CR:JAGae46024 ) When malloc(3C) requests a large amount of memory which is then freed, the break value does not get reset. Defect Description: PHCO_27908: ( SR:8606282081 CR:JAGae46024 ) malloc(3C) does not release the last block freed to the heap. Resolution: A new library (libsamalloc.sl) is provided which implements the feature of releasing last block freed to the heap for 32 bit applications using single arena,thereby resetting the curbrk value.The size of the last block freed should be greater than 2 times expansion factor.The feature gets automatically disabled if any of the following options to malloc(3C) are enabled. 1) largemalloc. 2) M_KEEP. This new library has to be linked ahead of libc.sl. example : $export _M_ARENA_OPTS=1:32 Here the expansion factor is 32 (32x4096 bytes ) The last block will be released to heap only if its size is greater than 2 times expansion factor (32x4096bytes). Enhancement: Yes PHCO_27908: A new library (libsamalloc.sl) is provided which implements the feature of releasing last block freed to the heap for 32 bit applications using single arena,thereby resetting the curbrk value. SR: 8606282081 Patch Files: OS-Core.CORE-SHLIBS,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: /usr/lib/libsamalloc.1 /usr/lib/libsamalloc.sl what(1) Output: OS-Core.CORE-SHLIBS,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: /usr/lib/libsamalloc.1: $ PATCH_11.11/PHCO_27908 Dec 2 2002 03:28:16 $ /usr/lib/libsamalloc.sl: $ PATCH_11.11/PHCO_27908 Dec 2 2002 03:28:16 $ cksum(1) Output: OS-Core.CORE-SHLIBS,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: 345472193 57344 /usr/lib/libsamalloc.1 345472193 57344 /usr/lib/libsamalloc.sl Patch Conflicts: None Patch Dependencies: s700: 11.11: PHCO_27740 s800: 11.11: PHCO_27740 Hardware Dependencies: None Other Dependencies: None Supersedes: None Equivalent Patches: PHCO_27907: s700: 11.00 s800: 11.00 Patch Package Size: 80 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_27908 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_27908.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_27908. If you do not wish to retain a copy of the original software, include the patch_save_files option in the swinstall command above: -x patch_save_files=false WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. For future reference, the contents of the PHCO_27908.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_27908.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_27908.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None