[4524] in Athena Bugs
/usr/etc/analyze (vax)
daemon@ATHENA.MIT.EDU (John Carr)
Wed Mar 14 13:51:42 1990
To: bugs@ATHENA.MIT.EDU
Date: Wed, 14 Mar 90 13:51:30 EST
From: John Carr <jfc@ATHENA.MIT.EDU>
% size /usr/etc/analyze
text data bss dec hex
16384 3072 159389592 159409048 9806398
What's wrong with this picture? The answer is found at
/source/bsd-4.3/vax/usr.etc/analyze/analyze.c line 56:
struct pte p0br[ctopt(MAXTSIZ+MAXDSIZ+MAXSSIZ)][NPTEPG];
This is trying to allocate an array equal to the combined maximum
sizes of text, stack, and data segments on the system. In other
words, it is trying to allocate an array equal to the largest total
size any process can have, in addition its own text, data, and stack.