From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6422 invoked from network); 6 May 2009 02:37:48 -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.2 required=5.0 tests=BAYES_00,URI_HEX autolearn=no 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; 6 May 2009 02:37:48 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 7749 invoked from network); 6 May 2009 02:37:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 May 2009 02:37:42 -0000 Received: (qmail 9877 invoked by alias); 6 May 2009 02:37:37 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26936 Received: (qmail 6532 invoked from network); 6 May 2009 02:30:15 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 6 May 2009 02:30:15 -0000 Received: from mo-p05-ob.rzone.de (mo-p05-ob.rzone.de [81.169.146.180]) by bifrost.dotsrc.org (Postfix) with ESMTP id 23A3C80590A3 for ; Wed, 6 May 2009 04:29:06 +0200 (CEST) X-RZG-AUTH: :KHkJeFmIefYsEPPKCBl/ZNLv/wXfcKuujweZef2IiPbnG1Hpql+PuSVCX//GuiSNEdg= X-RZG-CLASS-ID: mo05 Received: from ngolde.de (e178225200.adsl.alicedsl.de [85.178.225.200]) by post.strato.de (fruni mo14) (RZmta 18.31) with ESMTP id d01cbbl460qVTm ; Wed, 6 May 2009 04:29:42 +0200 (MEST) Received: by ngolde.de (Postfix, from userid 1000) id 41470A314A; Wed, 6 May 2009 04:28:14 +0200 (CEST) Date: Wed, 6 May 2009 04:28:14 +0200 From: Nico Golde To: 527171@bugs.debian.org, zsh-workers@sunsite.dk Subject: Re: Bug#527171: [zsh] segfaults on long environment variables Message-ID: <20090506022814.GS15109@ngolde.de> References: <20090506003505.GA29923@ngolde.de> <20090506013828.GB26437@scru.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VmyrZ50r30oK77nV" Content-Disposition: inline In-Reply-To: <20090506013828.GB26437@scru.org> X-Mailer: netcat 1.10 X-GPG: 0x73647cff X-Virus-Scanned: ClamAV 0.92.1/9331/Wed May 6 01:58:14 2009 on bifrost X-Virus-Status: Clean --VmyrZ50r30oK77nV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, * Clint Adams [2009-05-06 04:12]: > On Wed, May 06, 2009 at 02:35:05AM +0200, Nico Golde wrote: > > export BLA=3D$(perl -e "print 'A' x 100000000;") > >=20 > > results in zsh segfaulting: > > [335969.515454] zsh[29005]: segfault at 7fff1b357858 ip 7fb5184a5855 sp= 7fff1b357860 error 6 in libc-2.9.so[7fb518471000+149000] >=20 > The segfault is not in the assignment but in the export (zputenv). Yes: gdb> bt #0 0x00007f7d977fb855 in ?? () from /lib/libc.so.6 #1 0x0000000000470725 in zputenv () #2 0x0000000000470853 in addenv () #3 0x000000000046b2b5 in export_param () #4 0x000000000046b879 in setstrvalue () #5 0x000000000046cd3a in assignsparam () #6 0x00000000004170d5 in ?? () #7 0x00000000004194b2 in bin_typeset () #8 0x0000000000410418 in execbuiltin () #9 0x0000000000430668 in ?? () #10 0x000000000042bf65 in ?? () #11 0x000000000042b15f in ?? () #12 0x000000000042a867 in execlist () #13 0x000000000042a2f2 in execode () #14 0x0000000000445bfa in loop () #15 0x0000000000448a62 in zsh_main () #16 0x000000000040f9b7 in main () --=20 Nico Golde - http://www.ngolde.de - nion@jabber.ccc.de - GPG: 0x73647CFF For security reasons, all text in this mail is double-rot13 encrypted. --VmyrZ50r30oK77nV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkoA9b4ACgkQHYflSXNkfP9I5gCeJGOUAQYBPkREBF1zNbhCxnon R94An0OSruMY1LAmxaENITJJ2AwEw079 =r09F -----END PGP SIGNATURE----- --VmyrZ50r30oK77nV--