Archive-Date: Thu, 2 Apr 1998 04:39:30 +0200
Date: Thu,  2 Apr 1998 04:39:21 +0200
Message-ID: <2164-Thu02Apr1998043921+0200-levitte@lp.se>
From: Richard Levitte - VMS Whacker <levitte@lp.se>
Reply-To: emacs-testers@LISTS.VMS.GNU.AI.MIT.EDU
To: emacs-testers@lists.vms.gnu.ai.mit.edu
Subject: Emacs bug found!
MIME-Version: 1.0
Content-Type: Text/Plain; Charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

After several reports of crashes that seemed to be in the memory
allocation routines, I finally got a report that allowed me to trace it
correctly.  The bug is actually a very simple one.  The following patch
should fix it:

*** ed1928_stable:[src]vmsgmalloc.c	Thu Jun 19 21:49:41 1997
--- vmsgmalloc.c	Thu Apr  2 04:25:13 1998
***************
*** 1320,1326 ****
  #endif
  
  #ifdef VMS
! /*#define DEBUG_VMSGMALLOC*/
  /* We use sys$expreg and friends, so we need the starlet definitions.  */
  
  #include <starlet.h>
--- 1320,1326 ----
  #endif
  
  #ifdef VMS
! /* #define DEBUG_VMSGMALLOC */
  /* We use sys$expreg and friends, so we need the starlet definitions.  */
  
  #include <starlet.h>
***************
*** 1555,1562 ****
--- 1555,1566 ----
        if (tmpadr[1][0] == -1
  	  || tmpadr[1][1] - tmpadr[1][0] + 1 < increment)
  	return NULL;
+ #if 0 /* experimental */
        if (result >= vms_fake_heap_end && result < vms_real_heap_start)
  	result = tmpadr[1][0];
+ #else
+       result = tmpadr[1][0];
+ #endif
        vms_brk_current = result + increment;
        if (vms_brk_end < tmpadr[1][1] + 1)
  	vms_brk_end = tmpadr[1][1] + 1;



This does not fix the problem with DEC C 5.6 munging the description
files to destruction.  That is being worked on.

-- 
R Levitte, Levitte Programming;  Spannv. 38, I;  S-168 35  Bromma;  SWEDEN
      Tel: +46-8-26 52 47;  Cel: +46-708-20 09 64;  No fax right now
  PGP key fingerprint = A6 96 C0 34 3A 96 AA 6C  B0 D5 9A DF D2 E9 9C 65
   Check http://richard.levitte.org/ for my public key. bastard@bofh.se

          "price, performance, quality.  Choose any two you like"
