Subject: 24.3.50; Segfault when compiling cedet/srecode/srt-mode.el
From: Dmitry Gutov <[email-masked]>
To: [email-masked]
Date: Tue, 17 Dec 2013 04:50:26 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

This is the second time I've encountered this now.

When compiling Emacs, it crashes at this exact same file. Restarting
compilation or 'make bootsrap' doesn't fix it, but rebooting the
machine does.

Also, this time around I tried to recompile it with CFLAGS="-Og -g3",
and the crash also went away.

Attached are the relevant piece of the compilation output, and the
result of running it though sed+addr2line.

No idea how to catch this crash in gdb, suggestions welcome.

In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.6)
 of 2013-12-17 on axl
Bzr revision: 115560 [email-masked]
Windowing system distributor `The X.Org Foundation', version 11.0.11403000
System Description:	Ubuntu 13.10

Wrote /home/gutov/emacs-bzr/trunk/lisp/cedet/srecode/semantic.elc
Compiling cedet/srecode/srt.el
Wrote /home/gutov/emacs-bzr/trunk/lisp/cedet/srecode/srt.elc
Compiling cedet/srecode/srt-mode.el

Backtrace:
../src/emacs[0x4efacb]
../src/emacs[0x4d688e]
../src/emacs[0x4eea3e]
../src/emacs[0x4eec43]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfbb0)[0x2aef309f5bb0]
../src/emacs[0x52e244]
../src/emacs[0x52e76e]
../src/emacs[0x52e29f]
../src/emacs[0x52ec94]
../src/emacs[0x546b32]
../src/emacs[0x57ab2d]
../src/emacs[0x546227]
../src/emacs[0x5494d9]
../src/emacs[0x57bb3d]
../src/emacs[0x5467ef]
../src/emacs[0x546b5b]
../src/emacs[0x57ab2d]
../src/emacs[0x5467ef]
../src/emacs[0x546b5b]
../src/emacs[0x546eaf]
../src/emacs[0x508dc4]
../src/emacs[0x546cfc]
../src/emacs[0x57ab2d]
../src/emacs[0x5467ef]
../src/emacs[0x546b5b]
../src/emacs[0x5487f9]
../src/emacs[0x569a91]
../src/emacs[0x553322]
../src/emacs[0x546227]
../src/emacs[0x568d1a]
../src/emacs[0x569cde]
../src/emacs[0x546cfc]
../src/emacs[0x57ab2d]
../src/emacs[0x5467ef]
../src/emacs[0x546b5b]
../src/emacs[0x5487f9]
../src/emacs[0x569a91]
../src/emacs[0x553322]
../src/emacs[0x546d28]
../src/emacs[0x54814a]
../src/emacs[0x546c3a]
...
make[3]: *** [cedet/srecode/srt-mode.elc] Segmentation fault (core dumped)
make[3]: Leaving directory `/home/gutov/emacs-bzr/trunk/lisp'
make[2]: *** [compile-main] Error 2
make[2]: Leaving directory `/home/gutov/emacs-bzr/trunk/lisp'
make[1]: *** [lisp] Error 2
make[1]: Leaving directory `/home/gutov/emacs-bzr/trunk'
make: *** [bootstrap] Error 2

;;;

emacs_backtrace
/home/gutov/emacs-bzr/trunk/src/sysdep.c:2114
terminate_due_to_signal
/home/gutov/emacs-bzr/trunk/src/emacs.c:372
handle_fatal_signal
/home/gutov/emacs-bzr/trunk/src/sysdep.c:1628
deliver_fatal_thread_signal
/home/gutov/emacs-bzr/trunk/src/sysdep.c:1602
??
??:0
mark_object
/home/gutov/emacs-bzr/trunk/src/alloc.c:5954
mark_vectorlike
/home/gutov/emacs-bzr/trunk/src/alloc.c:5751 (discriminator 2)
mark_object
/home/gutov/emacs-bzr/trunk/src/alloc.c:6099
mark_memory
/home/gutov/emacs-bzr/trunk/src/alloc.c:4601
mark_stack
/home/gutov/emacs-bzr/trunk/src/alloc.c:4839
Fgarbage_collect
/home/gutov/emacs-bzr/trunk/src/alloc.c:5512
Ffuncall
/home/gutov/emacs-bzr/trunk/src/eval.c:2758
exec_byte_code
/home/gutov/emacs-bzr/trunk/src/bytecode.c:919
eval_sub
/home/gutov/emacs-bzr/trunk/src/eval.c:2181
internal_lisp_condition_case
/home/gutov/emacs-bzr/trunk/src/eval.c:1314
exec_byte_code
/home/gutov/emacs-bzr/trunk/src/bytecode.c:1169
funcall_lambda
/home/gutov/emacs-bzr/trunk/src/eval.c:3039
Ffuncall
/home/gutov/emacs-bzr/trunk/src/eval.c:2866
exec_byte_code
/home/gutov/emacs-bzr/trunk/src/bytecode.c:919
funcall_lambda
/home/gutov/emacs-bzr/trunk/src/eval.c:3039
Ffuncall
/home/gutov/emacs-bzr/trunk/src/eval.c:2866
call2
/home/gutov/emacs-bzr/trunk/src/eval.c:2620
Finsert_file_contents
/home/gutov/emacs-bzr/trunk/src/fileio.c:4220
Ffuncall
/home/gutov/emacs-bzr/trunk/src/eval.c:2824
exec_byte_code
/home/gutov/emacs-bzr/trunk/src/bytecode.c:919
funcall_lambda
/home/gutov/emacs-bzr/trunk/src/eval.c:3039
Ffuncall
/home/gutov/emacs-bzr/trunk/src/eval.c:2866
call4
/home/gutov/emacs-bzr/trunk/src/eval.c:2654
Fload
/home/gutov/emacs-bzr/trunk/src/lread.c:1296 (discriminator 2)
Frequire
/home/gutov/emacs-bzr/trunk/src/fns.c:2659 (discriminator 6)
eval_sub
/home/gutov/emacs-bzr/trunk/src/eval.c:2181
readevalloop
/home/gutov/emacs-bzr/trunk/src/lread.c:1889
Feval_buffer
/home/gutov/emacs-bzr/trunk/src/lread.c:1950 (discriminator 3)
Ffuncall
/home/gutov/emacs-bzr/trunk/src/eval.c:2824
exec_byte_code
/home/gutov/emacs-bzr/trunk/src/bytecode.c:919
funcall_lambda
/home/gutov/emacs-bzr/trunk/src/eval.c:3039
Ffuncall
/home/gutov/emacs-bzr/trunk/src/eval.c:2866
call4
/home/gutov/emacs-bzr/trunk/src/eval.c:2654
Fload
/home/gutov/emacs-bzr/trunk/src/lread.c:1296 (discriminator 2)
Frequire
/home/gutov/emacs-bzr/trunk/src/fns.c:2659 (discriminator 6)
Ffuncall
/home/gutov/emacs-bzr/trunk/src/eval.c:2814
Fapply
/home/gutov/emacs-bzr/trunk/src/eval.c:2291
Ffuncall
/home/gutov/emacs-bzr/trunk/src/eval.c:2786