Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

4.0.6 bug: out of memory with ulimit



Hi people,

Season's greetings to you all.

Time for a report after 9 years away from zsh development...
It's nice to see that many people of that time are still around :-)

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" when I start the
executable. This doesn't happen with 4.0.4. I tried 4.0.6 with the
original distribution and with Debian's patches. The Debian binary,
which uses dynamic loading, also chokes. The problem goes away if I
remove the -v 1048576 portion of the line.

This is the config I used:

./configure --prefix=/usr --bindir=/bin --mandir=/usr/share/man --infodir=/usr/share/info --enable-maildir-support --enable-max-jobtable-size=256 --enable-function-subdirs --enable-site-fndir=/usr/local/share/zsh/site-functions --with-curses-terminfo --enable-etcdir=/etc/zsh --disable-dynamic

Independently of my .zshenv and other init files, I find it strange
that the program doesn't run because the memory limitation is not at
all stringent.

If there's something else useful to inform please tell me.



Messages sorted by: Reverse Date, Date, Thread, Author