From: Thomas Fitzsimmons <fitzsim@fitzsim.org>
To: 33174@debbugs.gnu.org
Cc: Paul Eggert <eggert@cs.ucla.edu>
Subject: bug#33174: 27.0.50; Dump fails on GNU/Linux ppc64le
Date: Sat, 27 Oct 2018 09:16:17 -0400 [thread overview]
Message-ID: <m38t2jedi6.fsf@fitzsim.org> (raw)
In-Reply-To: <m3lg6jekyi.fsf@fitzsim.org> (Thomas Fitzsimmons's message of "Sat, 27 Oct 2018 06:35:17 -0400")
Thomas Fitzsimmons <fitzsim@fitzsim.org> writes:
> Hi Paul,
>
> On ppc64le Debian GNU/Linux 9, I'm seeing a bootstrap failure on the
> master and emacs-26 branches that I didn't see the last time I built
> Emacs:
>
> [...]
> Dumping under the name emacs
> **************************************************
> Warning: Your system has a gap between BSS and the
> heap (424960392 bytes). This usually means that exec-shield
> or something similar is in effect. The dump may
> fail because of this. See the section about
> exec-shield in etc/PROBLEMS for more information.
> **************************************************
> 22496304 of 33554432 static heap bytes used
> Makefile:749: recipe for target 'bootstrap-emacs' failed
> make[1]: *** [bootstrap-emacs] Segmentation fault
> make[1]: Leaving directory '/home/fitzsim/sources/emacs/src'
> Makefile:421: recipe for target 'src' failed
> make: *** [src] Error 2
>
> I bisected the failure to:
>
> commit 65889a6d127fcbbbdc1e74d26036e91bd24d1405
> Author: Paul Eggert <eggert@cs.ucla.edu>
> Date: Sun Jul 8 09:04:02 2018 -0700
>
> Fix bootstrap infloop in GNU/Linux alpha
>
> * src/emacs.c (main): Do not re-exec if EMACS_HEAP_EXEC
> is already set (Bug#32083).
>
> If I revert that commit's patch, the build succeeds.
It looks like this segmentation fault is influenced by the setting in
/proc/sys/kernel/randomize_va_space.
Running by hand in src (with the patch in question applied):
./temacs --batch --load loadup bootstrap
- if randomize_va_space contains 2, bootstrap fails:
segfaults:
Dumping under the name emacs
**************************************************
Warning: Your system has a gap between BSS and the
heap (752378248 bytes). This usually means that exec-shield
or something similar is in effect. The dump may
fail because of this. See the section about
exec-shield in etc/PROBLEMS for more information.
**************************************************
22496304 of 33554432 static heap bytes used
Segmentation fault
- if randomize_va_space contains 1 or 0, bootstrap succeeds:
Loading /home/fitzsim/sources/emacs/lisp/tooltip.el (source)...
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name emacs
22496304 of 33554432 static heap bytes used
99079 pure bytes used
Thomas
next prev parent reply other threads:[~2018-10-27 13:16 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-27 10:35 bug#33174: 27.0.50; Dump fails on GNU/Linux ppc64le Thomas Fitzsimmons
2018-10-27 13:16 ` Thomas Fitzsimmons [this message]
2018-10-27 20:26 ` Paul Eggert
2018-10-28 8:05 ` Paul Eggert
2018-10-28 12:56 ` Thomas Fitzsimmons
2018-10-28 19:22 ` Paul Eggert
2018-10-30 1:28 ` Thomas Fitzsimmons
2018-10-30 2:16 ` Paul Eggert
2018-10-29 1:47 ` Thomas Fitzsimmons
2018-10-29 7:22 ` Paul Eggert
2018-10-30 2:44 ` Thomas Fitzsimmons
2018-10-30 5:58 ` Paul Eggert
2018-10-30 9:30 ` Thomas Fitzsimmons
2018-11-12 6:39 ` Paul Eggert
2018-11-12 17:24 ` Andy Moreton
2018-11-13 2:29 ` Thomas Fitzsimmons
2018-11-13 14:42 ` Paul Eggert
2018-11-19 3:14 ` Thomas Fitzsimmons
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m38t2jedi6.fsf@fitzsim.org \
--to=fitzsim@fitzsim.org \
--cc=33174@debbugs.gnu.org \
--cc=eggert@cs.ucla.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).