From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5623 invoked from network); 20 Aug 2005 01:29:09 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 Aug 2005 01:29:09 -0000 Received: (qmail 33973 invoked from network); 20 Aug 2005 01:29:03 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Aug 2005 01:29:03 -0000 Received: (qmail 1891 invoked by alias); 20 Aug 2005 01:28:57 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9333 Received: (qmail 1881 invoked from network); 20 Aug 2005 01:28:56 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 20 Aug 2005 01:28:56 -0000 Received: (qmail 32882 invoked from network); 20 Aug 2005 01:28:56 -0000 Received: from wproxy.gmail.com (64.233.184.206) by a.mx.sunsite.dk with SMTP; 20 Aug 2005 01:28:48 -0000 Received: by wproxy.gmail.com with SMTP id i20so677725wra for ; Fri, 19 Aug 2005 18:28:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VEyjMEWEo1hcEeXa/GCrZC3/dB9JkGmjvjiv/7MIPV4HVi0wnU7bUUeUcQ9+De9hekchCODVVRqr2G8wO4rwhqUF+JEPwN0CKTeDKUuX8JQzZc3dvPIY163ucc4BH1I/eJosKD4twgD2bj7bZS3I3tUbidEQrD2GHdzZskuMH0A= Received: by 10.54.153.7 with SMTP id a7mr2254244wre; Fri, 19 Aug 2005 18:28:44 -0700 (PDT) Received: by 10.54.121.5 with HTTP; Fri, 19 Aug 2005 18:28:44 -0700 (PDT) Message-ID: <488030720508191828559c3131@mail.gmail.com> Date: Fri, 19 Aug 2005 18:28:44 -0700 From: John Reese To: zsh-users Subject: Re: Segfault in zsh 4.2.5 in assignment to array variable tied to unset scalar. In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <48803072050819144774459984@mail.gmail.com> X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RCVD_BY_IP autolearn=ham version=3.0.4 Well, I don't "want" to do it. It happened by accident. I just think that if one half of a tied pair is unset, the tie status on the remaining variable should be removed. And even if it should be an error, there shouldn't be a segfault. 2005/8/19, William Scott : >=20 > I verified this on ubuntu linux and also OS X v. 10.4, 4.2.5 gives a seg > fault; 4.2.3 reports a bus error. >=20 > But why would you want to do this? >=20 > On Fri, 19 Aug 2005, John Reese wrote: >=20 > > Howdy. > > > > ofb:3% zsh --version 14:= 40 ofb:~ > > zsh 4.2.5 (i686-pc-linux-gnu) > > ofb:3% STRING=3Da:b 1= 4:40 ofb:~ > > ofb:3% typeset -T STRING string 14:= 40 ofb:~ > > ofb:3% unset STRING 14:= 40 ofb:~ > > ofb:3% set -A string x y z 14:= 40 ofb:~ > > zsh: 18569 segmentation fault zsh > > > > I'm told this also happens in 4.2.1. > > >