* can't get enough stack memory
@ 1996-06-03 4:00 Bill Crutchfield
0 siblings, 0 replies; only message in thread
From: Bill Crutchfield @ 1996-06-03 4:00 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-06-03 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-03 4:00 can't get enough stack memory Bill Crutchfield
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox