From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#20215: 25.0.50; Support compilation as PIE Date: Sun, 21 Jun 2015 20:11:16 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134cc281a4ee705190cc3a0 X-Trace: ger.gmane.org 1434917550 32659 80.91.229.3 (21 Jun 2015 20:12:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Jun 2015 20:12:30 +0000 (UTC) Cc: 20215@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 21 22:12:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z6lbA-000222-JL for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jun 2015 22:12:12 +0200 Original-Received: from localhost ([::1]:37204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6lb9-0006vc-LJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jun 2015 16:12:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6lb5-0006tn-6f for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 16:12:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6lb1-0006oO-ST for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 16:12:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6lb1-0006oF-P1 for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 16:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z6lb1-0000op-H9 for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 16:12:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Jun 2015 20:12:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20215 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20215-submit@debbugs.gnu.org id=B20215.14349174983100 (code B ref 20215); Sun, 21 Jun 2015 20:12:03 +0000 Original-Received: (at 20215) by debbugs.gnu.org; 21 Jun 2015 20:11:38 +0000 Original-Received: from localhost ([127.0.0.1]:53633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6lab-0000nv-6J for submit@debbugs.gnu.org; Sun, 21 Jun 2015 16:11:37 -0400 Original-Received: from mail-wg0-f52.google.com ([74.125.82.52]:35477) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6laW-0000nP-KS for 20215@debbugs.gnu.org; Sun, 21 Jun 2015 16:11:33 -0400 Original-Received: by wgbhy7 with SMTP id hy7so125797619wgb.2 for <20215@debbugs.gnu.org>; Sun, 21 Jun 2015 13:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=aDDZS67AeiXdGGVLVmsFoD3b0/19tsYOiTdMLDXewTs=; b=rbIA0y8rrJKHh8O7C3EeTnIx2iGfucjtciPEfJJueX8DrDsTO074jhxW4xLPUVMdkr MgOBUisSDaVviW+PlkXeAn/m7WUI+qldRXl4s+B6Oq9UEaZYNkQV2atpUObhHhFEcKTi 1AQUJ2z8YCVL9hfwJmz/r26ApqGIco0rqtFV/i2mOG8C/r/aUog1ME9fyjfQX7vWd1b/ qsQeYjrkIgrG6pJ4+9SRDvUCVlmMCarHEe0DQR/RQHd7D7DDX+6W7PCVz2qmkf0pH48n dVJOuOVA//BjuDeFFwz9u3SfGb4EEE0vQ2Jx5/Oa4f8HfiEMvmK6Qv8DXNVUJBgqhaWa OniA== X-Received: by 10.180.231.4 with SMTP id tc4mr25844872wic.27.1434917487126; Sun, 21 Jun 2015 13:11:27 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104194 Archived-At: --001a1134cc281a4ee705190cc3a0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Stefan Monnier schrieb am Fr., 27. M=C3=A4rz 201= 5 um 23:46 Uhr: > > Currently when trying to compile as a position-independent executable, > > e.g. > > > ./configure CFLAGS=3D-fPIE LDFLAGS=3D-pie && make > > > Emacs segfaults when dumping. > > I have no idea why it would crash during the dumping process, but > I wouldn't be surprised if after a successful dump of `temacs', the > resulting `emacs' crashes early on, since the dump will be writing > a heap which will probably contain pointers back into the code. > > > I haven't investigated why it crashes in detail, but since the dumper prevents ASLR and PIE (and doesn't work on platforms such as Chromium), I think it should be replaced by a portable dumper. --001a1134cc281a4ee705190cc3a0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Stefan= Monnier <monnier@iro.umontr= eal.ca> schrieb am Fr., 27. M=C3=A4rz 2015 um 23:46=C2=A0Uhr:
> Currently when trying to compile as = a position-independent executable,
> e.g.

> ./configure CFLAGS=3D-fPIE LDFLAGS=3D-pie && make

> Emacs segfaults when dumping.

I have no idea why it would crash during the dumping process, but
I wouldn't be surprised if after a successful dump of `temacs', the=
resulting `emacs' crashes early on, since the dump will be writing
a heap which will probably contain pointers back into the code.



I haven't investigated why it = crashes in detail, but since the dumper prevents ASLR and PIE (and doesn= 9;t work on platforms such as Chromium), I think it should be replaced by a= portable dumper.=C2=A0
--001a1134cc281a4ee705190cc3a0--