From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19992 invoked from network); 8 Sep 2001 18:48:12 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 Sep 2001 18:48:12 -0000 Received: (qmail 21352 invoked by alias); 8 Sep 2001 18:48:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15761 Received: (qmail 21341 invoked from network); 8 Sep 2001 18:48:01 -0000 From: Bart Schaefer Message-Id: <1010908184745.ZM19990@candle.brasslantern.com> Date: Sat, 8 Sep 2001 18:47:45 +0000 In-Reply-To: <20010908113425.A27879@dman.com> Comments: In reply to Clint Adams "Re: segfaults in 4.0.2" (Sep 8, 11:34am) References: <010907170335.ZM18221@candle.brasslantern.com> <20010908015928.A21707@dman.com> <1010908070005.ZM18696@candle.brasslantern.com> <20010908113425.A27879@dman.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Clint Adams Subject: Re: segfaults in 4.0.2 Cc: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 8, 11:34am, Clint Adams wrote: } } Yes. It doesn't happen with -f. } I can reproduce it this way: } } prompt ${${(z):-adam1 adam2 bigfade clint elite2}[RANDOM%5]} } coproc || echo test Hmm, the `pc' field in the wordcode state struct is messed up: Breakpoint 1, ecgetstr (s=0xbffff6bc, dup=0, tok=0x0) at ../../zsh-4.0/Src/parse.c:2102 2102 wordcode c = *s->pc++; (gdb) n 2105 if (c == 6 || c == 7) (gdb) p s->strs $6 = 0x4011b190 "echo" (gdb) p c $7 = 1074856044 This causes ecgetstr() to return a garbage pointer. We may have to wait for Sven to get back ... -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net