From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id BAA27037 for ; Tue, 9 Jul 1996 01:16:15 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id KAA07755; Mon, 8 Jul 1996 10:58:46 -0400 (EDT) Resent-Date: Mon, 8 Jul 1996 10:58:46 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199607081454.QAA11266@turan.elte.hu> Subject: Re: zsh-3.0-pre2 cores on irix 5.3 (?) To: A.Main@dcs.warwick.ac.uk (Zefram) Date: Mon, 8 Jul 1996 16:54:47 +0200 (MET DST) Cc: zsh-workers@math.gatech.edu In-Reply-To: <28294.199607080737@stone.dcs.warwick.ac.uk> from Zefram at "Jul 8, 96 08:37:37 am" Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368 X-Mailer: ELM [version 2.4ME+ PL15 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"59qRG.0.1v1.b8Iun"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1578 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > >+ #ifdef DEBUG > >+ int oasp = toplevel ? 0 : alloc_stackp; > >+ #endif > > Huh? If we're at the top level, alloc_stackp is 0 anyway. Even if > there are bugs, it's 0 at this point -- the beginning of the function. > Or can loop() be called more than once with toplevel!=0? run_init_scripts() is called before loop(1) which can mess up alloc_stackp. Also debug tests should notice even seemingly impossible bugs. Signal traps can always cause surprises. E.g. in execcmd() _very_ weird things happened before introducing execsave()/execrestore() in dotrap(). For example variables suddenly changed between two instructions. Of course this can still happen any time a global or static variable is used but now it does not happen as often as before. Zoltan