Article View: gnu.emacs.bug
Article #98435emacs bug report
From: Lee A Shombert
Date: Wed, 05 Jun 1991 22:38
Date: Wed, 05 Jun 1991 22:38
21 lines
1756 bytes
1756 bytes
Dear Emacs Masters;
I found a bug when installing Emacs 18.57 on a Vax. We are running
Vax VMS 5.4-1a and I used C 3.1. The problem is that the calloc()
routine defined in malloc.c conflicts with the VMS C library routine.
I solved the problem by simply renaming emacs calloc() to
sys_calloc(), which is consistent with your name for emacs malloc().
VMS uses calloc() to allocate memory for command line arguments, and
the emacs calloc() is used instead of the VMS version when emacs runs.
The problem is that all the memory allocated by calloc() during emacs
initialization (-l loadup.el -dump) is dumped. When emacs is later
run, the dumped memory is reloaded, including the original command
line arguments. Am I clear? In other words, emacs *always* sees the
command line arguments "-l loadup.el -dump". Renaming the emacs
calloc() out of the way solves the problem, of course. Currently no
emacs code uses calloc(). This may be a problem in future releases.
Otherwise, installation was a snap.
Lee A Shombert
lshombert@jaguar.ess.harris.com
Technical Details
Message-ID:
<9106052235.AA26179@life.ai.mit.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbageShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,1a4d8284b8011092,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-06-05 15:38:58 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage From: LSHOMBERT@JAGUAR.ESS.HARRIS.COM (Lee A Shombert) Newsgroups: gnu.emacs.bug Subject: emacs bug report Message-ID: <9106052235.AA26179@life.ai.mit.edu> Date: 5 Jun 91 22:38:58 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 21 Approved: bug-gnu-emacs@prep.ai.mit.edu