This is a segfault during GC, in mark_object. 1. Start emacs $ emacs -Q 2. Call some code which kills and creates a frame between 2 and 25 times. This segfault is reasonably straightforward to reproduce, I can cause the crash within 2 minutes of starting emacs. On the emacs-24 branch, this seems to occur in mark_object. The issue is also found on the trunk branch so I have supplied details of this also, however the backtrace is slightly different. The issue may relate to bugs #15583 and #17168. Finally, I have a core dumps which I don't mind sharing for both of these crashes which are ~350MB each, please ask. Regards, Mat System Info: In GNU Emacs 24.3.92.3 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2014-08-03 on zz Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04 LTS Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Details of the two segfaults: Crash on emacs-24 branch (gdb) p Fsymbol_value(intern("emacs-bzr-version")) $3 = 12112050 Attachment: backtrace.6212 (Output from bt full) Crash on trunk: (gdb) p Fsymbol_value(intern("emacs-bzr-version")) $1 = 12341426 Attachment: backtrace.6069 2 shorter backtraces follow: 6212 - (gdb) bt full 6 #0 mark_object (arg=) at alloc.c:6248 obj = 139640014399843 cdr_count = 0 #1 0x000000000053b8a0 in Fgarbage_collect () at alloc.c:5647 nextb = 0x19a2c10 stack_top_variable = 0 '\000' i = message_p = false retval = tot_before = 0 #2 0x00000000005534d2 in maybe_gc () at lisp.h:4564 No locals. #3 Ffuncall (nargs=5, args=0x7fffffffc738) at eval.c:2766 fun = original_fun = numargs = 4 val = internal_args = i = #4 0x00000000005878e5 in exec_byte_code (bytestr=3, vector=2866666, maxdepth=182, args_template=12112050, nargs=140737488340816, args=0x5) at bytecode.c:916 targets = {0x58797c , 0x58813f , 0x588144 , 0x588149 , 0x587772 , 0x587778 , 0x588919 , 0x588956 , 0x5889d8 , 0x5889dd , 0x5889a7 , 0x5889ac , 0x5877a9 , 0x5877b0 , 0x587e17 , 0x5889b1 , 0x587f83 , 0x587f88 , 0x588005 , 0x58800a , 0x587815 , 0x587818 , 0x587fb4 , 0x587f8d , 0x588036 , 0x58803b , 0x588040 , 0x588045 , 0x587881 , 0x587888 , 0x587ff0 , 0x58800f , 0x588091 , 0x588096 , 0x58809b , 0x5880a5 , 0x5878c3 , 0x5878c8 , 0x588055 , 0x58806a , 0x5879f2 , 0x5879f7 , 0x5879fc , 0x5880ca , 0x587905 , 0x587908 , 0x5880b5 , 0x5879cb , 0x58881e , 0x588813 , 0x58871f , 0x58797c , 0x58797c , 0x58797c , 0x58797c , 0x58797c , 0x588b3e , 0x588bcc , 0x588c03 , 0x588c3a , 0x588c71 , 0x587eda , 0x587f14 , 0x588cb2 , 0x587e9f , 0x587f48 , 0x588ce4 , 0x588d18 , 0x588d40 , 0x588d74 , 0x588da9 , 0x588e20 , 0x588e48 , 0x588e7c , 0x588eb4 , 0x588edc , 0x588f04 , 0x588f38 , 0x588f6c , 0x588fa0 , 0x588fd8 , 0x58900d , 0x589042 , 0x5890b9 , 0x5890f2 , 0x58912b , 0x589244 , 0x5891d2 , 0x58920b , 0x58927d , 0x5892b6 , 0x5892eb , 0x58931d , 0x589352 , 0x589387 , 0x5893bc , 0x58945a , 0x58794d , 0x589490 , 0x5894b8 , 0x589527 , 0x58955d , 0x589593 , 0x5895bb , 0x5895e5 , 0x58960f , 0x58963c , 0x58797c , 0x58966b , 0x589698 , 0x5896c5 , 0x5896f2 , 0x58971f , 0x58974c , 0x58794d , 0x58797c , 0x589774 , 0x5897b3 , 0x5897db , 0x589803 , 0x589837 , 0x58986b , 0x5882f2 , 0x5883c8 , 0x589a74 , 0x589aa8 , 0x5883fc , 0x588429 , 0x58797c , 0x58866b , 0x587a05 , 0x587e2c , 0x587c71 , 0x587b13 , 0x587d73 , 0x5885f7 , 0x58864a , 0x587fc9 , 0x58853c , 0x5884de , 0x5886b7 , 0x5886e6 , 0x58884d , 0x588899 , 0x5888d1 , 0x588ae8 , 0x5884b1 , 0x588451 , 0x588489 , 0x589893 , 0x5898bb , 0x5898e3 , 0x58990b , 0x58993f , 0x589973 , 0x5899a7 , 0x5899db , 0x588155 , 0x588189 , 0x5881bd , 0x5881e5 , 0x588219 , 0x58824d , 0x588285 , 0x5882bd , 0x5893f1 , 0x589426 , 0x5880cf , 0x58810d , 0x58797c , 0x587a99 , 0x587d18 , 0x587b83 , 0x587c0e , 0x58856b , 0x588dde , 0x589077 , 0x5894e5 , 0x5889e2 , 0x588a1f , 0x58797c , 0x58797c , 0x588a70 , 0x58797c , 0x58797c , 0x58797c , 0x58797c , 0x58797c , 0x58797c , 0x58797c , 0x58797c , 0x58797c , 0x588ab8 } stack = { pc = 0xac48b8 "\207", byte_string = 9140745, byte_string_start = 0xac486b "\303\304\b\t\b\305=\203E", next = 0x7fffffffc9e0 } result = 3 type = (unknown: 4294952784) #5 0x000000000055318f in funcall_lambda (fun=9140701, nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7fffffffc990) at eval.c:3049 val = syms_left = 12112050 lexenv = 12112050 i = optional = rest = (More stack frames follow...) Lisp Backtrace: "Automatic GC" (0xb73088) "apply" (0xffffc740) "face-spec-reset-face" (0xffffc990) "face-spec-recalc" (0xffffcb40) "byte-code" (0xffffcc30) "face-set-after-frame-default" (0xffffcf20) "x-create-frame-with-faces" (0xffffd0d0) "make-frame" (0xffffd200) "let*" (0xffffd3f8) "setq" (0xffffd4e8) "stupider-speed-read" (0xffffd6c8) "call-interactively" (0xffffd8d0) "command-execute" (0xffffda40) "execute-extended-command" (0xffffdba8) "call-interactively" (0xffffde20) "command-execute" (0xffffdf68) 6069 - (gdb) bt full 6 **** bt full 6 #0 XCAR (c=3255377271362580334) at lisp.h:1052 No locals. #1 compact_undo_list (list=3255377271362580334) at alloc.c:5506 tail = 3255377271362580334 prev = 0x7fffffffb678 #2 garbage_collect_1 (end=0x7fffffffb668) at alloc.c:5675 nextb = 0x194b800 i = retval = stack_top_variable = 0 '\000' message_p = false tot_before = 0 #3 Fgarbage_collect () at alloc.c:5896 end = 0x7fffffffb668 #4 0x0000000000558ee2 in maybe_gc () at lisp.h:4547 No locals. #5 Ffuncall (nargs=2, args=0x7fffffffb7f8) at eval.c:2759 fun = original_fun = numargs = 1 val = internal_args = i = (More stack frames follow...) Lisp Backtrace: "Automatic GC" (0xbaa970) "purecopy" (0xffffb800) "set-face-attribute" (0xffffb9b8) "apply" (0xffffbbc0) "face-spec-reset-face" (0xffffbe10) "face-spec-recalc" (0xffffbfc0) "byte-code" (0xffffc0b0) "face-set-after-frame-default" (0xffffc3a0) "x-create-frame-with-faces" (0xffffc550) "make-frame" (0xffffc680) "let*" (0xffffc878) "setq" (0xffffc968) "stupider-speed-read" (0xffffcbf0) "funcall-interactively" (0xffffcbe8) "call-interactively" (0xffffce20) "command-execute" (0xffffcf90) "execute-extended-command" (0xffffd190) "funcall-interactively" (0xffffd188) "call-interactively" (0xffffd3f0) "command-execute" (0xffffd538) "call-last-kbd-macro" (0xffffd780) "kmacro-call-macro" (0xffffd970) "kmacro-end-and-call-macro" (0xffffdc00) "funcall-interactively" (0xffffdbf8) "call-interactively" (0xffffde00) "command-execute" (0xffffdf48)