From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: bug#3021: 23.0.92; MEM FULL on Windows after some VC operations Date: Mon, 06 Jul 2009 00:02:07 +0800 Message-ID: <4A50CE7F.8030905@gnu.org> References: <87d4bcqtwo.fsf@marauder.physik.uni-ulm.de> <83ws9kjn8r.fsf@gnu.org> <877i1f1431.fsf@marauder.physik.uni-ulm.de> <49ED4A34.5030003@gnu.org> <87skhbe7zi.fsf@marauder.physik.uni-ulm.de> Reply-To: Jason Rumney , 3021@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1246810674 6546 80.91.229.12 (5 Jul 2009 16:17:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jul 2009 16:17:54 +0000 (UTC) To: 3021@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 05 18:17:43 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 1MNUPN-0003ut-A2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jul 2009 18:17:41 +0200 Original-Received: from localhost ([127.0.0.1]:54539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNUPM-00081t-E9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jul 2009 12:17:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNUPI-00081X-4H for bug-gnu-emacs@gnu.org; Sun, 05 Jul 2009 12:17:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNUPC-00080t-I8 for bug-gnu-emacs@gnu.org; Sun, 05 Jul 2009 12:17:35 -0400 Original-Received: from [199.232.76.173] (port=57219 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNUPC-00080j-C8 for bug-gnu-emacs@gnu.org; Sun, 05 Jul 2009 12:17:30 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40906) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MNUPB-00017K-Jz for bug-gnu-emacs@gnu.org; Sun, 05 Jul 2009 12:17:30 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n65GHPq0024203; Sun, 5 Jul 2009 09:17:27 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n65GA6Xv022639; Sun, 5 Jul 2009 09:10:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Jason Rumney Original-Sender: Jason Rumney Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Sun, 05 Jul 2009 16:10:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3021 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: Original-Received: via spool by 3021-submit@emacsbugs.donarmstrong.com id=B3021.124680977120829 (code B ref 3021); Sun, 05 Jul 2009 16:10:06 +0000 Original-Received: (at 3021) by emacsbugs.donarmstrong.com; 5 Jul 2009 16:02:51 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-px0-f199.google.com (mail-px0-f199.google.com [209.85.216.199]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n65G2k70020811 for <3021@emacsbugs.donarmstrong.com>; Sun, 5 Jul 2009 09:02:47 -0700 Original-Received: by pxi37 with SMTP id 37so2322608pxi.19 for <3021@emacsbugs.donarmstrong.com>; Sun, 05 Jul 2009 09:02:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=M2oh2XkB1oPcdFr5DoVozyd8t5949D7W7OcRfg++fs4=; b=VvAbukePCGMsm/N8Ip5Ftj4EdfKWOT+nBJuT3NbnMFD099TF3NGEmA5V0ur7zOyYyr kDtRppVFoz5l/SSbjynf1UMgWUChWQleqSqi0UimXcahNmR9wkm1bil9Tg/HwwqsfrfZ x/fFgx7L2JXO9+1Lw8JHP1cwRZH1l9nylceB8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=pDqhROrssoCtIyvqJZhL1VR1V0srHSAOm8puayUqqUBoSzN9d04R/LXLbXGrTxNuxJ tgGVhNO5qAUqWWQBpC3oBpUXS0i7hPGCbSfV4flbG6mWxZ3tvhWR1soDgESzAZWgmHM+ erdHuH0U+Q/SvWEv1+e5dMbT6T8oXjownXRII= Original-Received: by 10.114.77.19 with SMTP id z19mr5838206waa.29.1246809760920; Sun, 05 Jul 2009 09:02:40 -0700 (PDT) Original-Received: from ?192.168.249.26? ([118.101.237.115]) by mx.google.com with ESMTPS id d20sm9607025waa.12.2009.07.05.09.02.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 05 Jul 2009 09:02:39 -0700 (PDT) User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <87skhbe7zi.fsf@marauder.physik.uni-ulm.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 05 Jul 2009 12:17:35 -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:29188 Archived-At: Reiner Steib wrote: > - What do I need to install to debug a MinGW/MSYS build (Jason's > build) on MS Vista? > gdb (from www.mingw.org) > - To put a breakpoint, of course I need to install the Emacs sources. > How do I have to combine the source (emacs-*.tar.gz) and the binary > (windows/emacs-*-bin-i386.zip) correctly? > Unzipping into the same directory should work - any files contained in both are identical, so no harm will come from replacing, or conversely from keeping the old ones. > - Jason suggested: "find the location where that message is emitted, > and put a breakpoint there"... > > Can someone assist me with this? I'm not familiar with Emacs' C > code. From rgrep on 'MEM.FULL\|memory_full' it's not obvious for me > which would be the right function. > So put a breakpoint on all locations that rgrep shows that message occuring. To run gdb, follow the directions in etc/DEBUG and nt/INSTALL, notably: Start Emacs from the src directory as: gdb ../bin/emacs.exe This helps gdb find the source files, and also it will automatically include the extra functions in src/.gdbinit for inspecting lisp structures and other Emacs specific things. To set a break point in gdb, type one of the following: break functionname break filename:linenum to run emacs until a breakpoint is hit, type run this is the point to pass arguments to Emacs (not when starting gdb, or they will be interpreted as gdb arguments). So to run without init files run -Q You can also run gdb from inside Emacs, in which case setting breakpoints is easier - go to the line where you want the breakpoint in the source file's buffer, and press C-x SPC. But I have found gdb to be unstable within Emacs under Windows, YMMV.