From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: emacs user Newsgroups: gmane.emacs.devel Subject: Re: Memory again Date: Tue, 17 Jan 2012 12:04:54 +0200 Message-ID: References: <71677AF5-0EE7-426E-B8FA-C2782B3CC36C@swipnet.se> <2AB13C59-F3BE-45F7-8C24-C88AA9AC8929@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326794717 11704 80.91.229.12 (17 Jan 2012 10:05:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Jan 2012 10:05:17 +0000 (UTC) Cc: =?ISO-8859-1?Q?Jan_Dj=E4rv?= , emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 17 11:05:08 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rn5ud-0008Fs-Vq for ged-emacs-devel@m.gmane.org; Tue, 17 Jan 2012 11:05:08 +0100 Original-Received: from localhost ([::1]:34699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rn5ud-0006zp-19 for ged-emacs-devel@m.gmane.org; Tue, 17 Jan 2012 05:05:07 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:39314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rn5uW-0006xN-3X for emacs-devel@gnu.org; Tue, 17 Jan 2012 05:05:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rn5uR-0006BS-7J for emacs-devel@gnu.org; Tue, 17 Jan 2012 05:05:00 -0500 Original-Received: from mail-wi0-f169.google.com ([209.85.212.169]:50304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rn5uQ-0006BM-VH for emacs-devel@gnu.org; Tue, 17 Jan 2012 05:04:55 -0500 Original-Received: by wicr5 with SMTP id r5so3597935wic.0 for ; Tue, 17 Jan 2012 02:04:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=/yBEih95gBy39Kjon8Qgv56VM0S5lWMkAKqIC+pft+E=; b=q4/9pdYlLZB070Z21fTdHvZ6vkw64r/86KsjcPF3pysViCbRfrY84uB0gKbJSlhmKs YBVJvUOqRXTPKpZo3742zUMoFkeY671wesXu5ksTH0TJPrXeB0aDOQ0uLzzgUtUDtuKs JneMMvqDgD0RU0KGRffVbLvfk57e1Cjuz5jy8= Original-Received: by 10.180.19.138 with SMTP id f10mr33148154wie.3.1326794694321; Tue, 17 Jan 2012 02:04:54 -0800 (PST) Original-Received: by 10.216.25.140 with HTTP; Tue, 17 Jan 2012 02:04:54 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147699 Archived-At: On Fri, Dec 23, 2011 at 6:41 AM, YAMAMOTO Mitsuharu wrote: >> Other than running valgrind on temacs, load everything in and then >> print out reachable memory, I don't know how to check this. =A0It >> sounds as it isn't a leak as such, but something that is still >> referenced, but not needed. > > The `heap' command might give some help. =A0Perhaps one can compare > results of `heaps -addresses all ' between before and after a VM > invocation as explained in the manual page, and then use > `malloc_history' to show the stack trace. in addition to the heap output I emailed you earlier off-line, here is the gdb output from a crash that just occurred within a normal session using vm and auctex. Memory is 244Mb at this point (after killing all buffers), crash occurred when I did M-x garbage collect: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x0000000000000000 0x00000001000fdad6 in mem_delete_fixup [inlined] () at /usr/local/emacs/trunk/src/alloc.c:3860 3860 if (w->right->color =3D=3D MEM_BLACK && w->left->color =3D=3D MEM_B= LACK) (gdb) (gdb) where #0 0x00000001000fdad6 in mem_delete_fixup [inlined] () at /usr/local/emacs/trunk/src/alloc.c:3860 #1 0x00000001000fdad6 in mem_delete (z=3D0x10ec72d60) at alloc.c:3797 #2 0x00000001000fdc70 in lisp_align_free (block=3D0x10ec72d60) at alloc.c:= 1142 #3 0x0000000100101fc2 in gc_sweep [inlined] () at /usr/local/emacs/trunk/src/alloc.c:5922 #4 0x0000000100101fc2 in Fgarbage_collect () at alloc.c:3797 #5 0x000000010011a287 in Ffuncall (nargs=3D4542901600, args=3D0x10011a448) at eval.c:2983 #6 0x0000000100116c99 in Fcall_interactively (function=3D140734799800160, record_flag=3D140734799800160, keys=3D140734799800160) at callint.c:852 #7 0x000000010011a2b3 in Ffuncall (nargs=3D1, args=3D0x10011a448) at eval.= c:2993 #8 0x000000010011d236 in call3 (fn=3D4, arg1=3D4309956080, arg2=3D4300590816, arg3=3D4536667392) at eval.c:2786 #9 0x00000001000a6265 in Fexecute_extended_command (prefixarg=3D140734799800432) at keyboard.c:10391 #10 0x000000010011a293 in Ffuncall (nargs=3D4320145466, args=3D0x10011a448) at eval.c:2986 #11 0x0000000100116c99 in Fcall_interactively (function=3D140734799800880, record_flag=3D140734799800880, keys=3D140734799800880) at callint.c:852 #12 0x000000010011a2b3 in Ffuncall (nargs=3D2, args=3D0x10011a448) at eval.= c:2993 #13 0x000000010011d236 in call3 (fn=3D4, arg1=3D4320213530, arg2=3D4320145514, arg3=3D4320145466) at eval.c:2786 #14 0x00000001000b3f75 in command_loop_1 () at keyboard.c:1571 #15 0x000000010011da63 in internal_condition_case (bfun=3D0x1000b3930 , handlers=3D4320201482, hfun=3D0x1000b4ec0 ) at eval.c:1499 #16 0x00000001000b390e in command_loop_2 (ignore=3D4320271674) at keyboard.= c:1159 #17 0x000000010011db68 in internal_catch (tag=3D4320271674, func=3D0x1000b38d0 , arg=3D4320271674) at eval.c:1256 #18 0x00000001000b5420 in command_loop [inlined] () at /usr/local/emacs/trunk/src/keyboard.c:1138 #19 0x00000001000b5420 in recursive_edit_1 () at keyboard.c:3797 #20 0x00000001000a523c in Frecursive_edit () at keyboard.c:822 #21 0x00000001000a1d7f in main (argc=3D25230234, argv=3D0x7fff5fbff0c0) at emacs.c:1715 Lisp Backtrace: "garbage-collect" (0x5fbfe658) "call-interactively" (0x5fbfe7f8) "execute-extended-command" (0x5fbfe928) "call-interactively" (0x5fbfeac8)