Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Bill Crutchfield <wyc@mothra.lbl.gov>
Subject: can't get enough stack memory
Date: 1996/06/03	[thread overview]
Message-ID: <31B3482C.794B@mothra.lbl.gov> (raw)


On Dec Unix 3.2C, we have the following problem: we can't get all the
stackspace that we are supposed to get.

To be precise: the following program will coredump with a segmentation
violation

        program cat
        real x(12*1024*1024/4)
        x(1) = 1.
        write(6,*)x(1)
        stop
        end

This program, if compiled with f77 -automatic will die when running.  If
I omit '-automatic' (which then causes x to be allocated in bss), then
it runs fine.  If I reduce the size of the array to 11 megabytes, it
runs fine.

We have lots of RAM, so that's not our problem.  Our system has been
configured with sysconfig to have a maximum stackspace of 32 meg.  Here
is what limits reports:
% limit  
cputime         unlimited
filesize        unlimited
datasize        131072 kbytes
stacksize       32768 kbytes
coredumpsize    unlimited
memoryuse       250088 kbytes
descriptors     4096 files
addressspace    1048576 kbytes

% limit -h
cputime         unlimited
filesize        unlimited
datasize        1048576 kbytes
stacksize       32768 kbytes
coredumpsize    unlimited
memoryuse       250088 kbytes
descriptors     4096 files
addressspace    1048576 kbytes


Does anyone have an explanation/fix for this?  What else needs to be
tuned?
-- 
W. Y. Crutchfield
WYcrutchfield@lbl.gov
Center for Computational Sciences and Engineering    PHONE 510-486-5263
Lawrence Berkeley National Laboratory                FAX   510-486-6900



                 reply	other threads:[~1996-06-03  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox