[8425] in Athena Bugs

home help back first fref pref prev next nref lref last post

Tcsh coredumping on DEC3100's

daemon@ATHENA.MIT.EDU (wchuang@Athena.MIT.EDU)
Thu Oct 17 22:57:26 1991

From: wchuang@Athena.MIT.EDU
Date: Thu, 17 Oct 91 22:58:22 -0400
To: bugs@Athena.MIT.EDU


Running Athena tcsh (/bin/athena/tcsh) on a Decstation 3100
(hydrox-cookie) with lineedit set, doing:

	~^Z
or
	~^D

without (set filec), causes tcsh to seg violate.  We discovered that it
was dependent on the number of entries in /etc/passwd:

Given an /etc/passwd with the following entries in it:

root:GvBB7e0KIrlg.:0:1:System PRIVILEGED Account:/:/bin/athena/tcsh
operator:PASSWORD HERE:0:28:Operator PRIVILEGED Account:/opr:/opr/opser
ris:Nologin:11:11:Remote Installation Services Account:/usr/adm/ris:/bin/sh
daemon:*:1:1:Mr Background:/:
sys:PASSWORD HERE:2:3:Mr Kernel:/usr/sys:
bin:PASSWORD HERE:3:4:Mr Binary:/bin:
goop:*:2006:101:Nobody,GOOP,11-221,2587047,2473687:/mit/goop:/bin/csh
wchuang:*:3469:101:Mithrandir,Gandalf,the West,2531923,6610842:/mit/wchuang:/
bin/csh
timo:*:11615:101:Tim O'Malley,Ghost,11-115,31923,5762792:/mit/timo:/bin/csh

Doing a completion on:

	~r

will crash tcsh.  ~s and ~d won't, etc.
This doesn't happen on VAX3100's or RS/6000s.  It was also duplicated by
people in SIPB and Ted Ts'o:

		It's a personal message from tytso!
		22:54:08     Thu Oct 17 1991 TSX-11
OK, that confirms what I've found; it's Ultrix-specific, and it happens
when you tcsh tries to print the possible completions on a twiddle-expansion.
(If you bind a key to complete_print, then whenever you try to complete
a ~ thing, it will crash.)
				   Theodore Y. Ts'o

My own testing finds that this happens only for /bin/athena/tcsh and not
for SIPB or watchmaker tcsh.

-William

home help back first fref pref prev next nref lref last post