From owner-freebsd-current Sat Jul 20 21:50: 9 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFC2B37B400; Sat, 20 Jul 2002 21:50:04 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7E0343E42; Sat, 20 Jul 2002 21:50:03 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id OAA09468; Sun, 21 Jul 2002 14:49:58 +1000 Date: Sun, 21 Jul 2002 14:54:00 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Bakul Shah Cc: current@FreeBSD.ORG, Subject: Re: suspend bug In-Reply-To: <20020721141841.H18880-100000@gamplex.bde.org> Message-ID: <20020721145145.R19118-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 21 Jul 2002, Bruce Evans wrote: > On Thu, 18 Jul 2002, Bakul Shah wrote: > > > Try this: > > > > $ csh > > % su > > Password: > > % stop $$ > > > > Suspended (signal) > > %fg > > > > At which point you will lose you login shell. > > > > Prior to KSE one could switch between an su'ed shell and a > > normal shell at will by using stop $$ and fg. > > Some more details: > - this happens for csh but not for bash-1. > - ktracing everything shows further strange behaviour. ktrace causes a > kernel printf "Out of ktrace request objects.". The login shell is > not lost immediately. You get a shell prompt, but at least tty echo is > broken, and hitting return a few times causes all the shells to exit. > > > Is this breakage considered a bug or a feature? > > Bug. The bug is actually in su. It happens with a pre-KSEIII kernel. Backing out rev.1.54 of su.c (which was apparently supposed to fix a related bug tcsh's fg command) fixes it. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message