home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!icdoc!cc.ic.ac.uk!carrion.cc.ic.ac.uk!vulture
- From: vulture@carrion.cc.ic.ac.uk (Thomas Sippel - Dau)
- Newsgroups: comp.unix.ultrix
- Subject: Network Bug Report - Korn Shell coredumps
- Keywords: ksh rlogin coredump
- Message-ID: <1992Jul29.181425.17596@cc.ic.ac.uk>
- Date: 29 Jul 92 17:14:25 GMT
- Reply-To: cmaae47@cc.ic.ac.uk
- Organization: Imperial College of Science, Technology and Medicine
- Lines: 108
- Nntp-Posting-Host: cscgc
-
- Hello,
-
- Is there any formal way in which DEC wants bugs reported through the network ?
-
- Anyway, I am getting a core dump from the korn shell, under the following
- circumstances:
-
- o korn shell is the login shell
- o an rlogin is attempted
- o the user has a .rhosts file
-
- In other words, logging in via telnet works (among others) from the same
- machines that rlogin fails, as does logging in when there is no .rhosts file.
-
- If there is no .rhosts, rlogin does not ask for a password when coming
- in from an equivalenced host. If there is one, rlogin asks for a password
- when coming in from a host that is equivalenced or validated by .rhosts.
- The login fails with the following error messages:
-
- carrion$ rlogin ruby.ge -l cmaae47
- Password: <-- N.B. should not ask here
- Last login: Wed Jul 29 17:15:37 from gecdb
- ULTRIX V4.2A (Rev. 47) System #1: Thu Mar 26 11:11:39 EST 1992
- UWS V4.2A (Rev. 420)
- *** welcome to ruby.ge
- Fixed up unaligned data access for pid 17100 (ksh) at pc 0x40ce18
- Fixed up unaligned data access for pid 17100 (ksh) at pc 0x40cea0
- /etc/profile[73]: 17173 Memory fault(coredump)
- Connection closed.
-
- around line 73 of /etc/profile there is:
-
- # We use the hname script to translate the interface name into the
- # vulgar name of the machine. This is then used to define the system prompt.
- #
- HOSTNAME=`hname` export HOSTNAME <-- This is the offending line
- PS1=${HOSTNAME}'$ ' export PS1
- PS2=../ export PS2
-
- The hname script is:
-
- ruby$ cat /bin/hname
- #!/bin/ksh
- #
- # hname returns the vulgar name of a system, or the interface name
- #
- hn=$(hostname)
- case $hn in
- (gecmda) print diamond;;
- (gecdb) print ruby;;
- (gecdc) print sapphire;;
- (gecdd) print peridot;;
- (gecde) print emerald;;
- (gecdf) print jasper;;
- (gecdg) print topaz;;
- (gecdh) print quartz;;
- (gecdi) print platinum;;
- (gecdj) print gold;;
- (gecdk) print garnet;;
- (gecdl) print osmium;;
- (gecdm) print corund;;
- (gecdn) print jade;;
- (gecdo) print korall;;
- (*) print $hn;;
- esac
- ruby$ <-- N.B. this shows other logins work
-
- All very pedestrian stuff, I should think.
-
- From dbx I get:
- ruby$ dbx /bin/ksh core
- dbx version 2.10.1
- Type 'help' for help.
- Corefile produced from file "ksh"
- Child died at pc 0x40da70 of signal : Segmentation fault
- reading symbolic information ...
- warning: /bin/ksh has no symbol table -- very little is supported without it
-
-
- [using memory image in core]
- (dbx) where
- > 0 .(0x414db4, 0x1e, 0x1000ee61, 0x0, 0x7) [0x40da6c]
- (dbx) q
- ruby$ ls -l core /bin/ksh
- -rwxr-xr-x 1 root 253952 Apr 7 13:49 /bin/ksh
- -rw------- 1 cmaae47 81920 Jul 29 17:15 core
- ruby$
-
-
- The corefile is in canned form available on request, if somebody wants to look
- at it. I don't particularly want to raise a formal fault report with our
- support crowd, but will do so if I am asked to, or if I get no acknowledgement
- of this one. For the record:
-
- Institution: Imperial College of Science, Technology and Medicine
- Hardware: DECstation 5000/133
- Serial-No: Many, but specific ones can be supplied if necessary
- Impact: Not greatly affected
- Workaround: Several available
- Date found: Wed Jul 29 1992
- Reported by: cmaae47@cc.ic.ac.uk (Thomas Sippel - Dau)
- /usr/people/vulture/
- --
- *** This is the operative statement, all previous statements are inoperative.
- * email: cmaae47 @ cc.ic.ac.uk (Thomas Sippel - Dau) (uk.ac.ic.cc on Janet)
- * voice: +44 71 589 5111 x4937 or 4934 (day), or +44 71 823 9497 (fax)
- * snail: Imperial College of Science, Technology and Medicine
- * The Center for Computing Services, Kensington SW7 2BX, Great Britain
-