From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#32083: 26.1.50; temacs bootstrap execs itself forever on alpha-unknown-linux-gnu Date: Sat, 7 Jul 2018 17:28:22 +0200 Message-ID: <23360.56342.941119.625335@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1530977227 1168 195.159.176.226 (7 Jul 2018 15:27:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 7 Jul 2018 15:27:07 +0000 (UTC) Cc: Paul Eggert , Tobias Klausmann To: 32083@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 07 17:27:03 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 1fbp70-00006X-Eh for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Jul 2018 17:27:02 +0200 Original-Received: from localhost ([::1]:33992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbp95-00064h-S8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Jul 2018 11:29:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbp8z-00064c-Mb for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 11:29:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbp8w-0002y2-B9 for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 11:29:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42366) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fbp8w-0002xk-6n for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 11:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fbp8w-00072P-0i for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Jul 2018 15:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32083 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153097732627020 (code B ref -1); Sat, 07 Jul 2018 15:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jul 2018 15:28:46 +0000 Original-Received: from localhost ([127.0.0.1]:50263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbp8f-00071j-Pm for submit@debbugs.gnu.org; Sat, 07 Jul 2018 11:28:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33527) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbp8c-00071T-D2 for submit@debbugs.gnu.org; Sat, 07 Jul 2018 11:28:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbp8V-0002nu-K9 for submit@debbugs.gnu.org; Sat, 07 Jul 2018 11:28:37 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33014) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fbp8V-0002nq-HO for submit@debbugs.gnu.org; Sat, 07 Jul 2018 11:28:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbp8U-000648-2u for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 11:28:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbp8Q-0002mL-Tc for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 11:28:34 -0400 Original-Received: from smtp.gentoo.org ([140.211.166.183]:54228) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fbp8Q-0002l2-JB for bug-gnu-emacs@gnu.org; Sat, 07 Jul 2018 11:28:30 -0400 Original-Received: from a1i15.kph.uni-mainz.de (host2092.kph.uni-mainz.de [134.93.134.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ulm) by smtp.gentoo.org (Postfix) with ESMTPSA id BD46F335C75; Sat, 7 Jul 2018 15:28:26 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:148305 Archived-At: Forwarding Gentoo bug https://bugs.gentoo.org/660448: Tobias Klausmann has reported a problem with building Emacs 26.1 on an Alpha machine under GNU/Linux: make -C ../lisp update-subdirs make[2]: Entering directory '/space/portage-tmp/portage/app-editors/emacs-26.1/work/emacs-26.1/lisp' for file in . ./calc ./calendar ./emacs-lisp ./emulation ./erc ./eshell ./gnus ./image ./international ./language ./mail ./mh-e ./net ./nxml ./obsolete ./org ./play ./progmodes ./term ./textmodes ./url ./vc; do \ ./../build-aux/update-subdirs $file; \ done; make[2]: Leaving directory '/space/portage-tmp/portage/app-editors/emacs-26.1/work/emacs-26.1/lisp' ./temacs --batch --load loadup bootstrap [Build aborted with C-c after waiting for a long time.] Seemingly temacs hangs there indefinitely, but gdb shows that it is executing itself forever: (gdb) run Starting program: /space/homedirs/ulm/emacs/src/temacs --batch --load loadup bootstrap [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". process 859 is executing new program: /space/homedirs/ulm/emacs/src/temacs [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". process 859 is executing new program: /space/homedirs/ulm/emacs/src/temacs [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". process 859 is executing new program: /space/homedirs/ulm/emacs/src/temacs ^C Program received signal SIGINT, Interrupt. 0x00000200000010f0 in ?? () from /lib/ld-linux.so.2 Setting a breakpoint in disable_address_randomization() shows the following values: pers = 0 desired_pers = 262144 personality(desired_pers) = 0 personality(0xffffffff) = 262144 So apparently, setting the persona to ADDR_NO_RANDOMIZE succeeds? However, after the execvp, the above values are the same as before again (especially pers = 0). Git bisecting shows that the problem was introduced by this commit: commit e95b023163e96538b15f030b7176b7ec59cf86f5 Author: Paul Eggert Date: Fri Jul 15 13:07:09 2016 +0200 Port to glibc 2.24 (pre-release) + ppc64 Inspired by a suggestion by Florian Weimer in: https://sourceware.org/ml/libc-alpha/2016-07/msg00425.html * configure.ac (HAVE_PERSONALITY_ADDR_NO_RANDOMIZE): Rename from HAVE_PERSONALITY_LINUX32, and check for ADDR_NO_RANDOMIZE (the crucial thing) instead of for LINUX32. All uses changed. * src/emacs.c (main) [HAVE_PERSONALITY_ADDR_NO_RANDOMIZE]: Use ADDR_NO_RANDOMIZE from personality.h rather than inventing the flag ourselves. Just set that flag, rather than also setting the persona. When doing it, avoid functions like putenv that may allocate memory. In GNU Emacs 26.1.50 (build 1, alpha-unknown-linux-gnu) of 2018-07-07 built on monolith Repository revision: b73cde5e2815c531df7f5fd13e214a7d92f78239 Configured using: 'configure --prefix=/usr --build=alpha-unknown-linux-gnu --host=alpha-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-silent-rules --docdir=/usr/share/doc/emacs-26.1 --htmldir=/usr/share/doc/emacs-26.1/html --libdir=/usr/lib --program-suffix=-emacs-26 --infodir=/usr/share/info/emacs-26 --localstatedir=/var --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --without-compress-install --without-hesiod --without-pop --with-file-notification=inotify --enable-acl --without-dbus --without-modules --without-gameuser --without-gpm --without-kerberos --without-kerberos5 --without-lcms2 --without-xml2 --without-mailutils --without-selinux --with-gnutls --without-libsystemd --with-threads --without-wide-int --with-zlib --with-sound=no --without-x --without-ns' Configured features: NOTIFY ACL GNUTLS ZLIB THREADS