[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem on 64bit systems.

From: Mark Davies
Subject: Problem on 64bit systems.
Date: Sat, 28 Oct 2006 08:44:53 +1300
User-agent: KMail/1.9.5

I thing I reported this back when I found it but in case I didn't:

emacs would quickly complain about running out of memory and core dump on 
amd64 systems on NetBSD.  Problem was tracked down to a bug in ralloc.c that 
caused a negative number intended to be an argument to sbrk() to reduce the 
break to be treated as a large positive one (because of wrong sized object 
being passed on the stack).

Below patch fixes:

--- src/ralloc.c.orig   2001-02-20 01:19:40.000000000 +1300
+++ src/ralloc.c
@@ -328,7 +328,7 @@ static void
 relinquish ()
   register heap_ptr h;
-  int excess = 0;
+  long excess = 0;
   /* Add the amount of space beyond break_value
      in all heaps which have extend beyond break_value at all.  */


reply via email to

[Prev in Thread] Current Thread [Next in Thread]