emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory again


From: emacs user
Subject: Re: Memory again
Date: Tue, 17 Jan 2012 12:04:54 +0200

On Fri, Dec 23, 2011 at 6:41 AM, YAMAMOTO Mitsuharu
<address@hidden> wrote:
>> Other than running valgrind on temacs, load everything in and then
>> print out reachable memory, I don't know how to check this.  It
>> 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.  Perhaps one can compare
> results of `heaps -addresses all <pid>' 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 == MEM_BLACK && w->left->color == 
MEM_BLACK)
(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=0x10ec72d60) at alloc.c:3797
#2  0x00000001000fdc70 in lisp_align_free (block=0x10ec72d60) 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=4542901600,
args=0x10011a448) at eval.c:2983
#6  0x0000000100116c99 in Fcall_interactively
(function=140734799800160, record_flag=140734799800160,
keys=140734799800160) at callint.c:852
#7  0x000000010011a2b3 in Ffuncall (nargs=1, args=0x10011a448) at eval.c:2993
#8  0x000000010011d236 in call3 (fn=4, arg1=4309956080,
arg2=4300590816, arg3=4536667392) at eval.c:2786
#9  0x00000001000a6265 in Fexecute_extended_command
(prefixarg=140734799800432) at keyboard.c:10391
#10 0x000000010011a293 in Ffuncall (nargs=4320145466,
args=0x10011a448) at eval.c:2986
#11 0x0000000100116c99 in Fcall_interactively
(function=140734799800880, record_flag=140734799800880,
keys=140734799800880) at callint.c:852
#12 0x000000010011a2b3 in Ffuncall (nargs=2, args=0x10011a448) at eval.c:2993
#13 0x000000010011d236 in call3 (fn=4, arg1=4320213530,
arg2=4320145514, arg3=4320145466) at eval.c:2786
#14 0x00000001000b3f75 in command_loop_1 () at keyboard.c:1571
#15 0x000000010011da63 in internal_condition_case (bfun=0x1000b3930
<command_loop_1>, handlers=4320201482, hfun=0x1000b4ec0 <cmd_error>)
at eval.c:1499
#16 0x00000001000b390e in command_loop_2 (ignore=4320271674) at keyboard.c:1159
#17 0x000000010011db68 in internal_catch (tag=4320271674,
func=0x1000b38d0 <command_loop_2>, arg=4320271674) 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=25230234, argv=0x7fff5fbff0c0) at
emacs.c:1715

Lisp Backtrace:
"garbage-collect" (0x5fbfe658)
"call-interactively" (0x5fbfe7f8)
"execute-extended-command" (0x5fbfe928)
"call-interactively" (0x5fbfeac8)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]