-
Bug
-
Resolution: Done-Errata
-
Normal
-
rhel-7.0, rhel-8.9.0
-
ksh-20120801-263.el8
-
None
-
Low
-
sst_cs_plumbers
-
ssg_core_services
-
11
-
26
-
1
-
QE ack
-
False
-
-
None
-
None
-
Pass
-
Automated
-
If docs needed, set a value
-
-
Unspecified
-
None
1. Description of problem:
Using ksh across multiple versions of RHEL, customer reports that ksh scripts result in a segmentation fault when "." is in the PATH variable and a sub-process (pwd, ls, etc.) runs in a directory with a .paths sub-directory.
2. Version-Release number of selected component (if applicable):
Multiple versions of ksh (I used 20120801-143.el7_9)
3. How reproducible:
Always
4. Steps to Reproduce:
4.1. $ export PATH=${PATH}:.
4.2. $ vi crash.ksh
#!/bin/ksh
mkdir -p OK CRASH/.paths
echo "OK case: " 1>&2
ok=$(cd OK; pwd)
echo "OK case: pwd=${ok}" 1>&2
echo "crash case: " 1>&2
crash=$(cd CRASH; pwd)
echo "crash case: pwd=${crash}" 1>&2
4.3. $ chmod u+x crash.ksh
4.4. $ ./crash.ksh
5. Actual results:
OK case:
OK case: pwd=/../OK
crash case:
Segmentation fault
6. Expected results:
OK case:
OK case: pwd=/../OK
crash case:
crash case: pwd=/../CRASH
7. Additional info:
Customer reports that this occurs in multiple versions of RHEL, and therefore multiple versions of ksh. I performed a similar test in Fedora but did not encounter the reported problem.