Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!decvax!ucbvax!HARVARD.HARVARD.EDU!sasaki
From: sasaki@HARVARD.HARVARD.EDU.UUCP
Newsgroups: mod.computers.vax
Subject: malloc, alloc, etc., and brk and sbrk
Message-ID: <8612191551.AA24406@ucbvax.Berkeley.EDU>
Date: Thu, 18-Dec-86 19:45:13 EST
Article-I.D.: ucbvax.8612191551.AA24406
Posted: Thu Dec 18 19:45:13 1986
Date-Received: Fri, 19-Dec-86 23:42:24 EST
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 20
Approved: info-vax@sri-kl.arpa

I've been having problems with getting VMS GNU Emacs working completely
and think that I may have stumbled upon a serious problem.

According to the documentation for VAX-11 C you can't use malloc, calloc,
etc., with brk and sbrk. Gnu Emacs uses brk and sbrk, but does it's own
version of malloc, realloc, etc. This is fine, but it appears that
getenv (amoung others) calls calloc. This then violates the rule about
mixing allocation routines.

Now it makes perfect sense that I should be seeing a problem here. What
I am wondering about though, is why the older version of GNU Emacs works
at all, since it uses the getenv, and brk and sbrk. This could explain the
mysteriousness of 17.VMS-4.

Could someone enlighten me?
----------------
  Marty Sasaki				uucp:   harvard!sasaki
  Strategic Information			arpa:	sasaki@harvard.harvard.edu
  80 Blanchard Road			bitnet: sasaki@harvunxh
  Burlington, MA 01803			phone:	617-273-5500