Commit 65889a6d authored by Paul Eggert's avatar Paul Eggert

Fix bootstrap infloop in GNU/Linux alpha

* src/emacs.c (main): Do not re-exec if EMACS_HEAP_EXEC
is already set (Bug#32083).
parent 48efd1c9
......@@ -707,10 +707,12 @@ main (int argc, char **argv)
bool disable_aslr = dumping;
# endif
if (disable_aslr && disable_address_randomization ())
if (disable_aslr && disable_address_randomization ()
&& !getenv ("EMACS_HEAP_EXEC"))
{
/* Set this so the personality will be reverted before execs
after this one. */
after this one, and to work around an re-exec loop on buggy
kernels (Bug#32083). */
xputenv ("EMACS_HEAP_EXEC=true");
/* Address randomization was enabled, but is now disabled.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment