unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Subject: [mark@mcs.vuw.ac.nz: Problem on 64bit systems.]
Date: Sun, 29 Oct 2006 13:46:05 -0500	[thread overview]
Message-ID: <E1GeFfZ-0007gP-6a@fencepost.gnu.org> (raw)

Would someone please install this, then ack?

------- Start of forwarded message -------
From: Mark Davies <mark@mcs.vuw.ac.nz>
To: bug-gnu-emacs@gnu.org
Date: Sat, 28 Oct 2006 08:44:53 +1300
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Disposition: inline
Subject: Problem on 64bit systems.
X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO 
	autolearn=failed version=3.0.4

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.  */

cheers
mark


_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------

             reply	other threads:[~2006-10-29 18:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-29 18:46 Richard Stallman [this message]
2006-10-29 21:54 ` [mark@mcs.vuw.ac.nz: Problem on 64bit systems.] Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1GeFfZ-0007gP-6a@fencepost.gnu.org \
    --to=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).