Patch Name: PHCO_30269 Patch Description: s700_800 11.11 cumulative sh-posix(1) patch Creation Date: 04/05/19 Post Date: 04/06/15 Repost: 04/08/03 The Symptoms, Defect Description, and SR fields were modified to add information about an additional issue addressed by PHCO_27345. The issue documented in Service Request 8606215422 (JAGad84609) is addressed by PHCO_27345. Hardware Platforms - OS Releases: s700: 11.11 s800: 11.11 Products: N/A Filesets: OS-Core.CORE-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP OS-Core.UX-CORE,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: Yes PHCO_30269: ABORT HANG MEMORY_LEAK sh-posix shell dumps core if the arguments contains illegal multibyte characters. Shell script communicating with a coprocess might hang. Fix for sh-posix(1) memory leaks with "set -A". PHCO_27345: CORRUPTION MEMORY_LEAK HANG Fix for sh-posix(1) stack corruption while expanding an argument of length 2046 characters inside here-documents. Fix for sh-posix(1) memory corruption in emacs mode of editing. Fix for memory leakage in sh-posix(1) when $! is used in a loop. Fix for sh-posix(1) hang when shell tries to output long strings (>1024 bytes) in a multibyte environment. PHCO_27017: HANG This patch fixes the problem when sh-posix receives a read error after receiving a SIGWINCH. Previously it used to hang for above condition PHCO_25597: OTHER HANG This patch fixes the problem of the posix shell hanging when directory names involving symbolic links are parsed. This patch also fixes the POSIX shell to adhere to ISOC standards by recognizing octal and hexa decimal notations. Category Tags: defect_repair enhancement general_release critical halts_system corruption memory_leak Path Name: /hp-ux_patches/s700_800/11.X/PHCO_30269 Symptoms: PHCO_30269: ( SR:8606343885 CR:JAGaf04737 ) sh-posix(1) scripts using coprocess can occasionally hang. ( SR:8606343892 CR:JAGaf04744 ) Job control does not work in sequential lists. ( SR:8606343893 CR:JAGaf04745 ) Shell might overwrite existing files even when noclobber option is set. ( SR:8606350160 CR:JAGaf10981 ) sh-posix(1) shell dumps core if the arguments contains any illegal multibyte characters. ( SR:8606350935 CR:JAGaf11747 ) Using $(..) or `..` with data length of 1022 characters in sh-posix(1) script can cause part of the data to be lost. ( SR:8606352477 CR:JAGaf13282 ) "set -A" leaks memory in sh-posix(1) shell. PHCO_28832: ( SR:8606303907 CR:JAGae67257 ) On sh-posix(1), when a signal - 0 is sent to a stopped process using the built-in kill command (kill -s 0 ), it continues to run. ( SR:8606312643 CR:JAGae75459 ) When the kernel tunable - maxdsiz is set to a value greater than 0x7fffffff, the sh-posix(1) built-in ulimit, displays incorrect results. ( SR:8606234492 CR:JAGae03690 ) Under certain conditions, sh-posix(1) executes a different script than it was intended to, when the script to be executed had #!/usr/bin/ksh as the interpreter. ( SR:8606300146 CR:JAGae63614 ) When sh-posix(1) is invoked with -c option, the built-in command - trap, does not behave as expected if called after execution of a non-built-in command. ( SR:8606309659 CR:JAGae72534 ) On sh-posix(1), when a function returns using the built-in return with ampersand (return &) and the script is executed with the built-in dot command (. ./script), commands after returning from the function are executed twice. ( SR:8606333394 CR:JAGae94483 ) Expressions in - let "..", $((..)), ((..)) are processed as per ISO C standards in sh-posix(1). Numbers beginning with 0 are treated as octal and 0x/0X are treated as hexadecimals. This causes certain scripts to fail. PHCO_27345: ( SR:8606276501 CR:JAGae40579 ) sh-posix(1) corrupts memory in emacs mode of editing. ( SR:8606204395 CR:JAGad73577 ) sh-posix(1) handles the cursor incorrectly when the prompt string has escape sequences. ( SR:8606277532 CR:JAGae41602 ) sh-posix(1) with '-c' option, leaves temporary files when here-document is used in functions. ( SR:8606269405 CR:JAGae33640 ) echo(1) built-in command of sh-posix(1) hangs when long multi-byte input is processed. ( SR:8606290665 CR:JAGae54511 ) sh-posix(1) stops waiting for kill -STOP child processes. ( SR:8606274899 CR:JAGae38976 ) Memory leakage in sh-posix(1) when using $! in a loop. ( SR:8606287774 CR:JAGae51707 ) Macro expansion in sh-posix(1) fails with an argument of length 2046 characters. ( SR:8606285956 CR:JAGae49897 ) sh-posix(1) does not handle the file-system related failures correctly. ( SR:8606272215 CR:JAGae36355 ) With a script having arrays, sh -n