unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* memory grab, with backtrace
@ 2011-12-07  2:51 Silvio Levy
  2011-12-07  7:36 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Silvio Levy @ 2011-12-07  2:51 UTC (permalink / raw)
  To: emacs-devel; +Cc: levy

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 15998 bytes --]


Dear Emacs folks

I posted this a few days ago, and was advised to post it again after
getting a backtrace.  I hope the backtrace (obtained from emacs-snapshot)
is adequate.  

Thank you

Silvio

> To: Emacs help <help-gnu-emacs@gnu.org>
> Subject: memory grab causes machine to grind to a halt
> cc: levy@msri.org
> From: Silvio Levy <levy@msri.org>
> Date: Sun, 27 Nov 2011 12:54:10 -0800
> 
> I work mostly at home on a laptop, but I keep a window open at all
> times at my employer's ssh server. It runs emacs and I do some of my
> work inside it (usually in shell-mode).
> 
> Problem: when that window dies, emacs remains alive and often -- days
> later -- it suddenly starts grabbing memory, causing the server to
> grind to a halt until the process is killed somehow.
> 
> Any idea what emacs may be doing?  (Note that this is always a process
> that's no longer interactive.)
> 
> Thanks,
> 
> Silvio
> 



neo:; gdb -p 11547
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Attaching to process 11547
Reading symbols from /usr/bin/emacs-snapshot-gtk...Reading symbols from /usr/lib/debug/usr/bin/emacs-snapshot-gtk...done.
done.
Reading symbols from /usr/lib/libgtk-x11-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgtk-x11-2.0.so.0
Reading symbols from /usr/lib/libgdk-x11-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgdk-x11-2.0.so.0
Reading symbols from /usr/lib/libgdk_pixbuf-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgdk_pixbuf-2.0.so.0
Reading symbols from /lib/tls/i686/cmov/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /usr/lib/libfreetype.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libfontconfig.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfontconfig.so.1
Reading symbols from /usr/lib/libgobject-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgobject-2.0.so.0
Reading symbols from /lib/libglib-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libglib-2.0.so.0
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /usr/lib/libSM.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libSM.so.6
Reading symbols from /usr/lib/libICE.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libICE.so.6
Reading symbols from /usr/lib/libtiff.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libtiff.so.4
Reading symbols from /usr/lib/libjpeg.so.62...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /lib/libpng12.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpng12.so.0
Reading symbols from /usr/lib/libgif.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgif.so.4
Reading symbols from /usr/lib/libXpm.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXpm.so.4
Reading symbols from /usr/lib/libX11.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libXft.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXft.so.2
Reading symbols from /usr/lib/libasound.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libasound.so.2
Reading symbols from /usr/lib/librsvg-2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/librsvg-2.so.2
Reading symbols from /lib/libdbus-1.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libdbus-1.so.3
Reading symbols from /usr/lib/libgpm.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgpm.so.2
Reading symbols from /lib/libncurses.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/tls/i686/cmov/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /usr/lib/libXrender.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libXext.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libXinerama.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXinerama.so.1
Reading symbols from /usr/lib/libXi.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXi.so.6
Reading symbols from /usr/lib/libXrandr.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXrandr.so.2
Reading symbols from /usr/lib/libXcursor.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libpangocairo-1.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpangocairo-1.0.so.0
Reading symbols from /usr/lib/libXcomposite.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXcomposite.so.1
Reading symbols from /usr/lib/libXdamage.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXdamage.so.1
Reading symbols from /usr/lib/libXfixes.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /usr/lib/libatk-1.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libatk-1.0.so.0
Reading symbols from /usr/lib/libcairo.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcairo.so.2
Reading symbols from /usr/lib/libgio-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgio-2.0.so.0
Reading symbols from /usr/lib/libpangoft2-1.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpangoft2-1.0.so.0
Reading symbols from /usr/lib/libpango-1.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpango-1.0.so.0
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/lib/libgmodule-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgmodule-2.0.so.0
Reading symbols from /usr/lib/libgthread-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgthread-2.0.so.0
Reading symbols from /lib/tls/i686/cmov/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/librt.so.1
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libexpat.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libexpat.so.1
Reading symbols from /lib/libpcre.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libpcre.so.3
Reading symbols from /lib/libuuid.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libuuid.so.1
Reading symbols from /usr/lib/libxcb.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxcb.so.1
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /usr/lib/libgsf-1.so.114...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgsf-1.so.114
Reading symbols from /usr/lib/libcroco-0.6.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcroco-0.6.so.3
Reading symbols from /usr/lib/libxml2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from /usr/lib/libpixman-1.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpixman-1.so.0
Reading symbols from /usr/lib/libdirectfb-1.2.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdirectfb-1.2.so.0
Reading symbols from /usr/lib/libfusion-1.2.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfusion-1.2.so.0
Reading symbols from /usr/lib/libdirect-1.2.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdirect-1.2.so.0
Reading symbols from /usr/lib/libxcb-render-util.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxcb-render-util.so.0
Reading symbols from /usr/lib/libxcb-render.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxcb-render.so.0
Reading symbols from /lib/tls/i686/cmov/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libresolv.so.2
Reading symbols from /lib/libselinux.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libselinux.so.1
Reading symbols from /usr/lib/libXau.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /lib/libbz2.so.1.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libbz2.so.1.0
Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_compat.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_compat.so.2
Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1
Reading symbols from /lib/tls/i686/cmov/libnss_nis.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_nis.so.2
0x00acc422 in __kernel_vsyscall ()
(gdb) backtrace full
#0  0x00acc422 in __kernel_vsyscall ()
No symbol table info available.
#1  0x00967f18 in mmap () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#2  0x0090b743 in ?? () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#3  0x0090b989 in ?? () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#4  0x0090e0c5 in malloc () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#5  0x08174393 in lisp_align_malloc (nbytes=1124, type=<value optimized out>)
    at alloc.c:1030
        i = <value optimized out>
        aligned = <value optimized out>
        abase = <value optimized out>
#6  0x08175217 in Fcons (car=138099185, cdr=140422844) at alloc.c:2756
        new = <value optimized out>
        val = <value optimized out>
#7  0x0818b663 in specbind (symbol=138289481, value=138099233) at eval.c:3333
        where = <value optimized out>
        current_buffer = 1048576
        ovalue = <value optimized out>
        valcontents = <value optimized out>
#8  0x08142c9e in signal_before_change (start_int=1, end_int=19, 
    preserve_ptr=0xbfc83300) at insdel.c:2168
        start = <value optimized out>
        end = <value optimized out>
        start_marker = <value optimized out>
        end_marker = <value optimized out>
        preserve_marker = 138099185
#9  0x0814312f in prepare_to_modify_buffer (start=1, end=19, 
    preserve_ptr=0xbfc83300) at insdel.c:2087
        base_buffer = 0x0
#10 0x08145f93 in del_range_1 (from=1, to=19, prepare=1, ret_string=0)
    at insdel.c:1806
        from_byte = <value optimized out>
        to_byte = <value optimized out>
        deletion = <value optimized out>
#11 0x08145fe8 in del_range (from=1, to=19) at insdel.c:1781
---Type <return> to continue, or q <return> to quit---
No locals.
#12 0x0807c2df in setup_echo_area_for_printing (multibyte_p=1) at xdisp.c:8512
No locals.
#13 0x081a64d6 in write_string_1 (data=0xbfc8346a "", size=-1, 
    printcharfun=138099233) at print.c:578
        old = 0x85f08e0
        old_point = -1
        start_point = -1
        old_point_byte = -1
        start_point_byte = -1
        free_print_buffer = 0
#14 0x081a8c79 in print_error_message (data=170001277, stream=138099233, 
    context=0xfffffff4 <Address 0xfffffff4 out of bounds>, caller=138099185)
    at print.c:1050
        errname = 170001277
        errmsg = 139349360
        file_error = <value optimized out>
        tail = <value optimized out>
#15 0x081247a3 in cmd_error_internal (data=170001277, context=0xbfc8346a "")
    at keyboard.c:1304
No locals.
#16 0x081248f8 in cmd_error (data=170001277) at keyboard.c:1233
        old_level = 80
        old_length = 80
        macroerror = "\000¿\000\000\000\000\000\000\000\000ñ9;\b\231íJ\b\000\027{¡", '\000' <repeats 12 times>, "\220¡C\b\220¡C\b ¡C\b¸4È¿"
#17 0x0818a304 in internal_condition_case (bfun=0x812c4a0 <command_loop_1>, 
    handlers=138142225, hfun=0x8124810 <cmd_error>) at eval.c:1503
        val = -12
        c = {tag = 138099185, val = 170001277, next = 0xbfc835f8, gcpro = 0x0, 
          jmp = {{__jmpbuf = {138650000, 138650000, 138650016, -1077398088, 
                -1094152051, 535057378}, __mask_was_saved = 0, __saved_mask = {
                __val = {17, 17, 0, 0, 0, 9084704, 225011984, 3217568768, 
                  12151286, 9111497, 134546766, 3217568748, 134544943, 
                  3078405400, 3217555458, 12174736, 134544943, 3078437496, 
                  12230644, 9050572, 24, 3217568908, 12152742, 141051168, 
                  141083924, 141051168, 1024, 3217569472, 3217569168, 
                  3217569472, 3217569320, 135492228}}}}, backlist = 0x0, 
          handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, 
---Type <return> to continue, or q <return> to quit---
          poll_suppress_count = 1, interrupt_input_blocked = 0, 
          byte_stack = 0x0}
        h = {handler = 138142225, var = 138099185, chosen_clause = 138099233, 
          tag = 0xbfc834d4, next = 0x0}
#18 0x08123cf5 in command_loop_2 () at keyboard.c:1359
        val = -12
#19 0x0818a3c1 in internal_catch (tag=138138249, 
    func=0x8123cd0 <command_loop_2>, arg=138099185) at eval.c:1249
        c = {tag = 138138249, val = 138099185, next = 0x0, gcpro = 0x0, jmp = {
            {__jmpbuf = {138650000, 138650000, 138650016, -1077397816, 
                -1094004595, 535178210}, __mask_was_saved = 0, __saved_mask = {
                __val = {3217569460, 3217569608, 135412322, 3217569472, 0, 0, 
                  0, 0, 0, 0, 138124880, 138099185, 138339776, 3217569448, 
                  135774532, 138339777, 138336706, 138099185, 138124880, 0, 
                  9484718, 0, 0, 0, 0, 0, 138099209, 10441840, 14, 3217569564, 
                  138339777, 138099185}}}}, backlist = 0x0, handlerlist = 0x0, 
          lisp_eval_depth = 0, pdlcount = 2, poll_suppress_count = 1, 
          interrupt_input_blocked = 0, byte_stack = 0x0}
#20 0x0812465f in command_loop () at keyboard.c:1338
No locals.
#21 0x08124a0a in recursive_edit_1 () at keyboard.c:953
        val = <value optimized out>
#22 0x08124b32 in Frecursive_edit () at keyboard.c:1015
        buffer = 138099185
#23 0x0811ad78 in main (argc=<value optimized out>, argv=<value optimized out>)
    at emacs.c:1849
        dummy = -1077396904
        stack_bottom_variable = 8 '\b'
        do_initial_setlocale = 138650000
        skip_args = 1
        rlim = {rlim_cur = 8388608, rlim_max = 18446744073709551615}
        no_loadup = 0
        junk = 0x0
        dname_arg = 0x0
(gdb) 
(gdb) quit
A debugging session is active.

	Inferior 1 [process 11547] will be detached.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: memory grab, with backtrace
  2011-12-07  2:51 memory grab, with backtrace Silvio Levy
@ 2011-12-07  7:36 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2011-12-07  7:36 UTC (permalink / raw)
  To: Silvio Levy; +Cc: levy, emacs-devel

> From: Silvio Levy <levy@msri.org>
> Date: Tue, 06 Dec 2011 18:51:28 -0800
> Cc: levy@msri.org
> 
> I posted this a few days ago, and was advised to post it again after
> getting a backtrace.  I hope the backtrace (obtained from emacs-snapshot)
> is adequate.  

Thanks.  Please show the results of these commands:

  (gdb) frame 14
  (gdb) print data
  (gdb) xtype

For the "xtype" command to work, you will need to instruct GDB to read
a file where "xtype" is defined.  Download this file:

  http://bzr.savannah.gnu.org/lh/emacs/trunk/annotate/head:/src/.gdbinit

by following the "download file" link on the above page, then instruct
GDB to read it:

  (gdb) source /path/to/.gdbinit

Then type the commands "frame 14" etc.

From initial look at the backtrace, it looks like Emacs is trying to
display some error message, probably related to the reason why it did
not exit.  If we succeed to show the error message and the
accompanying data, we might be able to understand the reason(s) for
that.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-07  7:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-07  2:51 memory grab, with backtrace Silvio Levy
2011-12-07  7:36 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).