Subject: bug#24682: 26.0.50; Bootstrap failed

From: Michael Albinus <[email-masked]>
Date: Fri, 14 Oct 2016 16:40:18 +0200

Eli Zaretskii <[email-masked]> writes:

>> From: Michael Albinus <[email-masked]>
>> Date: Thu, 13 Oct 2016 12:05:06 +0200
>> 
>> I have upgraded one of my systems from Ubuntu 16.04 to 16.10. Now `make
>> bootstrap' fails on master with
>> 
>> --8<---------------cut here---------------start------------->8---
>> Finding pointers to doc strings...
>> Finding pointers to doc strings...done
>> Dumping under the name emacs
>> 21680640 of 33554432 static heap bytes used
>> Makefile:749: recipe for target 'bootstrap-emacs' failed
>> make[1]: *** [bootstrap-emacs] Segmentation fault (core dumped)
>> --8<---------------cut here---------------end--------------->8---
>> 
>> One possible reason could be, that gcc has been upgraded from
>> "gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2)" to
>> "gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12)"
>
> Please run the faulting command under GDB, and when it crashes, show
> the backtrace.

Fortunately, it happened also on my working horse at home. Here we are:

gdb --args ./temacs --batch  --load loadup bootstrap
GNU gdb (Ubuntu 7.12-0ubuntu1) 7.12

[...]

Loading /home/albinus/src/emacs/lisp/cus-start.el (source)...
Loading /home/albinus/src/emacs/lisp/tooltip.el (source)...
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name emacs
20599360 of 33554432 static heap bytes used

Program received signal SIGSEGV, Segmentation fault.
__memcpy_ssse3 () at ../sysdeps/x86_64/multiarch/memcpy-ssse3.S:130
130	../sysdeps/x86_64/multiarch/memcpy-ssse3.S: No such file or directory.
(gdb) bt
#0  __memcpy_ssse3 () at ../sysdeps/x86_64/multiarch/memcpy-ssse3.S:130
#1  0x0000555555707f8b in memcpy (__len=1465781148, __src=0x781464, 
    __dest=0x7fff8fc1a464) at /usr/include/x86_64-linux-gnu/bits/string3.h:53
#2  unexec (
    new_name=0x555557049248 <bss_sbrk_buffer+19825800> "/usr/local/src/emacs/src/emacs", 
    old_name=0x555557049270 <bss_sbrk_buffer+19825840> "/usr/local/src/emacs/src/temacs") at unexelf.c:406
#3  0x000055555565bea7 in Fdump_emacs (filename=93825020178884, 
    symfile=<optimized out>) at emacs.c:2157
#4  0x00005555556d2b65 in eval_sub (form=<optimized out>) at eval.c:2190
#5  0x00005555556d2e0d in Fprogn (body=93825005441411) at eval.c:432
#6  0x00005555556d2aac in eval_sub (form=<optimized out>) at eval.c:2140
#7  0x00005555556d2aac in eval_sub (form=form@entry=93825001004739)
    at eval.c:2140
#8  0x00005555556f79ff in readevalloop (readcharfun=readcharfun@entry=24960, 
    stream=stream@entry=0x555555d9e8a0 <bss_sbrk_buffer+252640>, 
    sourcename=sourcename@entry=93825001304836, 
    printflag=printflag@entry=false, unibyte=unibyte@entry=0, 
    readfun=readfun@entry=0, start=0, end=0) at lread.c:1929
#9  0x00005555556f80ac in Fload (file=93825001304580, noerror=<optimized out>, 
    nomessage=0, nosuffix=<optimized out>, must_suffix=<optimized out>)
    at lread.c:1334
---Type <return> to continue, or q <return> to quit---
#10 0x00005555556d2b1a in eval_sub (form=form@entry=93825000997779) at eval.c:2201
#11 0x00005555556d647c in Feval (form=93825000997779, lexical=<optimized out>) at eval.c:2009
#12 0x00005555556d1d42 in internal_condition_case (bfun=bfun@entry=0x555555660360 <top_level_2>, handlers=handlers@entry=19440, 
    hfun=hfun@entry=0x555555665550 <cmd_error>) at eval.c:1314
#13 0x0000555555662b30 in top_level_1 (ignore=ignore@entry=0) at keyboard.c:1135
#14 0x00005555556d1ce3 in internal_catch (tag=tag@entry=46320, func=func@entry=0x555555662ad0 <top_level_1>, arg=arg@entry=0)
    at eval.c:1080
#15 0x00005555556602fd in command_loop () at keyboard.c:1096
#16 0x0000555555665147 in recursive_edit_1 () at keyboard.c:703
#17 0x0000555555665498 in Frecursive_edit () at keyboard.c:774
#18 0x0000555555587c4d in main (argc=5, argv=0x7fffffffdd18) at emacs.c:1659

Lisp Backtrace:
"dump-emacs" (0xffffd560)
"progn" (0xffffd628)
"if" (0xffffd6e8)
"load" (0xffffda10)

> Thanks.

Best regards, Michael.