all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David PONCE <david.ponce@wanadoo.fr>
Subject: Re: Unable to bootstrap GNU Emacs 21.3 (SOLVED)
Date: Mon, 27 Oct 2003 11:47:46 +0100 (CET)	[thread overview]
Message-ID: <26751439.1067251666023.JavaMail.www@wwinf0203> (raw)

Hi All,

To solve this annoying problem, I also posted a bug report on the
Redhat Fedora mailing list.  And I got an explanation on what happened
and on how to solve the issue.  I think it could be worth to note that
somewhere, perhaps in the etc/PROBLEMS file.

In fact, in recent Linux kernels, there is a new "Exec-shield"
functionality:

"[...] Exec-shield is a security-enhancing modification to the Linux
kernel that makes large parts of specially-marked programs _ including
their stack _ not executable. This can reduce the potential damage of
some security holes. Exec-shield is related to the older "non-exec
stack patch" but has the potential to provide greater protection.

Exec-shield can also randomize the virtual memory addresses at which
certain binaries are loaded. This randomized VM mapping makes it more
difficult for a malicious application to improperly access code or
data based on knowledge of the code or data's virtual address.

[...]

Exec-shield functionality is available only to binaries that have been
built (and marked) using the toolchain (compiler, assembler, linker)
available with Fedora [...]"

The problem is that Exec-shield enables a different memory layout that
breaks the emacs dumper.

Notice that this potentially affects all versions of Emacs.  On my system
building both Emacs 21.3.1 and latest 21.3.50.1 failed with segfault on:

temacs --batch --load loadup [dump|bootstrap]

There are two solutions to build Emacs:

- Turn off Exec-shield:
  
  echo 0 > /proc/sys/kernel/exec-shield

- Temporarily disable Exec-shield while building Emacs, using the
  `setarch' command:

  setarch i386 ./configure ...
  setarch i386 make ...

Hope this will help.

David

             reply	other threads:[~2003-10-27 10:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-27 10:47 David PONCE [this message]
2003-10-28 20:39 ` Unable to bootstrap GNU Emacs 21.3 (SOLVED) Richard Stallman
2003-10-28 22:11   ` David Ponce
2003-10-30  4:18     ` Richard Stallman

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=26751439.1067251666023.JavaMail.www@wwinf0203 \
    --to=david.ponce@wanadoo.fr \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.