zsh-workers
 help / color / mirror / code / Atom feed
From: DervishD <zsh@dervishd.net>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: [Bug] ZSH segmentation fault
Date: Sun, 3 Jun 2007 18:43:56 +0200	[thread overview]
Message-ID: <20070603164356.GA21731@DervishD> (raw)
In-Reply-To: <200706031430.l53EUOPN017562@pws-pc.ntlworld.com>

    Hi Peter :)

 * Peter Stephenson <p.w.stephenson@ntlworld.com> dixit:
> Hmm... you've made the shell use massive amounts of memory and it's
> crashed when it didn't have enough.
[...]
> The only general fix, or at least graceful get out, for crashes like
> this is for every memory access in zsh to be error checked and abort if
> it fails.  There are very, very many of these and it still doesn't help
> you run programmes requiring large amounts of memory.

    While I understand that running such scripts is very unusual, I
think that just segfaulting is not a correct way of dealing with errors.
For example, in my zsh 4.2.6 I get a segfault when trying to complete
very long file names (I reported that, but it's just an example). If I
try to run a script that eats all the memory, the shell will segfault
too. In the second case I'm the culprit, because really the shell is not
intended to do that job; in the first case I'm not guilty, but the shell
behaved the same. Moreover, even in the first case I think that it's
better to abort, that way you can try to reproduce the error in a
non-login shell and get a sensible error message when the shell crashes
instead of just a crash.

    Just my 0.02 euros, and of course I'm not critizising anything since
I'm not the one who has to fix every memory allocation O:)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!


  reply	other threads:[~2007-06-03 16:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <matthieu.kermagoret@epita.fr>
2007-06-03 10:02 ` matthieu kermagoret
2007-06-03 14:30   ` Peter Stephenson
2007-06-03 16:43     ` DervishD [this message]
2007-06-03 17:36       ` Peter Stephenson
2007-06-03 19:16         ` DervishD
2007-06-04  0:55         ` Bart Schaefer

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=20070603164356.GA21731@DervishD \
    --to=zsh@dervishd.net \
    --cc=p.w.stephenson@ntlworld.com \
    --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).