Public bug reported:

KSH uses .paths file in any directory in $PATH to define certain
variables. If, however, .paths is a directory instead of a file, ksh
fails immediately after invocation:

field@abipd:~$ echo $PATH
/home/field:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
field@abipd:~$ ksh
$ exit
field@abipd:~$ mkdir /home/field/.paths
field@abipd:~$ ksh
$ Segmentation fault (core dumped)
field@abipd:~$ rm -rf /home/field/.paths
field@abipd:~$ ksh
$ exit
field@abipd:~$ ksh --version
  version         sh (AT&T Research) 93u+ 2012-08-01
field@abipd:~$


kulhan@abipd:~$ lsb_release -rd
Description:    Ubuntu 14.04.2 LTS
Release:        14.04
kulhan@abipd:~$ apt-cache policy ksh
ksh:
  Installed: 93u+20120801-1
  Candidate: 93u+20120801-1
  Version table:
 *** 93u+20120801-1 0
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/universe 
amd64 Packages
        100 /var/lib/dpkg/status
kulhan@abipd:~$

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ksh 93u+20120801-1
ProcVersionSignature: Ubuntu 3.13.0-37.64-generic 3.13.11.7
Uname: Linux 3.13.0-37-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.10
Architecture: amd64
Date: Fri Jan 15 23:27:17 2016
Dependencies:
 gcc-4.9-base 4.9.1-0ubuntu1
 libc6 2.19-0ubuntu6.6
 libgcc1 1:4.9.1-0ubuntu1
 multiarch-support 2.19-0ubuntu6.6
Ec2AMI: ami-141c807c
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-east-1b
Ec2InstanceType: t2.medium
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ProcEnviron:
 TERM=vt420
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ksh
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ksh (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug ec2-images trusty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1534855

Title:
  ksh crashes if .paths is a directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ksh/+bug/1534855/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to