Patch Name: PHCO_27848 Patch Description: s700_800 11.11 gprof(1) patch Creation Date: 03/03/10 Post Date: 03/03/25 Hardware Platforms - OS Releases: s700: 11.11 s800: 11.11 Products: N/A Filesets: ProgSupport.PROG-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: Yes PHCO_27848: ABORT Category Tags: defect_repair general_release critical halts_system Path Name: /hp-ux_patches/s700_800/11.X/PHCO_27848 Symptoms: PHCO_27848: ( SR:8606170924 CR:JAGad40188 ) gprof(1) dumps core with PA 64-bit applications. Defect Description: PHCO_27848: ( SR:8606170924 CR:JAGad40188 ) For 64-bit applications, gprof(1) calculates incorrect text segment virtual address due to checking of incorrect flags. This causes core dump in the later processing. The steps to reproduce the problem: $ cat file.c #include int func() { } int main() { func(); } $ cc +DD64 -G file.c -o file $./file $ gprof file gmon.out Memory fault(coredump) Resolution: The correct flags are checked to pick the text segment virtual address. Enhancement: No SR: 8606170924 Patch Files: ProgSupport.PROG-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: /usr/ccs/bin/gprof what(1) Output: ProgSupport.PROG-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: /usr/ccs/bin/gprof: gprof.c $Date: 2003/03/03 00:46:07 $Revision: r11.11 /2 PATCH_11.11 (PHCO_27848) calls.c $Date: 2002/11/13 07:47:41 $Revision: r11.11 /1 PATCH_11.11 (PHCO_27848) printgprof.c $Date: 2002/11/13 07:48:25 $Revision: r 11.11/1 PATCH_11.11 (PHCO_27848) fixbounds.c $Date: 2003/03/03 00:46:07 $Revision: r1 1.11/2 PATCH_11.11 (PHCO_27848) $Revision: @(#) all CUP11.11_BL2003_0310_3 PATCH_11. 11 PHCO_27848 Mon Mar 10 21:58:20 PST 2003 $ cksum(1) Output: ProgSupport.PROG-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP: 341282768 49152 /usr/ccs/bin/gprof Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: None Equivalent Patches: None Patch Package Size: 70 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_27848 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_27848.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_27848. 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_27848.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_27848.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_27848.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None