From owner-freebsd-hackers Mon Aug 27 19:45:11 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by hub.freebsd.org (Postfix) with SMTP id E166437B407 for ; Mon, 27 Aug 2001 19:45:04 -0700 (PDT) (envelope-from kc5vdj@yahoo.com) Received: from mkc-65-28-47-209.kc.rr.com (HELO yahoo.com) (65.28.47.209) by smtp.mail.vip.sc5.yahoo.com with SMTP; 28 Aug 2001 02:45:04 -0000 X-Apparently-From: Message-ID: <3B8B05AF.9070004@yahoo.com> Date: Mon, 27 Aug 2001 21:45:03 -0500 From: Jim Bryant Reply-To: kc5vdj@yahoo.com User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Charlie & Cc: Steven Ames , FreeBSD-hackers@FreeBSD.ORG Subject: Re: TCSH bug... References: <3B8AC157.5000203@yahoo.com> <020701c12f43$8e0e2310$28d90c42@eservoffice.com> <3B8AC8DB.5090603@yahoo.com> <004801c12f49$66cccb20$28d90c42@eservoffice.com> <20010827201407.A32152@virtual-voodoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Charlie & wrote: > 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'. > Yeah, I had looked at it, but couldn't really see anything major when I did... That was a few months ago when I first noticed the problem. Someone recently commented in the tcsh/csh thread concerning the fact that the FreeBSD tcsh is maintained separately from the port, and nobody is really sure who is responsible for keeping the FreeBSD version both in sync, AND, csh compatable when called with the executable name "csh". Interesting to note that this has been fixed in the -port though, as opposed to the one that is installed by default. >>>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 >> > -- 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