From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 314 invoked from network); 8 Jan 2009 11:39:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 8 Jan 2009 11:39:51 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 38717 invoked from network); 8 Jan 2009 11:39:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 8 Jan 2009 11:39:46 -0000 Received: (qmail 21346 invoked by alias); 8 Jan 2009 11:39:41 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26256 Received: (qmail 21331 invoked from network); 8 Jan 2009 11:39:41 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 8 Jan 2009 11:39:41 -0000 Received: from flock1.newmail.ru (flock1.newmail.ru [82.204.219.207]) by bifrost.dotsrc.org (Postfix) with SMTP id 867A1802720C for ; Thu, 8 Jan 2009 12:39:37 +0100 (CET) Received: (qmail 7461 invoked from network); 8 Jan 2009 11:39:39 -0000 Received: from unknown (HELO cooker.localnet) (arvidjaar@newmail.ru@91.77.194.86) by smtpd.newmail.ru with SMTP; 8 Jan 2009 11:39:39 -0000 From: Andrey Borzenkov To: zsh-workers@sunsite.dk Subject: zsh crash on assignment to $options Date: Thu, 8 Jan 2009 14:39:32 +0300 User-Agent: KMail/1.10.92 (Linux/2.6.28-1avb; KDE/4.1.85; i686; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2087843.OKk8JCItcl"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200901081439.34695.arvidjaar@newmail.ru> X-Virus-Scanned: ClamAV 0.92.1/8843/Thu Jan 8 07:01:58 2009 on bifrost X-Virus-Status: Clean --nextPart2087843.OKk8JCItcl Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I got this on after typeset -A __opts __opts=3D${(kv)options} echo ${options[shwordsplit]} emulate -R sh echo ${options[shwordsplit]} options=3D$__opts Stack trace: (gdb) bt #0 0x08098427 in setstrvalue (v=3D0xbfbf1fbc, val=3D0x9028050 "autolist on printexitvalue off kshzerosubscript off=20 histreduceblanks off chaselinks off extendedglob off histnostore off=20 automenu on globcomplete off unset on listpacked off promptsubst off=20 shwordspli"...) at params.c:2273 #1 0x0809cf1a in assignsparam (s=3D0xb80b82cb "", val=3D0x9028050 "autolist on printexitvalue off kshzerosubscript off=20 histreduceblanks off chaselinks off extendedglob off histnostore off=20 automenu on globcomplete off unset on listpacked off promptsubst off=20 shwordspli"..., flags=3D) at params.c:2617 #2 0x08065c26 in addvars (state=3D0xbfbf211c, pc=3D, addflags=3D) at exec.c:2112 #3 0x08065e7b in execsimple (state=3D0xbfbf211c) at exec.c:1002 #4 0x0806c426 in execlist (state=3D0xbfbf211c, dont_change_job=3D0,=20 exiting=3D0) at exec.c:1112 #5 0x0806cb1e in execode (p=3D0xb80b8280, dont_change_job=3D0, exiting=3D0) at exec.c:975 #6 0x0807e08c in loop (toplevel=3D1, justonce=3D0) at init.c:181 #7 0x0807f726 in zsh_main (argc=3D2, argv=3D0xbfbf2224) at init.c:1406 #8 0x08052a8f in main (argc=3D0, argv=3D0x9025050) at ./main.c:93 Using ${(kv)__opts[*]} works (and above is likely an error) still shell=20 probably should not react that badly to simple user error. --nextPart2087843.OKk8JCItcl Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkll5fYACgkQR6LMutpd94zLUwCgkhWKu0/dkdGdtXMYUpDmEyrG UD4AoIa0Sy6G7pCIs8F4l487oq2uDNFY =xKUj -----END PGP SIGNATURE----- --nextPart2087843.OKk8JCItcl--