Axp-List Archive
Re: Stack size limits too low, XEmacs crashes

Subject: Re: Stack size limits too low, XEmacs crashes
From: David Huggins-Daines (dhd@linuxcare.com)
Date: Sat Apr 8 11:59:00 2000


Johannes Nix <jnix@medi.physik.uni-oldenburg.de> writes:

> To get higher limits by default, it seems necessary to write them
> in /etc/security/limits.conf, and also to set them with
> the ulimit shell command in the startup scripts for the
> daemons like sshd or atd. Stack limits are inherited by
> the parent processes and so each parent daemon has to
> be restarted.

If you really want to set them systemwide, the best thing to do is to
create an /etc/initscript which sets them (see `man 5 initscript').
Then anything started by init (i.e. everything) will inherit whatever
limits or environment variables you set there.

/etc/security/limits.conf is useful for setting non-systemwide limits,
such as if you wanted to have different limits for different users or
groups.

> If my assumption matches the true cause for the problem,
> it would seem reasonable that distributors increase stack
> size limits for the alpha.

Hm, interesting. I don't know where the default limits are set,
perhaps in the bash configuration process?

> Would you agree about this ? Why might a program need more
> stack when running on the alpha?

Well, pointers are 8 bytes wide, and a lot of pointers tend to live on
the stack. I think the stack frame format on the Alpha is a bit more
complex than on other architectures, too.

-- 
David Huggins-Daines, Senior Linux Consultant, Linuxcare, Inc.
613.562.1239 desk, 613.223.0225 mobile
dhd@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.

-- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com



This archive was generated by hypermail version 2a22 on Mon May 1 18:42:01 2000 PDT
Send any problems or questions about this archive to webmaster@alphalinux.org.