GNU bug report logs - #36649
27.0.50; pure space and pdumper

Previous Next

Package: emacs;

Reported by: Pip Cet <pipcet <at> gmail.com>

Date: Sun, 14 Jul 2019 14:27:01 UTC

Severity: wishlist

Tags: patch

Found in version 27.0.50

Done: Pip Cet <pipcet <at> protonmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: rpluim <at> gmail.com, stefan <at> marxist.se, schwab <at> linux-m68k.org, monnier <at> iro.umontreal.ca, pipcet <at> gmail.com, 36649 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, akrl <at> sdf.org
Subject: bug#36649: 27.0.50; pure space and pdumper
Date: Mon, 17 May 2021 16:13:33 +0200
Paul Eggert <eggert <at> cs.ucla.edu> writes:

> If unexec is used on GNU/Linux, Emacs is supposed to switch ASLR off
> by using "setfattr -n user.pax.flags -v er temacs", and if that
> doesn't work by using the personality syscall and then re-execing
> itself (see maybe_disable_address_randomization).

Ah, thanks.  My src/Makefile had

## If needed, the names of the paxctl and setfattr programs.
## On grsecurity/PaX systems, unexec will fail due to a gap between
## the bss section and the heap.  Older versions need paxctl to work
## around this, newer ones setfattr.  See Bug#11398 and Bug#16343.
PAXCTL = 
SETFATTR = 
## Commands to set PaX flags on dumped and not-dumped instances of Emacs.
PAXCTL_dumped = 
PAXCTL_notdumped = 

because the "attr" package wasn't installed, so there was no setfattr
executable. 

(So if we want to continue supporting unexec, we should probably add
that as a configure requirement, perhaps.)

With that, Emacs now fails in a different way -- instead of segfaulting,
I get to:

make[2]: Entering directory '/home/larsi/src/emacs/xo/lisp'
  ELC      international/titdic-cnv.elc
corrupted double-linked list
Fatal error 6: Aborted
Backtrace:
../src/bootstrap-emacs[0x525571]
../src/bootstrap-emacs[0x4203b6]
../src/bootstrap-emacs[0x420889]

But as you say, debugging this is pretty much a waste of time.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 199 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.