From owner-freebsd-hackers Mon Aug 27 18:14:17 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from virtual-voodoo.com (bdsl.66.12.217.106.gte.net [66.12.217.106]) by hub.freebsd.org (Postfix) with ESMTP id 0441A37B405 for ; Mon, 27 Aug 2001 18:14:11 -0700 (PDT) (envelope-from steve@virtual-voodoo.com) Received: (from root@localhost) by virtual-voodoo.com (8.11.6/8.11.5) id f7S1E7C89871; Mon, 27 Aug 2001 20:14:07 -0500 (EST) (envelope-from steve) Date: Mon, 27 Aug 2001 20:14:07 -0500 From: Charlie & To: Steven Ames Cc: kc5vdj@yahoo.com, FreeBSD-hackers@FreeBSD.ORG Subject: Re: TCSH bug... Message-ID: <20010827201407.A32152@virtual-voodoo.com> References: <3B8AC157.5000203@yahoo.com> <020701c12f43$8e0e2310$28d90c42@eservoffice.com> <3B8AC8DB.5090603@yahoo.com> <004801c12f49$66cccb20$28d90c42@eservoffice.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <004801c12f49$66cccb20$28d90c42@eservoffice.com>; from steve@virtual-voodoo.com on Mon, Aug 27, 2001 at 05:41:21PM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Aug 27, 2001 at 05:41:21PM -0500, Steven Ames wrote: > > -current from saturday... > > > > And I've noticed it for a few months, just forgot about it until last > night... > > > > Also, you failed to duplicate the test... Try answering "NO" when it > asks... > > OK. Yep. I see the same results. I believe that when you say 'no' tcsh tries > to > get clever and remove that command from your command stack (history). The > relevent code is in tc.func.c starting at line 1238. I don't see anything > obviously > silly... I'll do a bit of debugging though. Hrm... The code all looks good. The offending bit is in tc.func.c between lines 1245 and 1254 (one block). While removing items from a doubly linked list tmp->next gets set to an invalid pointer. The code itself looks good so the list getting passed to it must be flawed. That'll take some real effort to track down. Interesting datapoint though... tcsh from ports doesn't have this problem. Though I don't see any code changes between the two that could cause this, so it'd have to be in compile time options or 'config'. -Steve > > -Steve > > > Steven Ames wrote: > > > > > Under -CURRENT? > > > > > > virtual-voodoo# touch 0 1 2 3 4 5 6 7 8 9 > > > virtual-voodoo# ls > > > 0 1 2 3 4 5 6 7 8 > 9 > > > virtual-voodoo# set rmstar > > > virtual-voodoo# rm * > > > Do you really want to delete all files? [n/y] y > > > virtual-voodoo# ls > > > virtual-voodoo# > > > > > > version tcsh 6.10.00 (Astron) 2000-11-19 (i386-intel-FreeBSD) options > > > 8b,nls,dl,al,kan,sm,rh,color,dspm > > > > > > I'm not seeing this problem... This is from -CURRENT from about 2 hours > ago. > > > > > > -Steve > > > > > > ----- Original Message ----- > > > From: "Jim Bryant" > > > To: > > > Sent: Monday, August 27, 2001 4:53 PM > > > Subject: TCSH bug... > > > > > > > > > > > >>Sorry if this doesn't go here... I don't know where else to put it... > > >> > > > Please forward it to the correct people. > > > > > >>With: > > >> > > >>set rmstar > > >> > > >>in your .cshrc, perform the following operations: > > >> > > >>-------------------------------------------------------------- > > >> 4:49:49pm wahoo(49): tcsh > > >> 4:49:51pm wahoo(1): mkdir bs > > >> 4:49:54pm wahoo(2): cd bs > > >> 4:49:56pm wahoo(3): touch 1 2 3 4 5 6 7 8 9 0 > > >> 4:50:02pm wahoo(4): ls > > >>. .. 0 1 2 3 4 5 6 > 7 > > >> > > > 8 9 > > > > > >> 4:50:05pm wahoo(5): rm * > > >>Do you really want to delete all files? [n/y] n > > >>Bus error (core dumped) > > >> 4:50:10pm wahoo(50): cd bs > > >> 4:50:19pm wahoo(51): ls > > >>. .. 0 1 2 > > >> > > > 3 4 5 6 > > > > > >> 7 8 9 tcsh.core > > >> 4:50:20pm wahoo(52): > > >>--------------------------------------------------------------- > > >> > > >>Whazzup? This will always happen, iff you select to not rm * > > >> > > >>jim > > >>-- > > >>ET has one helluva sense of humor! > > >>He's always anal-probing right-wing schizos! > > >> > > >> > > >>_________________________________________________________ > > >>Do You Yahoo!? > > >>Get your free @yahoo.com address at http://mail.yahoo.com > > >> > > >> > > >>To Unsubscribe: send mail to majordomo@FreeBSD.org > > >>with "unsubscribe freebsd-hackers" in the body of the message > > >> > > >> > > > > > > > > > -- > > ET has one helluva sense of humor! > > He's always anal-probing right-wing schizos! > > > > > > _________________________________________________________ > > Do You Yahoo!? > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message