Subject: Re: bug#21428: 24.5; Crash of emacs on OS X, installed via homebrew cask

From: Eli Zaretskii <[email-masked]>
Date: Wed, 23 Sep 2015 12:48:52 +0300

> From: Rainer M Krug <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Wed, 23 Sep 2015 10:41:39 +0200
> 
> OK - here is the backtrace I got.
> 
> Hope this helps,
> 
> Rainer
> 
> 
> ,----
> | (gdb) bt full
> | #0  0x00007fff89f08c82 in __kill ()
> | No symbol table info available.
> | #1  0x0000000100179390 in terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:397
> | No locals.
> | #2  0x00000001001b0fe3 in emacs_abort () at sysdep.c:2219
> | No locals.
> | #3  0x000000010033d2f8 in ns_term_shutdown (sig=6) at nsterm.m:4599
> | No locals.
> | #4  0x0000000100179683 in shut_down_emacs (sig=6, stuff=0) at emacs.c:2038
> | 	format = 0x10039bfa0 "Fatal error %d: "
> | #5  0x000000010017932b in terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:381
> | No locals.
> | #6  0x00000001002256eb in die (msg=0x1003b67ea "face != NULL", file=0x1003b24d0 "xdisp.c", line=24330) at alloc.c:6951
> | No locals.
> | #7  0x0000000100063797 in get_glyph_face_and_encoding (f=0x1058183a0, glyph=0x11c13e720, char2b=0x7fff5fbe6850) at xdisp.c:24330
> | 	face = (struct face *) 0x0
> | 	code = 0

This abort happens when Emacs tries to invoke the Lisp debugger, in
order to report some kind of error.

Assuming you still have this session in the debugger, please do:

 (gdb) frame 7
 (gdb) p f->face_cache->used
 (gdb) frame 9
 (gdb) pgrow

If the last command errors out due to "Undefined command", type this:

 (gdb) source /path/to/emacs/src/.gdbinit

and then try the "pgrow" command again.  Also, please show the output
of this command:

 (gdb) xbacktrace

Finally, please show what this produces:

 (gdb) frame 36
 (gdb) pp error_symbol
 (gdb) pp data