GNU bug report logs - #4629
"Emergency (alloc): Warning: past 85% of memory limit" on NetBSD/mips

Previous Next

Package: emacs;

Reported by: Izumi Tsutsui <tsutsui <at> ceres.dti.ne.jp>

Date: Sun, 4 Oct 2009 11:15:09 UTC

Severity: important

Tags: patch

Merged with 2072

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4629 in the body.
You can then email your comments to 4629 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4629; Package emacs. (Sun, 04 Oct 2009 11:15:09 GMT) Full text and rfc822 format available.

Acknowledgement sent to Izumi Tsutsui <tsutsui <at> ceres.dti.ne.jp>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 04 Oct 2009 11:15:10 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Izumi Tsutsui <tsutsui <at> ceres.dti.ne.jp>
To: bug-gnu-emacs <at> gnu.org
Cc: tsutsui <at> ceres.dti.ne.jp
Subject: "Emergency (alloc): Warning: past 85% of memory limit" on NetBSD/mips
Date: Sun, 4 Oct 2009 20:05:51 +0900
Hi,

Emacs-23.1 on NetBSD/cobalt (mipsel) 5.0.1 also gets the following
warning message as well as bug#2685 on Debian lenny.

>> Emergency (alloc): Warning: past 85% of memory limit

The following patch (and configure rev 1.326 on HEAD) fixes it:

--- src/m/mips.h.orig	2009-06-21 13:38:20.000000000 +0900
+++ src/m/mips.h
@@ -50,7 +50,7 @@ NOTE-END  */
 
 #define TEXT_START      0x00400000
 
-#ifndef GNU_LINUX
+#if !defined(GNU_LINUX) && !defined(__NetBSD__)
 #define DATA_START      0x10000000
 #endif
 

NetBSD/alpha has the same problem as mentioned in bug#2072, and
the following patch for emacs-23.1 works fine on NetBSD/alpha 5.0:

--- src/m/alpha.h.orig	2009-06-21 13:38:20.000000000 +0900
+++ src/m/alpha.h
@@ -95,7 +95,7 @@ NOTE-END
 
 #undef UNEXEC
 #define UNEXEC unexelf.o
-#ifndef GNU_LINUX
+#if !defined(GNU_LINUX) && !defined(__NetBSD__)
 #define DATA_START    0x140000000
 #endif
 

I guess these DATA_START definitions are for DEC ULTRIX and OSF/1.

Thanks,
---
Izumi Tsutsui




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4629; Package emacs. (Mon, 05 Oct 2009 13:05:04 GMT) Full text and rfc822 format available.

Message #8 received at 4629 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Izumi Tsutsui <tsutsui <at> ceres.dti.ne.jp>
Cc: 4629 <at> debbugs.gnu.org
Subject: Re: bug#4629: "Emergency (alloc): Warning: past 85% of memory limit" on NetBSD/mips
Date: Mon, 5 Oct 2009 06:00:37 -0700 (PDT)
Izumi Tsutsui <tsutsui <at> ceres.dti.ne.jp> writes:

  > Hi,
  > 
  > Emacs-23.1 on NetBSD/cobalt (mipsel) 5.0.1 also gets the following
  > warning message as well as bug#2685 on Debian lenny.
  > 
  > >> Emergency (alloc): Warning: past 85% of memory limit
  > 
  > The following patch (and configure rev 1.326 on HEAD) fixes it:
  > 
  > --- src/m/mips.h.orig	2009-06-21 13:38:20.000000000 +0900
  > +++ src/m/mips.h
  > @@ -50,7 +50,7 @@ NOTE-END  */
  >  
  >  #define TEXT_START      0x00400000
  >  
  > -#ifndef GNU_LINUX
  > +#if !defined(GNU_LINUX) && !defined(__NetBSD__)
  >  #define DATA_START      0x10000000
  >  #endif

mips.h is only used on NetBSD and GNU/Linux, so, IMO, the right thing to
do here is just remove #define DATA_START in that file.


  > NetBSD/alpha has the same problem as mentioned in bug#2072, and
  > the following patch for emacs-23.1 works fine on NetBSD/alpha 5.0:
  > 
  > --- src/m/alpha.h.orig	2009-06-21 13:38:20.000000000 +0900
  > +++ src/m/alpha.h
  > @@ -95,7 +95,7 @@ NOTE-END
  >  
  >  #undef UNEXEC
  >  #define UNEXEC unexelf.o
  > -#ifndef GNU_LINUX
  > +#if !defined(GNU_LINUX) && !defined(__NetBSD__)
  >  #define DATA_START    0x140000000
  >  #endif

The solution should be the same in this file too.

OK to check in these 2 removals?



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4629; Package emacs. (Mon, 05 Oct 2009 14:30:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Izumi Tsutsui <tsutsui <at> ceres.dti.ne.jp>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 05 Oct 2009 14:30:05 GMT) Full text and rfc822 format available.

Message #13 received at 4629 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Izumi Tsutsui <tsutsui <at> ceres.dti.ne.jp>
To: dann <at> ics.uci.edu
Cc: 4629 <at> debbugs.gnu.org, tsutsui <at> ceres.dti.ne.jp
Subject: Re: bug#4629: "Emergency (alloc): Warning: past 85% of memory limit"
	 on NetBSD/mips
Date: Mon, 5 Oct 2009 23:25:53 +0900
dann <at> ics.uci.edu wrote:

> mips.h is only used on NetBSD and GNU/Linux, so, IMO, the right thing to
> do here is just remove #define DATA_START in that file.
 :
>   > --- src/m/alpha.h.orig	2009-06-21 13:38:20.000000000 +0900
>   > +++ src/m/alpha.h
 :
> The solution should be the same in this file too.
> 
> OK to check in these 2 removals?

No problem for me.
---
Izumi Tsutsui



Severity set to 'important' from 'normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 27 Jan 2010 22:29:02 GMT) Full text and rfc822 format available.

Added tag(s) patch. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 27 Jan 2010 22:29:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#4629; Package emacs. (Thu, 28 Jan 2010 17:38:02 GMT) Full text and rfc822 format available.

Message #20 received at 4629 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Izumi Tsutsui <tsutsui <at> ceres.dti.ne.jp>
Cc: Dan Nicolaescu <dann <at> ics.uci.edu>, 4629 <at> debbugs.gnu.org,
	2072 <at> debbugs.gnu.org
Subject: Re: "Emergency (alloc): Warning: past 85% of memory limit" on
	NetBSD/mips
Date: Thu, 28 Jan 2010 12:37:13 -0500
Dan Nicolaescu <dann <at> ics.uci.edu> wrote:

> Izumi Tsutsui <tsutsui <at> ceres.dti.ne.jp> wrote:
>
> > Emacs-23.1 on NetBSD/cobalt (mipsel) 5.0.1 also gets the following
> > warning message as well as bug#2685 on Debian lenny.
> >
> > >> Emergency (alloc): Warning: past 85% of memory limit
> >
> > The following patch (and configure rev 1.326 on HEAD) fixes it:
>
> mips.h is only used on NetBSD and GNU/Linux, so, IMO, the right thing to
> do here is just remove #define DATA_START in that file.

Indeed, thanks.  I've checked in the suggested fix.  Thanks.

> > NetBSD/alpha has the same problem as mentioned in bug#2072, and
> > the following patch for emacs-23.1 works fine on NetBSD/alpha 5.0:
>
> The solution should be the same in this file too.

FreeBSD and OpenBSD also use this, so I'm not sure this is right.  For
now, let's just use the __NetBSD__ conditional as originally suggested.




bug closed, send any further explanations to Izumi Tsutsui <tsutsui <at> ceres.dti.ne.jp> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Thu, 28 Jan 2010 17:38:03 GMT) Full text and rfc822 format available.

Forcibly Merged 2072 4629. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 28 Jan 2010 18:18:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 26 Feb 2010 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 117 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.