From: Michael Prokop <news@michael-prokop.at>
To: zsh-workers@sunsite.dk
Subject: Re: Segfault on really long paths
Date: Wed, 31 Dec 2008 10:32:32 +0100 [thread overview]
Message-ID: <2008-12-31T10-10-40@devnull.michael-prokop.at> (raw)
In-Reply-To: <200812300706.08353.arvidjaar@newmail.ru>
[-- Attachment #1: Type: text/plain, Size: 1244 bytes --]
* Andrey Borzenkov <arvidjaar@newmail.ru> [20081230 05:06]:
> On Вторник 30 декабря 2008 03:19:51 Richard Hartmann wrote:
> > richih@adamantium ~ % for i in {1..1000}; do mkdir 0123456789; cd
> > 0123456789; done
> > [1] 24398 segmentation fault zsh
> > richih@adamantium ~ %
> > It would be better to throw an error than to segfault.
> Does not do here (Mandriva cooker):
> cooker% /bin/pwd > /tmp/foo
> cooker% wc /tmp/foo
> 1 1 11018 /tmp/foo
> cooker% echo $ZSH_VERSION
> 4.3.6-dev-0
> glibc-2.8-1.20080520.5mnb2
> Are you sure it is zsh and not (g)libc segfaulting?
At least Bash (3.2.39) doesn't segfault. I can see several:
| cd: error retrieving current directory: getcwd: cannot access parent directories: File name too long
messages while running but bash doesn't segfault.
Zsh (version 4.3.6 here) receives several EINVAL on readlink()
(using libc 2.7 of Debian/unstable). Then I can see lots of
(uncatched?) ENAMETOOLONG (not mentioning chdir() and stat64())
which seem to cause the segfault in zsh.
regards,
-mika-
--
,'"`. http://michael-prokop.at/
( grml.org -» Linux Live-CD for texttool-users and sysadmins
`._,' http://grml.org/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2008-12-31 9:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-30 0:19 Richard Hartmann
2008-12-30 4:05 ` Andrey Borzenkov
2008-12-31 9:32 ` Michael Prokop [this message]
2009-01-05 21:54 ` 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=2008-12-31T10-10-40@devnull.michael-prokop.at \
--to=news@michael-prokop.at \
--cc=zsh-workers@sunsite.dk \
--cc=zsh@michael-prokop.at \
/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).