Subject: bug#15794: Core dump after SIGTERM during GC marking

From: Barry OReilly <[email-masked]>
Date: Sun, 3 Nov 2013 15:29:55 -0500

> Since kill-emacs-hook is nil by default, it is hard to know what
> exactly happened. Please try to find out whoch function was run by
> the hook at the point of the crash. The easiest way of doing that is
> to call "xbacktrace" (which is always recommended when reporting
> bugs, btw).

etc/DEBUG says to run GDB in the src directory. When I do that:

$ gdb emacs core
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /media/sda3/sw/emacs/src/emacs...done.
[New LWP 22588]
[New LWP 22589]
[New LWP 22590]
[New LWP 22591]

warning: Error reading shared library list entry at 0x2493ba3824548b44

warning: Error reading shared library list entry at 0x45c889440000017e
Core was generated by `emacs --reverse-video'.
Program terminated with signal 6, Aborted.
#0  0x00007f14dc5c5b7b in ?? ()
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from
terminal]
DISPLAY = :0.0
TERM = xterm
Breakpoint 1 at 0x4d6250: file emacs.c, line 348.
Temporary breakpoint 2 at 0x4ef720: file sysdep.c, line 846.
(gdb) xbacktrace
You can't do that without a process to debug.
(gdb) quit

Probably has to do with emacs being an install of Emacs trunk as of
about August while the source tree is up to date. How do I get a
xbacktrace from an install?

My kill-emacs-hook is:

  (ede-save-cache semanticdb-kill-emacs-hook)