zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: 4.0.6 bug: out of memory with ulimit
Date: Tue, 31 Dec 2002 16:04:05 +0000	[thread overview]
Message-ID: <1021231160405.ZM25659@candle.brasslantern.com> (raw)
In-Reply-To: <15885.10892.679601.764518@fisica.ufpr.br>

On Dec 28,  2:37am, Carlos Carvalho wrote:
}
} I've stumbled on what I consider a bug in 4.0.6: if I use this command
} in /etc/zshenv
} 
}   ulimit -HS -d 1048576 -v 1048576
} 
} I get "/etc/zsh/zshrc:-1: fatal error: out of memory"

This is a bug in the C preprocessor #ifdefs in the code that interprets
the ulimit command.  It's pretty tangled what with trying to compensate
for about three different possible implementations, and we haven't got
it straightened out yet.  The effect of the bug is that the argument to 
-v is interpreted as bytes rather than kbytes.

If you use the "limit" command instead of "ulimit" this bug does not
occur:

    limit -hs datasize 1048576 vmemorysize 1048576

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


      reply	other threads:[~2002-12-31 16:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-28  4:37 Carlos Carvalho
2002-12-31 16:04 ` 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=1021231160405.ZM25659@candle.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).