Patch Name: PHNE_11267 Patch Description: s700_800 10.10 R5.0 SNAplus2 3270 cumulative patch Creation Date: 98/07/06 Post Date: 99/01/21 Hardware Platforms - OS Releases: s700: 10.10 s800: 10.10 Products: SNAplus2-3270 R5 Filesets: SNAplus2-3270.SNAP2-NLS SNAplus2-3270.SNAP2-3270 Automatic Reboot?: No Status: General Superseded Critical: Yes PHNE_11267: PANIC HANG ABORT PHNE_9200: HANG Path Name: /hp-ux_patches/s700_800/10.X/PHNE_11267 Symptoms: PHNE_11267: (1) 5003420364 Customer had an SNAPlus application which used SIGUSR1. This is not officially supported in SNAplus2 (and this is clearly documented). (2) 5003418913 If you have START_HOST_NOTIFY in operation, and issue a PAUSE verb (with IPAUSE selected), then the PAUSE verb can complete - and QUERY_HOST_UPDATE will return PS_UPDATED but COPY_PS shows no change. (3) 5003401711 Customer migrating from R2 to R5 found print output in files different for parsing by his printer application. Specifically we have excess characters and do not optimise in one case. (4) 5003399337 Pressing the DUP key causes space to be displayed, rather than '*'. DUP function does not work correctly. (5) 5003393827 If you issue an HLLAPI COPY_PS_TO_STRING verb and specify a length of 7 bytes, the return code of the verb will be 7. (6) 5003390708 HLLAPI applications can get poor performance - profiling indicates that a lot of time was being spent in shared memory calls. (7) 5003387605 Cannot use ANSI with hllapi (8) 5003371435 Style file print utility doesn't work with back level style files. (9) 5003361170 snap3270 66 line printout does not fit onto quarto paper. (10) 4701385559 If you have an initially active session, and then try to exit from 3270 without ever establishing another session, then 3270 core dumps on exit. (11) 4701377051 Enhancement to add Russian language to lang3270.tbl file (12) 1653249359 If the node is not running, then snap3270d uses a large amount of CPU (can be seen by running 'top') (13) 1653246066 If an application issues a system call which runs a hllapi application, the application will coredump when its first verb completes. (14) 1653243311 3270 print jobs hang under load conditions. Also Zombie processes appear in process list. Printouts appear when 3270 exits. (15) 1653237636 In snap3270, if you print transparent data from the host, the filter application adds NL and FF characters in the middle of the output . (16) 1653237602 Print output is compressed because NULLs are not put into output at all (they should be mapped to spaces). (17) 1653236182 If host sends transparent data (255 bytes) then 3270 printing fails. (18) 1653220590 If you perform a copy_string_to_ps where the final character ends up in the final position on the screen, HARC_TRUNCATION is returned - even although all characters were copied. (19) 1653208215 If there are not enough semaphore UNDO structures available, 3270 can hang when the user tries to activate a session. (20) 1653195859 The Motif emulator pull down menus (and the menubar itself) refer to function keys - however these do not work when a session is active, because the keys are remapped to be host PF keys. PHNE_9200: (1) 1653060566 Symptoms of problem: Enhancement to use new style cut/paste buffers (2) 1653172486 When in hostapplication 'MEMO' while editing a mail message the ATTN function (which is mapped to the ESC key) won't work properly: When pressing ESC nothing happens on the screen. Their expectation is to jump to the 'Netmaster Menu' which is an umbrella application to provide access to several host applications without logging off each time. This works fine on an original IBM terminal. With xsnap3270 instead when finally doing another function (pressing or another function key) the expected jump to the umbrella application 'Netmaster' at that moment will be performed. At other screens of MEMO or within other applications ATTN will work fine like expected. (3) 1653186353 Symptoms of problem: A line feed is inserted in LU3 unformatted print after 132 characters (as per the 3270 CUD). Since other implementations permit longer lines there is a requirement to enhance the product. (4) 1653187948 Symptoms of problem: After receiving NULL RU, NLS printing outputs CR after each character. (5) 1653194779 3270 help screens display some of the help information, but most of it is corrupt or incorrectly positioned. (6) 1653206698 When an application has issued START_HOST_NOTIFY and then issues a PAUSE verb, the PAUSE verb only polls for status changes once every second. Delays can be seen between something happening and the PAUSE completing. (7) 4701313593 There was a limitation that COPYPROT was not available in HLLAPI. (8) 5000714089 Customer's printouts were not formatted correctly due to form feeds being added at the SNALU1MPP default values. (9) 5000715680 Printing double byte datastream can result in print jobs appearing to hang. If printing is performed to a file, the formatted or unformatted output file grows indefinitely. Problem is very intermittent and dependent on the datastream from the host. (10) 5003271437 Symptoms of problem: Want to be able to move cursor with mouse in xsnap3270. (11) 5003291930 For R3 and R4, 3270 only has 10 characters allotted for the printer field on the status line. (12) 5003307512 R3 snaplus 3270 print filters put CR/LF sequence in output file when only single LF is received from the host. (13) 5003312686 When sending numeric data to a protected numeric field, snaplus hllapi failed with a sendkey error 9. (14) 5003316075 R3 snaplus 3270 print filters put CR/FF sequence in output file when only a single FF is received from the host. (15) 5003316471 SNAplus R4.1 - Unable to estalish greater than 15 snaplus3270 emulator sessions. (16) 5003325407 NLS Printer gives prog check 442 when running with 'formatted print' selected. If 'unformatted print' is selected, then the SPOF output is corrupt - and the snaprtf[ln] program complains when the user attempts to format the output. The problem only occurs when data > 250 characters/line received with no new lines and the SNALU1MPP environment variable is set. (17) 5003327510 xsnap3270 ignores the keystrokes f21-24(shift f9-f12). Defect Description: PHNE_11267: (1) 5003420364 Add an environment variable 'DISABLEPAUSEFIX' which removes the fix for SR 1653206698 (this altered the way SNAplus2 uses signals) and returns the behaviour of the code to the way it worked in SNAPlus R3/R4. (2) 5003418913 Code change to ensure we do not notify HLLAPI application unless the PS has actually been altered. (3) 5003401711 Reword snaprtfn to optimise white space to allow and to be followed by forward spaces orto prevent overprinting. (4) 5003399337 Code change made to resolve problem - ensure DUP function works as in R2. (5) 5003393827 Code changed to return the correct status. (6) 5003390708 Code change made to improve HLLAPI performance by keeping better track of shared memory currently attached in emulator and HLLAPI library - only reattach if necessary. Free shared memory when finished using it. Also, subsidiary problem resolved, where the number of shared memory handles can grow indefinetely - leading to the process running out of address space. (7) 5003387605 Add ANSI function prototypes to hapi_c.h (8) 5003371435 Remove Error messages and print helpful message telling user how to update the style file. (9) 5003361170 Add -m option to filter (snaprtfl and snaprtfi only) which causes us to program the laser printer with a top margin of 1 and to surpress the skip of the perforations. We can then print 66 lines on quarto (although the last 2 are lost). (10) 4701385559 Code change made to initialize variable which is left floating by 10.10 compiler. (11) 4701377051 Enhancement to add Russian language to lang3270.tbl file (12) 1653249359 Code change made to resolve scheduler problem where failure to get a session was not cleaned up once the retry was scheduled - this resulted in an infinite loop in the code where we kept trying to schedule a new retry. (13) 1653246066 Code changed to ensure that we do not daisy chain signal catchers if none registered before. (14) 1653243311 Code change to increase number of printer control blocks. Don't wait for child process death in mainline - wait for death of child signal. Replace use of 'system' call with explicit fork/exec code, as this is more reliable. (15) 1653237636 Code changed to suppress all formatting for transparent data. (16) 1653237602 Code changed to intercept NULLs in s3pr1dat in NLS case. (17) 1653236182 Code change made to ensure we do not allow number of bytes sent to print filter application to wrap beyond 1 byte. (18) 1653220590 Code changed to not return an error in this case (19) 1653208215 The code has been changed to log an error when this problem occurs, and return control to the User Interface. (20) 1653195859 Remove references to the function keys from the menu bar. PHNE_9200: (1) 1653060566 Enhancement to use new style cut/paste buffers. (2) 1653172486 Extra check improperly done in program. (3) 1653186353 Details of fix applied: Use the existing environment variable SNALU1MPP to control this. It can take any value from 1-250 default 132. Note that only unformatted LU3 print affected by this enhancement (WCC bits 2 and 3 zero). (4) 1653187948 Details of fix applied: Ensure that formatting output is sent to the filter appication immediately, rather than waiting for actual print data to be received otherwise it will be lost). (5) 1653194779 The problem is resolved by removing the ^M's from .htx' files as these cause the help code to go wrong. (6) 1653206698 Modify the emulator so that it signals the HLLAPI application using SIGUSR1 every time the PS or OIA is updated if the HLLAPI application has issued a start_host_notify verb on the session which was updated. Note that this means that a signal will be issued whether or not the application is actually sitting in a PAUSE verb. (7) 4701313593 There was a limitation that COPYPROT was not available in HLLAPI. (8) 5000714089 The printer filter files forced form feeds at the SNALU1MPP default value even if host application did not call for one. (9) 5000715680 The problem here is a straightforward bug in 3270's handling of double byte LU1 datastream. If a double byte character is split across the segment or RU boundary, then the scheduler within 3270 does not correctly handle this - the code gets into the wrong state, and loops infinitely continually outputing incorrect characters. (10) 5003271437 Details of Fix: Enhanced product to be able to move cursor with mouse in xsnap3270. (11) 5003291930 Details of Fix applied: The printer name in 3270 must fit into 10 characters, Enhanced the product so that it picks out the last 10 characters of the executable name, rather than the first 10 (which could be just a path). (12) 5003307512 The NL code was converted to a CR/LF instead of just a LF in R3 and R4 versions of the filter programs. (13) 5003312686 There is a limitation in the R3 version of the hllapi function Send Key. (14) 5003316075 The Form Feed code was converted to a CR/FF instead of just a FF in R3 and R4 versions of the printer filter programs. (15) 5003316471 The semume and semnu parameters in the kernel were set to a low value. (16) 5003325407 Problem only shows with large value of SNALU1MPP, and was because there is a 1 byte variable trying to hold a 2 byte quantity in the NLS printer code. (17) 5003327510 HP Keyboards return different control codes for shift F9-F12 than other keyboards (they do not return F21-24, instead they returned Keypad F1-F4). SR: 5003420364 5003418913 5003401711 5003399337 5003393827 5003390708 5003387605 5003371435 5003361170 4701385559 4701377051 1653249359 1653246066 1653243311 1653237636 1653237602 1653236182 1653220590 1653208215 1653195859 Patch Files: /opt/sna/include/hapi_c.h /opt/sna/lib/X11/uid/Snap3270/main.uid /opt/sna/lib/X11/uid/Snap3270/main9.uid /opt/sna/lib/X11/uid/Snap3270/mainnls.uid /opt/sna/lib/X11/uid/Snap3270/mainnls9.uid /opt/sna/lib/nls/msg/C/sna3270.htx /opt/sna/lib/nls/msg/C/sna3270p.htx /opt/sna/bin/X11/snap3179g /opt/sna/bin/X11/snap3179gui /opt/sna/bin/X11/xsnap3270d /opt/sna/bin/X11/xsnap3270dui /opt/sna/bin/snap3270d /opt/sna/bin/snap3270d_sjis /opt/sna/bin/snap3270d_sjisui /opt/sna/bin/snap3270dui /opt/sna/bin/snapprtsty /opt/sna/bin/snaprtfi /opt/sna/bin/snaprtfl /opt/sna/bin/snaprtfn /opt/sna/lib/libhapi.1 /etc/opt/sna/lang3270.tbl what(1) Output: /opt/sna/bin/snap3270d: ]B.10.10.110 SNAplus2 R5.0 3270 Emulator program - N LS ] (PHNE_11267 : 98/06/08 14:02:47) ] /opt/sna/bin/snap3270dui: ]B.10.10.103 SNAplus2 R5.0 3270 User Interface progr am - NLS ] (PHNE_11267 : 98/04/08 13:29:50) ] /opt/sna/bin/X11/snap3179g: ]B.10.10.110 SNAplus2 R5.0 3179G emulator - NLS ] (PHNE_11267 : 98/06/08 14:08:37) ] /opt/sna/bin/X11/snap3179gui: ]B.10.10.102 SNAplus2 R5.0 3179G User Inteface Progr am - NLS ] (PHNE_11267 : 98/02/04 12:57:56) ] /opt/sna/bin/X11/xsnap3270d: ]B.10.10.110 SNAplus2 R5.0 3270 Emulator program - M otif - NLS ] (PHNE_11267 : 98/06/08 14:05:27) ] /opt/sna/bin/X11/xsnap3270dui: ]B.10.10.102 SNAplus2 R5.0 3270 User Interface progr am - Motif - NLS ] (PHNE_11267 : 98/02/04 13:05:06) ] /opt/sna/bin/snap3270d_sjis: ]B.10.10.109 SNAplus2 R5.0 3270 Emulator program - N LS (Japanese SJIS) ] (PHNE_11267 : 98/06/12 11:49:32) ] /opt/sna/bin/snap3270d_sjisui: ]B.10.10.103 SNAplus2 R5.0 3270 User Interface progr am - NLS (Japanese SJIS) ] (PHNE_11267 : 98/04/08 13:30:18) ] /opt/sna/lib/X11/uid/Snap3270/main.uid: None /opt/sna/lib/X11/uid/Snap3270/main9.uid: None /opt/sna/lib/X11/uid/Snap3270/mainnls.uid: None /opt/sna/lib/X11/uid/Snap3270/mainnls9.uid: None /opt/sna/lib/nls/msg/C/sna3270p.htx: None /opt/sna/lib/nls/msg/C/sna3270.htx: None /opt/sna/lib/libhapi.1: ]B.10.10.102 SNAplus2 R5.0 HLLAPI Verb Library Routi nes ] (PHNE_11267 : 98/06/10 15:38:00) ] /opt/sna/bin/snapprtsty: ]B.10.10.100 SNAplus2 R5.0 3270 Style File Text Outp ut - NLS ] (PHNE_11267 : 97/06/03 16:09:36) ] /opt/sna/bin/snaprtfi: ]B.10.10.102 SNAplus2 R5.0 Printer Filter program ] (PHNE_11267 : 98/01/16 16:21:40) ] /opt/sna/bin/snaprtfl: ]B.10.10.102 SNAplus2 R5.0 Printer Filter program ] (PHNE_11267 : 98/01/16 16:21:26) ] /opt/sna/bin/snaprtfn: ]B.10.10.102 SNAplus2 R5.0 Printer Filter program ] (PHNE_11267 : 98/01/16 16:21:53) ] /opt/sna/include/hapi_c.h: None /etc/opt/sna/lang3270.tbl: None cksum(1) Output: 1046036308 643072 /opt/sna/bin/snap3270d 760413466 368640 /opt/sna/bin/snap3270dui 2535455008 1069056 /opt/sna/bin/X11/snap3179g 151196089 516096 /opt/sna/bin/X11/snap3179gui 3373551803 786432 /opt/sna/bin/X11/xsnap3270d 2808917227 516096 /opt/sna/bin/X11/xsnap3270dui 1817042749 643072 /opt/sna/bin/snap3270d_sjis 3202883245 368640 /opt/sna/bin/snap3270d_sjisui 1947610690 45056 /opt/sna/lib/X11/uid/Snap3270/main.uid 1589151422 45056 /opt/sna/lib/X11/uid/Snap3270/main9.uid 1025118007 45056 /opt/sna/lib/X11/uid/Snap3270/mainnls.uid 1593926058 45056 /opt/sna/lib/X11/uid/Snap3270/mainnls9.uid 3064062468 30074 /opt/sna/lib/nls/msg/C/sna3270p.htx 3868953024 73486 /opt/sna/lib/nls/msg/C/sna3270.htx 4219892260 86016 /opt/sna/lib/libhapi.1 3853526163 94208 /opt/sna/bin/snapprtsty 318495298 86016 /opt/sna/bin/snaprtfi 4088001726 86016 /opt/sna/bin/snaprtfl 848244952 86016 /opt/sna/bin/snaprtfn 775539316 11007 /opt/sna/include/hapi_c.h 989994333 7263 /etc/opt/sna/lang3270.tbl Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHNE_9200 Equivalent Patches: None Patch Package Size: 5600 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 PHNE_11267 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHNE_11267.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/PHNE_11267.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/PHNE_11267. 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 PHNE_11267.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/PHNE_11267.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: Stop SNA daemon before installing patch (snap stop). After installing the patch start the SNA daemon (snap start). NOTE: This patch will replace the /etc/opt/sna/lang3270.tbl file. The original file will be saved as /etc/opt/sna/lang3270.tbl.save.