zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Segfaulting script
Date: Sat, 17 Jun 2006 21:47:33 -0700	[thread overview]
Message-ID: <060617214733.ZM691@torch.brasslantern.com> (raw)
In-Reply-To: <20060617181417.GA19721@fsst.voodoo.lan>

On Jun 17,  8:14pm, Frank Terbeck wrote:
}
} > You can't assign values to an array in a "local" statement.
} 
} Yes, I know that the assignment does not make sense.

Certainly.  I was just pointing out for the peanut gallery exactly what
went wrong.
 
} > My guess would be that you get a segfault when the compile-time
} > setting of the maximum function depth is large enough that you run
} > out of memory before the limit is hit. There's not a whole lot we
} > can do about that.
} 
} Hm, definitely no nice, but I trust your judgement.

It might be possible to estimate a run-time value for the recursion
depth based on ulimit sizes, but some OSs are willing to overpromise on
memory allocations in the hope that all that was asked for will never
really be used.  In such a case there's no way to avoid the segfault if
more is used than truly is available.


      reply	other threads:[~2006-06-18  4:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-13 23:15 Andrew Ruder
2006-06-16 11:03 ` Frank Terbeck
2006-06-17 17:11   ` Bart Schaefer
2006-06-17 18:14     ` Frank Terbeck
2006-06-18  4:47       ` Bart Schaefer [this message]

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=060617214733.ZM691@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).