Patch Name: PHSS_17534 Patch Description: s700_800 10.20 X11R6 Font Server JAN 99 Cumulative Patch Creation Date: 99/02/03 Post Date: 99/02/10 Hardware Platforms - OS Releases: s700: 10.20 s800: 10.20 Products: N/A Filesets: X11.X11-FONTSRV Automatic Reboot?: No Status: General Superseded Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHSS_17534 Symptoms: PHSS_17534: 1. User executing xfs with illegal option. 2. iso_8859.15 fonts not added to fs/config file. 3. Unable to build config file separately for 10.20 and 11.00. PHSS_16349: Fixes the defect in PHSS_15423. The environment variable CONFIG_FILE_NAME is initialised in the file '/sbin/init.d/xfs'. PHSS_15423: Potential buffer overflow in /usr/bin/stmkfont. Man page for xfs does not say where the config file resides. Configure fontserver and the config file have to be edited to add CDE font path. When shutting down the system or going to single-user mode, the Font Server fails to shutdown. The stop font server script fails on shutdowns on my system. To specify xfs config file in /etc/rc.config.d/xfs. xfs failed when serving many clients (more than 1000). Core dump in alternate-server configuration. PHSS_15054: xfs does not support more than 256 clients. PHSS_14829: Core dump in alternate-server configuration. xfs (font server) failure when serving many clients (more than 1000). PHSS_11273: The xfs init.d script fails at shutdown. The fstobdf program fails with Japanese fonts. PHSS_10907: The font server dies when 33rd client connects. The font server can't handle more than 15 clients; should clone itself. PHSS_10403: The font server can't handle more than 15 clients; should clone itself. Defect Description: PHSS_17534: 1. xfs fails with illegal options. Resolution: The command line arguments are not checked for the condition xfs -ls listen-socket from the command line. The fix validates this too. 2. iso_8859.15 fonts not added to fs/config file. Resolution: Added the new font path in the config file. 3. Unable to build config file separately for 10.20 and 11.00. Resolution: Implemented a procedure to build the config file separately for 10.20 and 11.00. PHSS_16349: Fixes the defect in PHSS_15423. The environment variable CONFIG_FILE_NAME is initialised in the file '/sbin/init.d/xfs'. PHSS_15423: Potential buffer overflow in /usr/bin/stmkfont. Man page for xfs does not say where the config file resides. Font server catalog: add font path "/usr/dt/config/xfonts/C" to default. /sbin/int.d/xfs stop failed to kill the font server process. xfs script shutdown problem. Would like ability to specify xfs config file in /etc/rc.config.d/xfs. xfs (font server) failed when serving many clients (more than 1000). An access to a pointer was being tried while it was already freed. PHSS_15054: The limit on maximum number of clients was insufficient. PHSS_14829: An access to a pointer was being tried while it was already freed. The limit on maximum number of clients was insufficient. PHSS_11273: The xfs init.d script tries to kill the font server at shutdown, but also kills itself. The fstobdf program will dump core when trying to build a bdf for a Japanese font. The problem occurs because it references the charinfo data improperly. It does not sequence through the rows and columns, but assumes it is a large flat space, which it is not. PHSS_10907: An error in the font server code caused the font server to go into an infinite loop when the 33rd client connected, overwriting memory until a core dump occurred. PHSS_10403: After a specific number of connections (setable using the client-limit configuration parameter) the font server spawns off a new process which will listen on the socket for new connections. The old process will service the connections it has until they are all closed and then die. In going from R5 to R6 the X Consortium changed the default port number from 7000 to 7100. HP continued to use 7000 as the port number set when starting the process at boot time, since to change this would force customers to change the font paths of the font clients. Consequently, HP's R6 font server is not run at the default port number and this causes the problem to be seen. HP's font server is an R6 font server on systems beginning with 10.10. SR: 4701397737 4701414771 5003399055 5003400747 5003408583 5003413856 5003416370 5003414862 1653170092 1653213223 Patch Files: /usr/bin/X11/xfs /usr/bin/X11/fstobdf /usr/bin/stmkfont /usr/share/man/man1.Z/xfs.1 /usr/newconfig/etc/rc.config.d/xfs /usr/newconfig/etc/X11/fs/config /sbin/init.d/xfs what(1) Output: /usr/bin/X11/xfs: xfs: $Revision: 1.1 $ X Window System, Version 11 R6+ HP-UX B.10.20.00 Sep 1998 Patch Release (build date: Thu Sep 17 02:58:59 IST 1998) /usr/bin/X11/fstobdf: X Window System, Version 11 R6+ HP-UX B.10.20.00 Jul y 1997 Patch Release (build date: Thu Jun 26 16:59:43 PDT 1997) /usr/bin/stmkfont: X Window System, Version 11 R6+ HP-UX B.10.20.00 Sep 1998 Patch Release (build date: Thu Sep 17 03:34:00 IST 1998) /usr/share/man/man1.Z/xfs.1: None /usr/newconfig/etc/rc.config.d/xfs: None /usr/newconfig/etc/X11/fs/config: None /sbin/init.d/xfs: None cksum(1) Output: 642628117 147456 /usr/bin/X11/xfs 1355803268 61440 /usr/bin/X11/fstobdf 1029177745 278528 /usr/bin/stmkfont 4190850109 4499 /usr/share/man/man1.Z/xfs.1 1396697450 206 /usr/newconfig/etc/rc.config.d/xfs 4143857638 1063 /usr/newconfig/etc/X11/fs/config 1558136066 1176 /sbin/init.d/xfs Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHSS_10403 PHSS_10907 PHSS_11273 PHSS_14829 PHSS_15054 PHSS_15423 PHSS_16349 Equivalent Patches: PHSS_17535: s700: 11.00 s800: 11.00 Patch Package Size: 550 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_17534 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHSS_17534.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/PHSS_17534.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. By default swinstall will archive the original software in /var/adm/sw/patch/PHSS_17534. 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_17534.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_17534.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: This Patch delivers a new version of the file /usr/newconfig/etc/X11/fs/config. Users have to merge the contents of this file with /etc/X11/fs/config. The changes done in this file is including a new font path ( /usr/lib/X11/fonts/iso_8859.15/75dpi ) to the catalogue field. The config file which is delivered with this patch has modified font path. MPOWER users should take a backup of config file while installing the config file in /etc/X11/fs directory.