ksh93 / ksh

ksh 93u+m: KornShell lives! | Latest release: https://github.com/ksh93/ksh/releases
Eclipse Public License 2.0
189 stars 31 forks source link

bin/shtests io leaves processes running #213

Closed posguy99 closed 3 years ago

posguy99 commented 3 years ago
Version AJMv 93u+m/1.0.0-alpha+d4adc8fc 2021-03-09
[427] mint $ cd ksh
/home/mwilson/src/ksh
[428] mint $ ps ax | grep -i ksh | grep -v grep | wc -l
1
[429] mint $ bin/shtests io
#### Regression-testing /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh ####
test io begins at 2021-03-09+18:20:16
test io passed at 2021-03-09+18:20:17 [ 123 tests 0 errors ]
test io(C.UTF-8) begins at 2021-03-09+18:20:17
test io(C.UTF-8) passed at 2021-03-09+18:20:19 [ 123 tests 0 errors ]
test io(shcomp) begins at 2021-03-09+18:20:19
test io(shcomp) passed at 2021-03-09+18:20:20 [ 123 tests 0 errors ]
Total errors: 0
CPU time       user:      system:
main:      0m00.011s    0m00.000s
tests:     0m00.667s    0m00.351s
[430] mint $ ps ax | grep -i ksh | grep -v grep | wc -l
58

Huh? Why are all these processes being left? What are they?

[431] mint $ ps ax | grep -i ksh | grep -v grep
  78454 pts/0    Ss     0:00 ksh
  78724 pts/0    SN     0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh -ic echo >(true) >/dev/null
  78738 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78739 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78740 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78741 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78742 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78743 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78744 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78745 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78746 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78747 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78748 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78749 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78750 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78751 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78752 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78753 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78754 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78755 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78958 pts/0    SN     0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh -ic echo >(true) >/dev/null
  78972 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78973 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78974 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78975 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78976 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78977 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78978 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78979 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78980 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78981 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78982 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78983 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78984 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78985 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78986 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78987 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78988 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  78989 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /home/mwilson/src/ksh/src/cmd/ksh93/tests/io.sh
  79193 pts/0    SN     0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh -ic echo >(true) >/dev/null
  79207 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79208 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79209 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79210 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79211 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79212 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79213 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79214 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79215 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79216 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79217 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79218 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79219 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79220 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79221 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79222 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79223 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh
  79224 pts/0    S      0:00 /home/mwilson/src/ksh/arch/linux.i386-64/bin/ksh /tmp/ksh93.shtests.78477.18846/shcomp-io.ksh

This is happening on Linux. I have a Mint VM, as well as Ubuntu and CentOS. They all do it. They hang around forever.

For once, macOS does not do it. So far, anyway.

posguy99 commented 3 years ago

The wait freeze no longer occurs as well.

[625] mint $ arch/linux.i386-64/bin/ksh                                                                                
Version AJMv 93u+m/1.0.0-alpha+dev 2021-03-11
[ 6:18 PM][0 +2][~/src/ksh-213][master@d4adc8f]
[626] mint $ true <(true)
[ 6:18 PM][0 +2][~/src/ksh-213][master@d4adc8f]
[627] mint $ wait
[ 6:18 PM][0 +2][~/src/ksh-213][master@d4adc8f]
[628] mint $ 
McDutchie commented 3 years ago

Sounds great, thanks for testing everyone. I'll merge the pull request now.