Subject: bug#17624: 24.4.50; Emacs crashes during bootstrap on FreeBSD 10

From: Yoshiaki Kasahara <[email-masked]>
Date: Thu, 29 May 2014 10:21:45 +0900 (JST)

Emacs trunk started to crash on FreeBSD 10 during bootstrap from
(maybe) yesterday.  Three days ago it was fine.  I haven't tried
bisecting yet.  I tried both clang-3.4 (system compiler) and gcc-4.7.3
(from ports collection), but I had almost the same result.  The result
using gcc follows:

(..omit..)
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name emacs
91154 pure bytes used
cd ../lisp; gmake -w compile-first EMACS="../src/bootstrap-emacs"
gmake[3]: Entering directory `/usr/local/src/Emacs24/emacs/lisp'
Compiling emacs-lisp/macroexp.el
Fatal error 11: Segmentation fault
Backtrace:
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
0x4ff29b <emacs_backtrace+0x8b> at /usr/local/src/Emacs24/emacs/src/bootstrap-emacs
gmake[3]: *** [emacs-lisp/macroexp.elc] Segmentation fault (core dumped)
gmake[3]: Leaving directory `/usr/local/src/Emacs24/emacs/lisp'
gmake[2]: *** [bootstrap-emacs] Error 2
gmake[2]: Leaving directory `/usr/local/src/Emacs24/emacs/src'
gmake[1]: *** [src] Error 2
gmake[1]: Leaving directory `/usr/local/src/Emacs24/emacs'
gmake: *** [bootstrap] Error 2
[1]    16584 exit 2     gmake bootstrap CC=gcc47 MAKE=gmake
% cd src
% gdb bootstrap-emacs ../lisp/bootstrap-emacs.core
GNU gdb 6.1.1 [FreeBSD]
(omit)
#0  0x0000000807c9cb8a in thr_kill () from /lib/libc.so.7
[New Thread 1b1b400 (LWP 100981/bootstrap-emacs)]
DISPLAY = :0.0
TERM = xterm-256color
Breakpoint 1 at 0x4e5121: file emacs.c, line 616.
Breakpoint 2 at 0x4fe9b0: file sysdep.c, line 2318.
(gdb) bt full
#0  0x0000000807c9cb8a in thr_kill () from /lib/libc.so.7
No symbol table info available.
#1  0x00000000004e5195 in terminate_due_to_signal (sig=11, backtrace_limit=40)
    at emacs.c:616
No locals.
#2  0x00000000004fdaa8 in deliver_fatal_thread_signal (
    sig=<value optimized out>) at sysdep.c:2318
No locals.
#3  0x0000000807a193da in swapcontext () from /lib/libthr.so.3
No symbol table info available.
#4  0x0000000807a18fc2 in sigaction () from /lib/libthr.so.3
No symbol table info available.
#5  <signal handler called>
No symbol table info available.
#6  0x0000000000502620 in mmap_alloc (var=0xd1ee30, nbytes=46) at buffer.c:2279
        r = (struct mmap_region *) 0x800859000
        p = (void *) 0x800859000
        map = 4096
#7  0x000000000050758e in enlarge_buffer_text (b=0xd1ec00, delta=Unhandled dwarf expression opcode 0xf3
)
    at buffer.c:2279
        nbytes = 46
#8  0x0000000000d1ec00 in ?? ()
No symbol table info available.
#9  0x000000000000000b in ?? ()
No symbol table info available.
#10 0x00007fffffffd79c in ?? ()
No symbol table info available.
#11 0x0000000000000000 in ?? ()
No symbol table info available.
You can't do that without a process to debug.

In GNU Emacs 24.4.50.1 (amd64-unknown-freebsd10.0, GTK+ Version 3.8.8)
 of 2014-05-27 on elvenbow.cc.kyushu-u.ac.jp
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
Configured using:
 `configure --without-xim'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB

Important settings:
  value of $LC_TIME: C
  value of $LANG: ja_JP.UTF-8
  value of $XMODIFIERS: @im=uim
  locale-coding-system: utf-8-unix

Major mode: Summary

Minor modes in effect:
  recentf-mode: t
  context-skk-mode: t
  show-paren-mode: t
  savehist-mode: t
  icomplete-mode: t
  global-hl-line-mode: t
  desktop-save-mode: t
  helm-dired-mode: Enable helm completion in Dired functions.
Bindings affected are C, R, S, H.
This is deprecated for Emacs24+ users, use `helm-mode' instead.
  helm-match-plugin-mode: t
  display-time-mode: t
  xterm-mouse-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t

Recent input:
C-a Z a n n n e n n SPC n a K a n Z i d e s u g a , 
M-q C-a C-x C-s C-p C-p C-f C-f C-f C-f C-f C-f C-f 
C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f 
C-f C-f C-f C-f C-f C-f C-j C-f C-f C-f C-f C-f C-f 
C-f C-f C-f C-f C-f C-b C-b C-b C-b C-b C-b C-b C-b 
C-b C-b C-b C-f C-b C-b C-b C-b C-b C-b C-b C-b C-b 
C-b C-b C-b C-f D e N a i y a t u t o C-d C-f C-f C-f 
C-f C-f C-f C-d C-d C-d C-f C-f C-f C-f C-f C-f 1 K 
o SPC z u t u M-q C-a C-n C-x C-s C-p C-f C-f C-f C-f 
C-f d e C-d M-q C-a C-n C-x C-s C-c C-c y i SPC d o 
<return> x i C-z r <switch-frame> M-h i C-s u b C-a 
u u M-< C-s b u g C-s s C-a M-< M-h r C-s b u g s C-b 
C-b <return> C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-f C-f C-f <return> u C-p C-n C-n <return> 
C-s g d b C-a C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n <switch-frame> 
i M-x e <backspace> s e n d - <backspace> <backspace> 
<backspace> <backspace> <backspace> b <backspace> e 
m a c s - b u <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> b u 
g - <backspace> C-g C-g M-x r e p o r t - e <tab> b 
u <tab> <return>

Recent messages:
Scanning +inbox...done
Scanning +inbox...done
Composing main Info directory...done
Mark saved where search started
user-error: Node has no Up [2 times]
Mark set
Mark saved where search started
Mark set
Mark saved where search started [2 times]
Scanning +inbox...done
Quit [2 times]

Load-path shadows:
None found.

Features:
(shadow emacsbug message idna rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mail-utils kkc ja-dic-utl quail misearch
multi-isearch skk-isearch mule-util dictionary link connection skk-cdb
cdb qp w3m-form skk-comp skk-annotation skk-num skk-tankan recentf
tree-widget mhc-sync mhc mhc-minibuf mhc-e21 mhc-calendar mhc-face
mhc-guess mhc-misc mhc-process mhc-db mhc-slot mhc-parse mhc-header
mhc-logic mhc-date mhc-record org-id mhc-draft mhc-file mhc-summary
mhc-schedule mhc-day mhc-vars mhc-compat mhc-mew mew-unix mew-varsx
mew-w3m w3m doc-view image-mode timezone w3m-hist w3m-fb bookmark-w3m
w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util mew-auth
mew-config mew-imap2 mew-imap mew-nntp2 mew-nntp mew-pop mew-smtp
mew-ssl mew-ssh mew-net mew-highlight mew-sort mew-fib mew-ext
mew-refile mew-demo mew-attach mew-draft mew-message mew-thread
mew-virtual mew-summary4 mew-summary3 mew-summary2 mew-summary
mew-search mew-pick mew-passwd mew-scan mew-syntax mew-bq mew-smime
mew-pgp mew-header mew-exec mew-mark mew-mime mew-edit mew-decode
mew-encode mew-cache mew-minibuf mew-complete mew-addrbook mew-local
mew-vars3 mew-vars2 mew-vars mew-env mew-lang-jp mew-mule3 mew-mule
mew-gemacs mew-key mew-func mew-blvs mew-const mew xterm
network-stream starttls tls riece-irc riece-filter riece-handle
riece-500 riece-400 riece-300 riece-200 riece-000 riece-naming
riece-mcat-japanese riece-url riece-unread riece-twitter riece-toolbar
riece-skk-kakutei riece-shrink-buffer riece-menu riece-log
riece-keyword riece-ignore riece-icon riece-history riece-guess
riece-ctlseq riece-ctcp riece-highlight riece-button riece-alias riece
riece-addon riece-addon-modules riece-commands riece-message
riece-complete riece-display riece-mcat riece-signal riece-layout
riece-misc riece-user riece-server riece-debug riece-channel
riece-cache riece-mode riece-identity riece-coding riece-options
riece-globals riece-compat riece-emacs riece-version
riece-package-info pp descr-text help-mode skk-cursor skk-server
skk-cus cus-edit skk skk-emacs skk-macs skk-vars wid-edit queue-m
server ccc vc-rcs context-skk vc-git alpaca flyspell ispell rd-mode
info cl-macs paren savehist ido icomplete hl-line desktop frameset
cus-start cus-load package helm-mode helm-files image-dired dired-aux
ffap thingatpt helm-tags helm-bookmark helm-adaptative helm-info
helm-net browse-url xml url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-domsuf url-util url-parse
url-vars helm-plugin helm-locate helm-help helm-match-plugin helm-grep
helm-buffers helm-elscreen helm-regexp grep helm-external helm-utils
compile helm helm-config edmacro kmacro org org-macro org-footnote
org-pcomplete org-list org-faces org-entities noutline outline
org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table
ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs
org-loaddefs find-func cal-menu calendar cal-loaddefs epa-file time
xt-mouse yaml-mode epa derived epg epg-config time-stamp tex-site
auto-loads howm-lang-ja howm-lang-en howm-menu howm-reminder howm-date
howm-misc howm-mode howm-view howm-backend howm howm-common howm-vars
mailcap howm-version honest-report action-lock riffle gfunc illusion
cheat-font-lock howm-cl cl gv cl-loaddefs cl-lib easy-mmode
browse-yank psgml-startup tramp tramp-compat auth-source eieio
byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util
mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete
comint ansi-color ring format-spec jka-compr dired-x easymenu dired
disp-table ucs-normalize time-date advice help-fns japan-util
skk-setup skk-autoloads tooltip electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode
register page menu-bar rfn-eshadow timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 771487 240176)
 (symbols 48 58877 0)
 (miscs 40 3440 4118)
 (strings 32 198338 86459)
 (string-bytes 1 4483446)
 (vectors 16 80914)
 (vector-slots 8 1985341 229868)
 (floats 8 791 1261)
 (intervals 56 41434 799)
 (buffers 960 79))