Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 7/1/84; site seismo.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!zehntel!dual!amd!decwrl!decvax!mcnc!philabs!cmcl2!seismo!tiberio
From: tiberio@seismo.UUCP (Mike Tiberio)
Newsgroups: unix-wizards,net.unix-wizards,net.bugs,net.bugs.4bsd,net.micro.68k
Subject: malloc, sun and vax
Message-ID: <2504@seismo.UUCP>
Date: Tue, 31-Jul-84 10:01:54 EDT
Article-I.D.: seismo.2504
Posted: Tue Jul 31 10:01:54 1984
Date-Received: Sat, 4-Aug-84 01:26:01 EDT
Distribution: net
Organization: Center for Seismic Studies, Arlington, VA
Lines: 18


the following 7 liner prints nothing on our sun and prints bad malloc
on our vax. the program i condensed this from exhibited the bad malloc
symptoms under 4.1, 4.1a, 4.1c and 4.2. the sun runs the latest
version of the kernal from sun. the vax has 4 meg memory, the sun 2 meg.
i have avoided the problem by declaring an array big enough to cover my
worst case, but that makes the program a pig all the time, i would like 
to use the malloc, but... any suggestions?

main() {
	char *bp, *malloc();
	bp = malloc(2023144);
	free(bp);
	if( (bp=malloc(2273888)) == 0 )
		printf("bad malloc\n");
}

from the tired keys of seismo!tiberio