GNU bug report logs - #18780
24.4; configure script should disable PIE on all platforms

Previous Next

Package: emacs;

Reported by: Adam Sampson <ats <at> offog.org>

Date: Mon, 20 Oct 2014 22:48:01 UTC

Severity: normal

Tags: fixed

Merged with 13847, 18784

Found in versions 24.4, 25.0.50

Fixed in version 25.1

Done: Ulrich Mueller <ulm <at> gentoo.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18780 in the body.
You can then email your comments to 18780 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#18780; Package emacs. (Mon, 20 Oct 2014 22:48:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Adam Sampson <ats <at> offog.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 20 Oct 2014 22:48:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Adam Sampson <ats <at> offog.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4; configure script should disable PIE on all platforms
Date: Mon, 20 Oct 2014 23:41:37 +0100
Dear Emacs maintainers,

In the configure script for Emacs 24.4, position-independent executable
support is currently explicitly disabled for temacs on Darwin and
OpenBSD by adding options (-fno-pie, -nopie) to LD_SWITCH_SYSTEM_TEMACS.

However, it's possible to have GCC configured to use PIE by default on
other platforms -- for example, Debian, Ubuntu and Gentoo provide
"hardened" GCC configurations. If you try to build Emacs with a
PIE-ified GCC, temacs will segfault; you need to explicitly pass the
no-pie options to configure.

I ran into this on my GARstow system, but here's an example of a Gentoo
user being tripped up by the same thing:
  https://bugs.gentoo.org/494316

Would it be possible for the configure script to add the -fno-pie/-nopie
options by default to LD_SWITCH_SYSTEM_TEMACS, if they're accepted by
the toolchain? That way you could build Emacs with a PIE-ified GCC
without special treatment, and you wouldn't need the special cases for
Darwin and OpenBSD.

Thanks,
Adam

In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.25)
 of 2014-10-20 on gar-amd64
Windowing system distributor `The X.Org Foundation', version 11.0.11600000
Configured using:
 `configure --prefix=/gar --sysconfdir=/etc --localstatedir=/var
 --sharedstatedir=/var/com --with-x-toolkit=gtk2 --without-gconf
 --with-gameuser=_garstow_no_such_user CFLAGS= CPPFLAGS= LDFLAGS='

Important settings:
  value of $LC_COLLATE: C
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  shell-dirtrack-mode: t
  display-time-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  global-visual-line-mode: t
  visual-line-mode: t
  transient-mark-mode: t

Recent input:
C-x 1 M-x r e p o r t - e m <tab> <return>

Recent messages:
Loading tex-mode...done
Loading sendmail...done
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
/home/ats/.Emacs/snake hides /gar/share/emacs/24.4/lisp/play/snake
/gar/share/emacs/site-lisp/timeclock hides /gar/share/emacs/24.4/lisp/calendar/timeclock

Features:
(shadow sort gnus-util mail-extr emacsbug message idna format-spec
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader org-install warnings server sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils
cus-edit easymenu wid-edit cl-loaddefs cl-lib tex-mode compile shell
pcomplete comint ansi-color ring cus-start cus-load time time-date
tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp
files text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 103533 26209)
 (symbols 48 20482 1)
 (miscs 40 35 126)
 (strings 32 17390 21949)
 (string-bytes 1 497465)
 (vectors 16 11430)
 (vector-slots 8 404627 21346)
 (floats 8 74 57)
 (intervals 56 185 50)
 (buffers 960 13)
 (heap 1024 14884 3581))

-- 
Adam Sampson <ats <at> offog.org>                         <http://offog.org/>




Added indication that bug 18780 blocks19759 Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 17 Feb 2015 19:12:01 GMT) Full text and rfc822 format available.

Merged 18780 18784. Request was from Ulrich Mueller <ulm <at> gentoo.org> to control <at> debbugs.gnu.org. (Fri, 13 Mar 2015 21:17:02 GMT) Full text and rfc822 format available.

Forcibly Merged 18780 18784. Request was from Stefan Monnier <monnier <at> iro.umontreal.ca> to control <at> debbugs.gnu.org. (Fri, 13 Mar 2015 23:26:02 GMT) Full text and rfc822 format available.

Merged 13847 18780 18784. Request was from Ulrich Mueller <ulm <at> gentoo.org> to control <at> debbugs.gnu.org. (Mon, 16 Mar 2015 20:14:01 GMT) Full text and rfc822 format available.

Merged 13847 18780 18784 20215. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 27 Mar 2015 21:57:02 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Ulrich Mueller <ulm <at> gentoo.org> to control <at> debbugs.gnu.org. (Fri, 03 Apr 2015 11:58:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 25.1, send any further explanations to 18784 <at> debbugs.gnu.org and Gangræna Gorgeous <trupanka <at> gmail.com> Request was from Ulrich Mueller <ulm <at> gentoo.org> to control <at> debbugs.gnu.org. (Fri, 03 Apr 2015 11:58:03 GMT) Full text and rfc822 format available.

Disconnected #20215 from all other report(s). Request was from Philipp Stephani <p.stephani2 <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 13 Apr 2015 21:04:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 12 May 2015 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 346 days ago.

Previous Next


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