From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5661 invoked from network); 8 Apr 2000 19:01:35 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Apr 2000 19:01:35 -0000 Received: from tarwebok (mail@ppp0a003.std.com [208.192.100.3]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA27935 for ; Sat, 8 Apr 2000 15:01:31 -0400 Received: from dhd by tarwebok with local (Exim 3.12 #1 (Debian)) id 12e0Rh-0004VF-00 for ; Sat, 08 Apr 2000 14:59:01 -0400 To: axp-list@redhat.com Subject: Re: Stack size limits too low, XEmacs crashes References: <20000406185916.A943@medi.physik.uni-oldenburg.de> From: David Huggins-Daines Date: 08 Apr 2000 14:59:00 -0400 Message-ID: <87r9cg2zd7.fsf@tarwebok.thepuffigroup.com> User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Johannes Nix 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.