Patch Name: PHSS_21957 Patch Description: s700_800 10.20 X11R5/Motif1.2 DevKit AUG2000 Periodic Patch Creation Date: 00/07/23 Post Date: 00/09/05 Hardware Platforms - OS Releases: s700: 10.20 s800: 10.20 Products: HP-UX X11R5 Developer's Toolkit B.10.20 Filesets: X11MotifDevKit.X11R5-PRG X11MotifDevKit.MOTIF12-PRG Automatic Reboot?: No Status: General Release Critical: No (superseded patches were critical) PHSS_17324: ABORT refer to symptoms and associated defect reports. PHSS_16618: ABORT refer to symptoms and associated defect reports. PHSS_15009: ABORT refer to symptoms and associated defect reports. PHSS_14081: ABORT refer to symptoms and associated defect reports. PHSS_12375: ABORT refer to symptoms and associated defect reports. PHSS_11629: ABORT refer to symptoms and associated defect reports. PHSS_11047: ABORT refer to symptoms and associated defect reports. PHSS_9813: ABORT refer to symptoms and associated defect reports. PHSS_7744: ABORT refer to symptoms and associated defect reports. Path Name: /hp-ux_patches/s700_800/10.X/PHSS_21957 Symptoms: PHSS_21957: 1. XmTextCopy cannot copy control characters to xclipboard. 2. Cascade button in OptionMenu has incorrect color. 3. Recent X/Motif patch cause a gui hang. 4. File path problem in Motif2.1 and Motif1.2. 5. Java 1.2 application dumps core in FinishDrag(). 6. Warnings in swagent.log file. PHSS_21042: 1. Warning message "No action proc named secondary-drag is registered for widget text Drag fails with button1 in CDE environment" is displayed. 2. Toggle Label in Menu disappears when select color is equal to foreground color. 3. Warnings in swagent.log file. 4. Patch PHSS_19961 does not update the IPD correctly for XHPSSChange.3x. 5. files not linked as indicated in ipd. PHSS_19961: 1. Application core dumps when drag source shell is destroyed during a drag. 2. Drag icon undestroyed when source shell is destroyed during a drag. 3. Drag app core dumps when drop shell is destroyed before releasing mouse. 4. Applications core dump during a drag and drop operation. 5. Memory leak in DragIconInitialize during a drag operation. 6. Application is aborted by XSendEvent during a drag and drop. 7. Source icon hangs when drop site gets destroyed during data conversion. 8. Drop site coredumps. 9. Xt Selection timeout causes core dump in drop site. 10. Drop site core dumps when drag source gets destroyed during conversion. 11. XmDropSiteUpdate() fails to change XmNimportTargets, XmNnumImportTargets. 12. XmTextField widget sets incorrect width based on XmNcolumns and XmNwidth. 13. Draw Button resize callback runs in a loop. PHSS_17324: 1. Xserver memory grows. 2. Bookmarks icon overlaps string in Netscape. 3. Java application hangs. 4. Java application coredumps. 5. Java application coredumps. 6. File Xcms.txt is left open across exec calls, results in lost FD's. 7. Application aborts in Multidisplay setup. 8. Motif application coredumps when toplevel widget is destroyed. 9. Keyboard grab is not released. 10. Traversal order is affected. 11. TextField aborts when font is unavailable. 12. Buffer overflow in Xt. 13. Leaks memory with creation of a new widget. 14. Performance degradation and core dump. PHSS_16618: 1.SetValues on a CascadeButton after destroying the most recently created cascade button, crashes the application. 2.Pulldown menu will not stay posted from a cascade button when its background color is set. 3.I-Beam cursor is visible on the frame border on text widget when the margin width is set to 0. 4.When the mouse double click time is increased, option menu remains posted if the options are selected quickly. 5.Applications that use XmListDeletePos to update the list elements in the list widget run slowly due to server roundtrip in ResetHeight. 6.Cut/Paste does not work properly under LANG=ja_JP.SJIS on XmTextWidget in X11R5. 7.XmbTextListToTextProperty has a 1024 item limit in chinese_slocale. 8.PHSS_11628 Missing charsets in String to FontSet conversion. 9.PHSS_15009 had incorrect mtime for header files. PHSS_15009: 1. PHSS_13871 breaks the automatic resize of the XmLabel Pixmap. 2. The XmScale can leave dust in the value display area. 3. The background color is not set correctly, if it is set after creating cascade button and option menu. 4. Motif1.2 code can die if enableetchedInmenu = True 5. Setting of XBMLANGPATH fails under some conditions 6. In DDE Rowcolumn with labels is not resizing properly and is breaking Widget/popup. PHSS_14081: 1. Fixes buffer overflow in hpterm which could be used to overwrite the stack. 2. Fixes the defect that causes foreground color of the ToggleButton widgets to set unexpectedly when XmNindicatorON is FALSE. 3. Fixes core dump resulting from uninitialized keycode. PHSS_12375: 1. Fix problem in XmLabel that results in loss of justification after text has been updated. 2. Fix defect causing Xserver swap requirements to grow without bound. 3. Fix defect in XtInitializeWidgetClass() which results in a NULL reference on MessageBox widget class. 4. Fix defect causing xclients to core dump with bus error when DISPLAY variable is not set. PHSS_11629: 1. Fix failure in drag-n-drop within single program that results from both sending and receiving code trying to free the same block of memory PHSS_11047: 1. Fix problem that causes application to dump core when manipulating popup menus and destroying a menu element. 2. Fix core dump created by setting up a TextWidget, setting hightlights, and backspacing twice. 3. TextFieldWidget (but not TextWidget) loses data after 32 characters in Japanese locale and input method. 4. Fix condition whereby a string copy of an environment variable could overflow a stack buffer. 5. Fix memory leak in XmScrollBar resulting from mismatched Get/Install pixmap calls. 6. Fix for incorrect length value being returned by XmTextFieldGetMaxLength(). 7. Fix defect in drag and drop resulting in segmentation violation when incremental transfer is enabled. PHSS_9813: 1. Fix defect that prevents tearing off a menu more than once. 2. Fix defect that causes the background of a Toggle ButtonGadget not to be painted with the appropriate background color when pushed. 3. Fix defect where launching many X/Motif programs in rapid succession would cause the Xserver to fail. 4. Fix defect where XmClipboard modifies the event-mask on the root-window. 5. Fix defect where Motif program dumps core when using XmListReplaceItemPos and XtSetValues. 6. Fix defect where creating a pixmap button with all bits set to 0 causes a BadValue error from Motif. 7. Fix defect where the TextField widgets do not resize properly when a RowColumn parent widget is resized. 8. Fix memory leak where highlighting text continuously causes the Text widget to consume more and more memory until the program aborts. 9. Fix defect where a toggle button's background color may be incorrectly set to indicate "armed" when it is not. 10. Fix defect where parts of a pixmap label may not get repainted after window resize which can cause visual errors such as loss of underscore characters. 11. Fix defect where the list widget ignores the specified fontList resource and uses the (default) fixed font instead. 12. Fix defect where Motif dumps core if XmTextField is destroyed while Button2 is being pressed. 13. Fix defect where XmTextField doesn't paste cut buffer under japanese environment. 14. Fix defect causing Xlib fatal IO error when application opens more than 64 files. 15. Fix defect causing a core dump when bringing up an index box with dtHelp. 16. Fix defect preventing paste into text field widget. PHSS_8709: 1. Applys an X consortium fix to libXt for a potentially serious problem. PHSS_7744: 1. Fix problem with preedit string overwriting status string. 2. Fix core dumps when IM server dies. 3. Fix for pershell core dump and badwindow problem. 4. Motif menu behavior was broken due to a previous fix on F10 Key. 5. Remove fprintf from Async I/O error. 6. Missing symbolic links for X11/Motif *.sl libraries Defect Description: PHSS_21957: 1. dtpad cut&paste; cannot copy control characters. Resolution: XmTextCopy has been changed to copy control characters also. 2. Cascade button in OptionMenu has incorrect color. Resolution: GC value for Cascade button gadget is updated to get the correct color. 3. Recent X/Motif patch cause a gui hang. Resolution: Pull down menu hang is corrected. 4. File path problem in Motif2.1 & Motif1.2. Resolution: Absolute paths are used. 5. Java 1.2 application dumps core in FinishDrag(). Resolution: NULL pointer check is implemented in drag context to avoid core dump. 6. PHSS_18426 postinstall script fails to swmodify IPD for X11MotifDevKit. Resolution: Code added in the postinstall script. PHSS_21042: 1. Incorrect XmTextField Drag and Drop behavior. Resolution: secondary-drag is defined in the action table. 2. Menu items in audio control may be blank. Resolution: Redundant condition check for foreground and select color has been avoided to display correct toggle label color. 3. Warnings in swagent.log file. Resolution: Code added in the "postinstall" script to eliminate WARNINGS. 4. Patch PHSS_19961 does not update the IPD correctly for XHPSSChange.3x. Resolution: Code added in "postinstall" and "postremove" scripts to update the IPD properly. 5. files not linked as indicated in ipd. Resolution: Code added in "postinstall" script to create the missing link. PHSS_19961: 1. Application core dumps when drag source shell is destroyed during a drag. Resolution: This defect is fixed by adding destroy callback with drag source shell to cancel drag operation. 2. Drag icon undestroyed when source shell is destroyed during a drag. Resolution: Fix has been made to destroy the source icon even if current receiver shell is null in drag finish action. 3. Drag app core dumps when drop shell is destroyed before releasing mouse. Resolution: A check has been provided to cancel drag if destination shell is being destroyed. 4. Applications core dump during a drag and drop operation. Resolution: The solution for the defect is to remove the reference to the bad drag context from source shell during a successive drag operation. 5. Memory leak in DragIconInitialize during a drag operation. Resolution: Size allocation for image is removed to avoid memory leak. 6. Application is aborted by XSendEvent during a drag and drop. Resolution: Local error message handler is implemented to avoid aborts. No warning message is printed. 7. Source icon hangs when drop site gets destroyed during data conversion. Resolution: To avoid this defect, destroy callback is added to drop shell to terminate the transfer when the shell is destroyed. Shell being destroyed is also checked at few places. 8. Remove timeout before drop site destroy. Resolution: Time out removed in destroy shell callback. 9. Xt Selection timeout causes core dump in drop site. Resolution: Destroy callback is added in Xt to remove the time out when the application shell gets destroyed. Application shell being destroyed is also checked. 10. Drop site core dumps when drag source gets destroyed during conversion. Resolution: The core dump is protected by adding being destroyed check on drag context and a destroy callback to terminate transfer. 11. XmDropSiteUpdate() fails to change XmNimportTargets, XmNnumImportTargets Resolution: Fix has been made to update targets in target table while using XmDropSiteUpdate(). 12. XmTextField widget incorrect width based on XmNcolumns and XmNwidth Resolution: A new variable initial_width is added to hold the width of the widget. This is used in geometry management when the columns are unspecified. If both width and columns are specified, width takes preference. 13. A function that is called by XtAddCallback() keeps calling. Resolution: Redundant calls to Draw button resize callbacks have been arrested. PHSS_17324: 1. Motif application causes Xserver memory to grow continously. Resolution: This fix ensures that the pixmap created for stipple operations in XmScrollBar is cached. Hence multiple create/destroy of ScrollBar ensures that Xserver memory is not consumed. 2. Bookmarks icon overlaps string in Netscape. Resolution: Netscape bookmarks won't have the pixmaps overlapping the text portion. 3.Destroy of cascade buttons before submenu popdowns could cause application hang. Resolution: The fix is specific to Java Popup Menus. With this fix there is a reduced risk of Popup Menus causing application hangs when the cascade buttons are destroyed in multiple threads. 4.Java popup menus using multiple cascade coredumps. Resolution: The fix is specific to Java Popup Menus. With this fix there is a reduced risk of Popup Menus causing application core dumps using multiple cascades. 5.Java application coredumps when submenu of Popupmenu is destroyed. Resolution: The fix is specific to Java Popup Menus. With this fix there is a reduced risk of Popup Menus causing application core dumps when submenus get destroyed in a multithreaded environment. 6.File Xcms.txt is left open across exec calls, results in lost FD's. Resolution: libX11.1 now closes the file descriptor for this file. 7.Multidisplay application with togglebutton generated badmatch when the indicator visual is 'check' and the toggle buttons on all the screens are selected. Resolution: This defect is fixed by creating different pixmaps of check mark for different screens in the Initialize procedure of cascade button. 8.Motif application coredumps when the toplevel widget with text widget as child is destroyed before the event loop is encountered. Resolution: The defect is fixed by adding a destroy callback on dsm(drop site manager) which removes the timeout procedure before destroying dsm. This prevents referencing of the dsm after it is destroyed in the timeout procedure. 9.XmText grabs the keyboard if both button 1 and button 2 are pressed. Resolution: The fix was to disable a flag if button1 is released while button2 is pressed. If the flag is unset, keyboard grab is released. 10.Keyboard traversal does not work correctly after resizing the window. Resolution: The fix ensures correct traversal behaviour for children inside a ScrollWindow. The traversal behaviour was influenced by the position of the scrollbar. When the focus leaves and comes back to the application, traversal hierarchy is recreated and was influenced by the position of the scrollbar. The fix was to handle negative values for the children. 11.Motif applications aborts when displaying to a Sun running CDE. Resolution: Font list in Text Field had an invalid memory address when specified font was unavailable. The default value is set to null and converter set to XmRImmediate. 12.Buffer overflow in Xt. Resolution: Buffer overflow has been prevented by structure fields initialization. Changes from the TOG. 13.Memory leak in Motif1.2 libXm.1 and libXm.2. Resolution: The fix was to enable font list caching. In its absence applications leak memory if they create and destroy widgets continuously. Also this fix improves performance. 14.Event handlers in Popups cause performance degradation and coredump in Java Popup Menus. Resolution: The fix is specific to Java Popup Menus. With this fix Popup Menus show an improved performance and don't core dump under stressed conditions. PHSS_16618: 1.SetValues on a CascadeButton after destroying the most recently created cascade button, crashes the application since it always uses the GC of the most recently created CascadeButton which is not correct. 2.Pulldown menu will not stay posted from a cascade button when its background color of menu bar is set. 3.I-Beam cursor is visible on the frame border on text widget when the margin width is set to 0. 4.Changing the mouse double-click time affects the beahaviour of option menu. 5.Applications that use XmListDeletePos to update the list elements in the list widgets run slowly due to server roundtrip in ResetHeight. 6.Cut/Paste does not work properly under LANG=ja_JP.SJIS on XmTextWidget in X11R5. 7.XmbTextListToTextProperty has a 1024 item limit in chinese_s locale. 8.PHSS_11628 Missing charsets in String to FontSet conversion. 9.PHSS_15009 had incorrect mtime for header files. PHSS_15009: See associated defect reports for explanation. PHSS_14081: See associated defect reports for explanation. PHSS_12375: See associated defect reports for explanation. PHSS_11629: See associated defect reports for explanation. PHSS_11047: See associated defect reports for explanation. PHSS_9813: See associated defect reports for explanation. PHSS_8709: See associated defect reports for explanation. PHSS_7744: See associated defect reports for explanation. SR: 5003340836 5003441501 8606133112 8606137752 8606144589 8606131946 8606103851 5003320218 8606110928 1653106443 5003450940 8606106085 5003454462 1653277608 5003444000 5003445783 1653278473 1653285460 5003378281 5003379560 1653198150 5003366054 5003439984 1653251488 5003432005 1653230441 5003398248 1653258061 5003410951 1653253625 4701384677 1653250662 1653227991 1653215095 1653220525 1653226076 5003366336 5003375428 1653215996 5003347922 5003360776 4701349183 1653210955 1653208918 1653211193 1653163568 1653182675 1653186494 1653186890 1653188151 1653189878 1653190744 1653194167 1653197129 1653198051 1653201855 4701335323 4701341487 4701346460 5003334987 5003344531 5003314005 5003312652 Patch Files: /usr/lib/X11R5/libX11.a /usr/lib/X11R5/libXhp11.a /usr/lib/X11R5/libXt.a /usr/lib/Motif1.2/libXm.a /usr/include/Motif1.2/Xm/VendorSEP.h /usr/include/Motif1.2/Xm/Xm.h /usr/include/Motif1.2/Xm/XmP.h /usr/include/Motif1.2/Xm/XmStrDefs.h /usr/include/Motif1.2/Xm/TextFP.h /usr/include/Motif1.2/Xm/LabelP.h /usr/share/man/man3.Z/XHPSSChange.3x what(1) Output: /usr/include/Motif1.2/Xm/Xm.h: OSF/Motif Version 1.2.6 /usr/include/Motif1.2/Xm/XmP.h: None /usr/include/Motif1.2/Xm/XmStrDefs.h: None /usr/include/Motif1.2/Xm/VendorSEP.h: None /usr/include/Motif1.2/Xm/TextFP.h: None /usr/include/Motif1.2/Xm/LabelP.h: None /usr/lib/X11R5/libXhp11.a: $Revision: 1.4 $ Built for: 10.10 on HP-UX Daily, -O +Onolimit X Window System, Version 11 R5 (build date: Mon Dec 7 11:43:38 MST 1998) /usr/lib/X11R5/libX11.a: Built for: 10.10 on HP-UX Daily, -O +Onolimit X Window System, Version 11 R5 (build date: Thu Jan 14 17:24:33 MST 1999) /usr/lib/X11R5/libXt.a: X Window System, Version 11 R5+ HP-UX B.10.10.00 Aug ust 2000 Patch Release (build date: Wed Aug 16 01:19:22 IST 2000) /usr/lib/Motif1.2/libXm.a: OSF/Motif Version 1.2.6 X Window System, Version 11 R5+ HP-UX B.10.10.00 Aug ust 2000 Patch Release (build date: Wed Aug 16 03:05:37 IST 2000) /usr/share/man/man3.Z/XHPSSChange.3x: None cksum(1) Output: 4040045341 44884 /usr/include/Motif1.2/Xm/Xm.h 412734693 85659 /usr/include/Motif1.2/Xm/XmP.h 2780050862 122846 /usr/include/Motif1.2/Xm/XmStrDefs.h 1528450945 3395 /usr/include/Motif1.2/Xm/VendorSEP.h 4082653242 15045 /usr/include/Motif1.2/Xm/TextFP.h 2583457403 5280 /usr/include/Motif1.2/Xm/LabelP.h 783131811 91596 /usr/lib/X11R5/libXhp11.a 3020380109 1018640 /usr/lib/X11R5/libX11.a 2706249580 430444 /usr/lib/X11R5/libXt.a 1080760002 2288452 /usr/lib/Motif1.2/libXm.a 1195605978 3245 /usr/share/man/man3.Z/XHPSSChange.3x Patch Conflicts: None Patch Dependencies: s700: 10.20: PHSS_19963 s800: 10.20: PHSS_19963 Hardware Dependencies: None Other Dependencies: None Supersedes: PHSS_7744 PHSS_8709 PHSS_9813 PHSS_11047 PHSS_11629 PHSS_12375 PHSS_14081 PHSS_15009 PHSS_16618 PHSS_17324 PHSS_19961 PHSS_21042 Equivalent Patches: None Patch Package Size: 4090 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_21957 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHSS_21957.depot By default swinstall will archive the original software in /var/adm/sw/patch/PHSS_21957. 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_21957.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_21957.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None