all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: Unable to bootstrap GNU Emacs 21.3 (SOLVED)
@ 2003-10-27 10:47 David PONCE
  2003-10-28 20:39 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: David PONCE @ 2003-10-27 10:47 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unable to bootstrap GNU Emacs 21.3 (SOLVED)
  2003-10-27 10:47 Unable to bootstrap GNU Emacs 21.3 (SOLVED) David PONCE
@ 2003-10-28 20:39 ` Richard Stallman
  2003-10-28 22:11   ` David Ponce
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2003-10-28 20:39 UTC (permalink / raw)
  Cc: emacs-devel

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

those words are disturbing.  what toolchain is this?
is it a version of gcc?  is it free sw?

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

cd you write an etc/PROBLEMS entry about this?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unable to bootstrap GNU Emacs 21.3 (SOLVED)
  2003-10-28 20:39 ` Richard Stallman
@ 2003-10-28 22:11   ` David Ponce
  2003-10-30  4:18     ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: David Ponce @ 2003-10-28 22:11 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman wrote:
>     Exec-shield functionality is available only to binaries that have been
>     built (and marked) using the toolchain (compiler, assembler, linker)
>     available with Fedora [...]"
> 
> those words are disturbing.  what toolchain is this?
> is it a version of gcc?  is it free sw?

It is the gcc (3.3.2)/glibc (2.3.2) toolchain associated to the Fedora Linux kernel (2.4.22).

>     The problem is that Exec-shield enables a different memory layout that
>     breaks the emacs dumper.
> 
> cd you write an etc/PROBLEMS entry about this?
> 

I can try to write something.  However I am not sure to be able to explain what
is exactly Exec-shield nor how it impacts the Emacs dumper.

Perhaps there is a GNU/Linux and Emacs dumper guru there that could help?

David

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unable to bootstrap GNU Emacs 21.3 (SOLVED)
  2003-10-28 22:11   ` David Ponce
@ 2003-10-30  4:18     ` Richard Stallman
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2003-10-30  4:18 UTC (permalink / raw)
  Cc: emacs-devel

    I can try to write something.  However I am not sure to be able to explain what
    is exactly Exec-shield nor how it impacts the Emacs dumper.

Don't worry about that.  All PROBLEMS entries are written from the
user's point of view, so it is not supposed to explain what
exec-shield is or why it causes a problem for unexec.

So please try.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-10-30  4:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-27 10:47 Unable to bootstrap GNU Emacs 21.3 (SOLVED) David PONCE
2003-10-28 20:39 ` Richard Stallman
2003-10-28 22:11   ` David Ponce
2003-10-30  4:18     ` Richard Stallman

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.