From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Thomas Fitzsimmons Newsgroups: gmane.emacs.bugs Subject: bug#33174: 27.0.50; Dump fails on GNU/Linux ppc64le Date: Sat, 27 Oct 2018 09:16:17 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1540645806 2478 195.159.176.226 (27 Oct 2018 13:10:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 27 Oct 2018 13:10:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Paul Eggert To: 33174@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 27 15:10:01 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGOLp-0000X9-E0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2018 15:10:01 +0200 Original-Received: from localhost ([::1]:36561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGONv-00022q-U3 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2018 09:12:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGONp-00022a-Bp for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 09:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGONm-0005pw-N0 for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 09:12:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40455) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gGONm-0005pi-H6 for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 09:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gGONm-0004Uc-5e for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 09:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thomas Fitzsimmons Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Oct 2018 13:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33174 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33174-submit@debbugs.gnu.org id=B33174.154064587917216 (code B ref 33174); Sat, 27 Oct 2018 13:12:02 +0000 Original-Received: (at 33174) by debbugs.gnu.org; 27 Oct 2018 13:11:19 +0000 Original-Received: from localhost ([127.0.0.1]:44713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGON4-0004Tc-Vd for submit@debbugs.gnu.org; Sat, 27 Oct 2018 09:11:19 -0400 Original-Received: from mail-it1-f196.google.com ([209.85.166.196]:37622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGON3-0004TQ-LJ for 33174@debbugs.gnu.org; Sat, 27 Oct 2018 09:11:18 -0400 Original-Received: by mail-it1-f196.google.com with SMTP id e74-v6so4809732ita.2 for <33174@debbugs.gnu.org>; Sat, 27 Oct 2018 06:11:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fitzsim-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Y8FH3wV0VKFJ+HbTmva199fOpRU8qakRaDPz43N/8Bs=; b=JQg4raKPBtJ/WBNclGQBQaJ18aBSdqurouABYBBFHYWs+8YyNBQ+oaNdx8e4sQfYPd YDzchO/IadFFWZvdbhNxAZ6rAjbkZvIJW402+KeMVEt7rQawOhq8Z7fxZ8ll4Kil65Wm 6YPY/yuKbdvRYwAot7AKGE2/OKHTbMQC+7RwNNOb3wiB9i+ck0la40MRv4wW7l5xx3tV MtKOXqhKWMsuVgZ3UgGhZ7t+/Cij+rx6LyMulGDn+Ckbt6cdnDYPNaK7CBMaFtp7yvS9 eSj1dKcOiOlsp2fWPclaoKdZuzxYx+ZgIPJ2VVPSUFcJulPX2y/q6wUIHaQ1u19bLIpg velQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Y8FH3wV0VKFJ+HbTmva199fOpRU8qakRaDPz43N/8Bs=; b=QVrjOH/pVCjwLOyPumEPj+0HAAmpQbD5dOGZ6UkDajJz34KYV4AOoGgMGzjVnk3m0P I9dV6knboOYAPvElgCtzNnJmJzCd3jK7HmFlQNRnwEaKFZrDf1vZnV4n5cFm85BKOZ92 NPppye+8MWgoOxmslZnkXk3eCnI4JF8MzLdEf2c+9IcWvxHfhpoI83RIZrl9dgxgBQCX Kvn5kpeD2UWdMBSxwJkvwkOE9TQ3zptWmezOzwv7eUP5csApGUeuLkK16mjS8o2Rka9z /9SzcO/Sf+usjsQ3FXdJ8Redk4lwtOIa3fjBjsJhYs6SKrhCQ9SjPa9ebJpnhbkxJzcL YTyQ== X-Gm-Message-State: AGRZ1gI5gtMx04d0zN+LEsOlqclAPlXcFZiYdr9B/feBdHkmuckgmt3q MyI/jIxfMIeY4rITkWI4YjAQQKgnRK7ZGw== X-Google-Smtp-Source: AJdET5dFLGQgBjogzTbOcGXZqjWfqcMAp3CtBlzq340yM4JXokY4LF3i1nJP4bDyxuxF48vRr7sWjw== X-Received: by 2002:a24:2b0a:: with SMTP id h10-v6mr5780110ita.73.1540645872143; Sat, 27 Oct 2018 06:11:12 -0700 (PDT) Original-Received: from localhost.localdomain (69-165-165-189.dsl.teksavvy.com. [69.165.165.189]) by smtp.gmail.com with ESMTPSA id r2-v6sm3583131ita.28.2018.10.27.06.11.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Oct 2018 06:11:11 -0700 (PDT) In-Reply-To: (Thomas Fitzsimmons's message of "Sat, 27 Oct 2018 06:35:17 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:151675 Archived-At: Thomas Fitzsimmons writes: > Hi Paul, > > On ppc64le Debian GNU/Linux 9, I'm seeing a bootstrap failure on the > master and emacs-26 branches that I didn't see the last time I built > Emacs: > > [...] > Dumping under the name emacs > ************************************************** > Warning: Your system has a gap between BSS and the > heap (424960392 bytes). This usually means that exec-shield > or something similar is in effect. The dump may > fail because of this. See the section about > exec-shield in etc/PROBLEMS for more information. > ************************************************** > 22496304 of 33554432 static heap bytes used > Makefile:749: recipe for target 'bootstrap-emacs' failed > make[1]: *** [bootstrap-emacs] Segmentation fault > make[1]: Leaving directory '/home/fitzsim/sources/emacs/src' > Makefile:421: recipe for target 'src' failed > make: *** [src] Error 2 > > I bisected the failure to: > > commit 65889a6d127fcbbbdc1e74d26036e91bd24d1405 > Author: Paul Eggert > Date: Sun Jul 8 09:04:02 2018 -0700 > > Fix bootstrap infloop in GNU/Linux alpha > > * src/emacs.c (main): Do not re-exec if EMACS_HEAP_EXEC > is already set (Bug#32083). > > If I revert that commit's patch, the build succeeds. It looks like this segmentation fault is influenced by the setting in /proc/sys/kernel/randomize_va_space. Running by hand in src (with the patch in question applied): ./temacs --batch --load loadup bootstrap - if randomize_va_space contains 2, bootstrap fails: segfaults: Dumping under the name emacs ************************************************** Warning: Your system has a gap between BSS and the heap (752378248 bytes). This usually means that exec-shield or something similar is in effect. The dump may fail because of this. See the section about exec-shield in etc/PROBLEMS for more information. ************************************************** 22496304 of 33554432 static heap bytes used Segmentation fault - if randomize_va_space contains 1 or 0, bootstrap succeeds: Loading /home/fitzsim/sources/emacs/lisp/tooltip.el (source)... Finding pointers to doc strings... Finding pointers to doc strings...done Dumping under the name emacs 22496304 of 33554432 static heap bytes used 99079 pure bytes used Thomas