From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#2685: Emergency (alloc): Warning: past 85% of memory limit Date: Fri, 22 May 2009 00:39:27 -0400 Message-ID: <874ovdeoow.fsf@cyd.mit.edu> References: <8763fvic4s.fsf@cyd.mit.edu> <1242886205.6098.150.camel@localhost> Reply-To: Chong Yidong , 2685@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1242967960 29770 80.91.229.12 (22 May 2009 04:52:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2009 04:52:40 +0000 (UTC) Cc: John Sullivan , 2685@emacsbugs.donarmstrong.com To: laurent@guerby.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 22 06:52:33 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M7MkC-0007CK-4F for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2009 06:52:32 +0200 Original-Received: from localhost ([127.0.0.1]:37994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7MkB-0000RX-Mr for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2009 00:52:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7Mjo-0000LR-Qk for bug-gnu-emacs@gnu.org; Fri, 22 May 2009 00:52:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7Mjj-0000KF-98 for bug-gnu-emacs@gnu.org; Fri, 22 May 2009 00:52:07 -0400 Original-Received: from [199.232.76.173] (port=55143 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7Mji-0000K2-LD for bug-gnu-emacs@gnu.org; Fri, 22 May 2009 00:52:02 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45431) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M7Mjh-0008W1-FB for bug-gnu-emacs@gnu.org; Fri, 22 May 2009 00:52:02 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4M4pvcE010779; Thu, 21 May 2009 21:51:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n4M4j7Ck008283; Thu, 21 May 2009 21:45:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 22 May 2009 04:45:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2685 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2685-submit@emacsbugs.donarmstrong.com id=B2685.12429671526616 (code B ref 2685); Fri, 22 May 2009 04:45:07 +0000 Original-Received: (at 2685) by emacsbugs.donarmstrong.com; 22 May 2009 04:39:12 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4M4d7St006606 for <2685@emacsbugs.donarmstrong.com>; Thu, 21 May 2009 21:39:09 -0700 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 2D26257E233; Fri, 22 May 2009 00:39:27 -0400 (EDT) In-Reply-To: <1242886205.6098.150.camel@localhost> (Laurent GUERBY's message of "Thu, 21 May 2009 08:10:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 22 May 2009 00:52:07 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28080 Archived-At: The problem is that Emacs is not determining the start of the data segment properly on MIPS machines. In src/m/mips.h, we define DATA_START as 0x10000000. There must be a reason for this, but it's wrong on the machine you provided for testing; there, __morecore reports the memory break (which must lie inside the data segment) as a value less than 0x10000000. If I comment out DATA_START, so that Emacs uses another method to determine the start of the data segment size, everything seems to work OK. But I don't know if this may lead to a different bug elsewhere. *** trunk/src/m/mips.h.~1.42.~ 2009-03-12 09:42:54.000000000 -0400 --- trunk/src/m/mips.h 2009-05-22 00:34:03.000000000 -0400 *************** *** 49,55 **** /* Describe layout of the address space in an executing process. */ #define TEXT_START 0x00400000 ! #define DATA_START 0x10000000 #if 0 /* These definitions were advantageous when not using --- 49,55 ---- /* Describe layout of the address space in an executing process. */ #define TEXT_START 0x00400000 ! /* #define DATA_START 0x10000000 */ #if 0 /* These definitions were advantageous when not using