From: Nico Golde <nion@debian.org>
To: 527171@bugs.debian.org, zsh-workers@sunsite.dk
Subject: Re: Bug#527171: [zsh] segfaults on long environment variables
Date: Wed, 6 May 2009 04:28:14 +0200 [thread overview]
Message-ID: <20090506022814.GS15109@ngolde.de> (raw)
In-Reply-To: <20090506013828.GB26437@scru.org>
[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]
Hi,
* Clint Adams <schizo@debian.org> [2009-05-06 04:12]:
> On Wed, May 06, 2009 at 02:35:05AM +0200, Nico Golde wrote:
> > export BLA=$(perl -e "print 'A' x 100000000;")
> >
> > results in zsh segfaulting:
> > [335969.515454] zsh[29005]: segfault at 7fff1b357858 ip 7fb5184a5855 sp 7fff1b357860 error 6 in libc-2.9.so[7fb518471000+149000]
>
> 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 ()
--
Nico Golde - http://www.ngolde.de - nion@jabber.ccc.de - GPG: 0x73647CFF
For security reasons, all text in this mail is double-rot13 encrypted.
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2009-05-06 2:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090506003505.GA29923@ngolde.de>
2009-05-06 1:38 ` Clint Adams
2009-05-06 2:28 ` Nico Golde [this message]
2009-05-06 19:41 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090506022814.GS15109@ngolde.de \
--to=nion@debian.org \
--cc=527171@bugs.debian.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).