From unknown Wed Aug 20 05:43:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24033: Porting emacs-25 to GNU/Linux ppc64 with draft glibc 2.24 Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jul 2016 08:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24033 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 24033@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.146900177927949 (code B ref -1); Wed, 20 Jul 2016 08:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Jul 2016 08:02:59 +0000 Received: from localhost ([127.0.0.1]:57895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPmT4-0007Gj-Ir for submit@debbugs.gnu.org; Wed, 20 Jul 2016 04:02:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPmT2-0007GT-2y for submit@debbugs.gnu.org; Wed, 20 Jul 2016 04:02:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPmSv-0005ok-Gt for submit@debbugs.gnu.org; Wed, 20 Jul 2016 04:02:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPmSv-0005oa-Db for submit@debbugs.gnu.org; Wed, 20 Jul 2016 04:02:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPmSs-0004Z7-M2 for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2016 04:02:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPmSo-0005nS-Bg for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2016 04:02:45 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:46988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPmSo-0005mu-3N for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2016 04:02:42 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6B237161146 for ; Wed, 20 Jul 2016 01:02:38 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id y3Ey7OO8DW1l for ; Wed, 20 Jul 2016 01:02:36 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1633C16114A for ; Wed, 20 Jul 2016 01:02:36 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id nHXKyYqaeUsN for ; Wed, 20 Jul 2016 01:02:35 -0700 (PDT) Received: from [192.168.1.52] (AMontpellier-656-1-464-192.w92-145.abo.wanadoo.fr [92.145.248.192]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 5B8AF161146 for ; Wed, 20 Jul 2016 01:02:35 -0700 (PDT) From: Paul Eggert Message-ID: Date: Wed, 20 Jul 2016 10:02:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------43EA9CCB94F389846EC5B491" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) This is a multi-part message in MIME format. --------------43EA9CCB94F389846EC5B491 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Tags: patch I'd like to backport the attached patch from master to emacs-25. The idea is that Emacs 25 should work with glibc 2.24 (which is still in draft form). glibc is withdrawing support for some deprecated symbols like malloc_set_state and __malloc_initialize_hook. Emacs is intended to be portable to systems lacking these symbols, but this apparently does not work on ppc64 and ppc64le platforms. As noted in , the attached patch has been tested on emacs-25 and works on the affected platforms. I've also tested it on unaffected platforms such as x86 and x86-64. This issue may be a release blocker for glibc 2.24 (this still hasn't been decided). I'd rather that Emacs didn't get in the way of the malloc performance improvements intended for glibc 2.24, and installing this patch into emacs-25 should help with that. --------------43EA9CCB94F389846EC5B491 Content-Type: text/x-patch; name="0001-Port-to-glibc-2.24-pre-release-ppc64.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Port-to-glibc-2.24-pre-release-ppc64.patch" >From 418fa48309e1886fe5e611fa07acf193f5e3f7f9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 19 Jul 2016 15:23:14 +0200 Subject: [PATCH] Port to glibc 2.24 (pre-release) + ppc64 Backport from master. 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. Do all this earlier, so as to avoid problems with calls to brk in the interim. When doing it, avoid functions like putenv that may allocate memory. Special case for __PPC64__, which needs ASLR disabled in dumped Emacs too. --- admin/CPP-DEFINES | 2 +- configure.ac | 20 +++++++++++--------- src/emacs.c | 53 ++++++++++++++++++++++++++++++----------------------- 3 files changed, 42 insertions(+), 33 deletions(-) diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES index 796b57d..d404dee 100644 --- a/admin/CPP-DEFINES +++ b/admin/CPP-DEFINES @@ -237,7 +237,7 @@ HAVE_NET_IF_DL_H HAVE_NET_IF_H HAVE_NLIST_H HAVE_OTF_GET_VARIATION_GLYPHS -HAVE_PERSONALITY_LINUX32 +HAVE_PERSONALITY_ADDR_NO_RANDOMIZE HAVE_PNG HAVE_PNG_H HAVE_POSIX_MEMALIGN diff --git a/configure.ac b/configure.ac index 678e98e..9da23d1 100644 --- a/configure.ac +++ b/configure.ac @@ -1615,15 +1615,17 @@ AC_CHECK_HEADERS_ONCE( sys/resource.h sys/utsname.h pwd.h utmp.h util.h) -AC_MSG_CHECKING(if personality LINUX32 can be set) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[personality (PER_LINUX32)]])], - emacs_cv_personality_linux32=yes, - emacs_cv_personality_linux32=no) -AC_MSG_RESULT($emacs_cv_personality_linux32) - -if test $emacs_cv_personality_linux32 = yes; then - AC_DEFINE(HAVE_PERSONALITY_LINUX32, 1, - [Define to 1 if personality LINUX32 can be set.]) +AC_CACHE_CHECK([if personality ADDR_NO_RANDOMIZE flag exists], + [emacs_cv_personality_addr_no_randomize], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[#include ]], + [[personality (personality (0xffffffff) + | ADDR_NO_RANDOMIZE)]])], + [emacs_cv_personality_addr_no_randomize=yes], + [emacs_cv_personality_addr_no_randomize=no])]) +if test $emacs_cv_personality_addr_no_randomize = yes; then + AC_DEFINE([HAVE_PERSONALITY_ADDR_NO_RANDOMIZE], [1], + [Define to 1 if personality flag ADDR_NO_RANDOMIZE exists.]) fi # Note that Solaris has sys/sysinfo.h which defines struct diff --git a/src/emacs.c b/src/emacs.c index 5c187e7..b0e5a05 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -106,7 +106,7 @@ extern void moncontrol (int mode); #include #endif -#ifdef HAVE_PERSONALITY_LINUX32 +#ifdef HAVE_PERSONALITY_ADDR_NO_RANDOMIZE #include #endif @@ -674,6 +674,35 @@ main (int argc, char **argv) stack_base = &dummy; + dumping = !initialized && (strcmp (argv[argc - 1], "dump") == 0 + || strcmp (argv[argc - 1], "bootstrap") == 0); + +#ifdef HAVE_PERSONALITY_ADDR_NO_RANDOMIZE + + /* True if address randomization interferes with memory allocaiton. */ +# ifdef __PPC64__ + bool disable_aslr = true; +# else + bool disable_aslr = dumping; +# endif + + if (disable_aslr) + { + int pers = personality (0xffffffff); + if (! (pers & ADDR_NO_RANDOMIZE) + && 0 <= personality (pers | ADDR_NO_RANDOMIZE)) + { + /* Address randomization was enabled, but is now disabled. + Re-execute Emacs to get a clean slate. */ + execvp (argv[0], argv); + + /* If the exec fails, warn the user and then try without a + clean slate. */ + fprintf (stderr, "%s: %s\n", argv[0], strerror (errno)); + } + } +#endif + #ifndef CANNOT_DUMP might_dump = !initialized; #endif @@ -781,28 +810,6 @@ main (int argc, char **argv) } } - dumping = !initialized && (strcmp (argv[argc - 1], "dump") == 0 - || strcmp (argv[argc - 1], "bootstrap") == 0); - -#ifdef HAVE_PERSONALITY_LINUX32 - if (dumping && ! getenv ("EMACS_HEAP_EXEC")) - { - /* Set this so we only do this once. */ - xputenv ("EMACS_HEAP_EXEC=true"); - - /* A flag to turn off address randomization which is introduced - in linux kernel shipped with fedora core 4 */ -#define ADD_NO_RANDOMIZE 0x0040000 - personality (PER_LINUX32 | ADD_NO_RANDOMIZE); -#undef ADD_NO_RANDOMIZE - - execvp (argv[0], argv); - - /* If the exec fails, try to dump anyway. */ - emacs_perror (argv[0]); - } -#endif /* HAVE_PERSONALITY_LINUX32 */ - #if defined (HAVE_SETRLIMIT) && defined (RLIMIT_STACK) && !defined (CYGWIN) /* Extend the stack space available. Don't do that if dumping, since some systems (e.g. DJGPP) might define a smaller stack -- 2.5.5 --------------43EA9CCB94F389846EC5B491-- From unknown Wed Aug 20 05:43:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24033: Porting emacs-25 to GNU/Linux ppc64 with draft glibc 2.24 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jul 2016 15:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24033 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Paul Eggert Cc: 24033@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 24033-submit@debbugs.gnu.org id=B24033.14690267807602 (code B ref 24033); Wed, 20 Jul 2016 15:00:02 +0000 Received: (at 24033) by debbugs.gnu.org; 20 Jul 2016 14:59:40 +0000 Received: from localhost ([127.0.0.1]:58755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPsyH-0001yS-4i for submit@debbugs.gnu.org; Wed, 20 Jul 2016 10:59:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPsyC-0001yE-Vk for 24033@debbugs.gnu.org; Wed, 20 Jul 2016 10:59:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPsy4-00017e-Nj for 24033@debbugs.gnu.org; Wed, 20 Jul 2016 10:59:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPsy4-00017A-KV; Wed, 20 Jul 2016 10:59:24 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4247 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bPsy2-0005eo-MB; Wed, 20 Jul 2016 10:59:23 -0400 Date: Wed, 20 Jul 2016 17:59:27 +0300 Message-Id: <83poq8z774.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Paul Eggert on Wed, 20 Jul 2016 10:02:32 +0200) References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) > From: Paul Eggert > Date: Wed, 20 Jul 2016 10:02:32 +0200 > > I'd like to backport the attached patch from master to emacs-25. The > idea is that Emacs 25 should work with glibc 2.24 (which is still in > draft form). glibc is withdrawing support for some deprecated symbols > like malloc_set_state and __malloc_initialize_hook. Emacs is intended to > be portable to systems lacking these symbols, but this apparently does > not work on ppc64 and ppc64le platforms. As noted in > , the > attached patch has been tested on emacs-25 and works on the affected > platforms. I've also tested it on unaffected platforms such as x86 and > x86-64. Would it be possible to tweak the patch so that it doesn't change the code on platforms other than PPC64? Maybe I misunderstand, but it looks like some changes are also being done in the non-PPC64 branches of the patch, and I'd like to avoid that if possible. (It's okay to move the code around and change it syntactically, as long as the semantics is intact for non-PPC64 platforms.) Thanks. From unknown Wed Aug 20 05:43:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24033: Porting emacs-25 to GNU/Linux ppc64 with draft glibc 2.24 Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jul 2016 17:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24033 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 24033@debbugs.gnu.org Received: via spool by 24033-submit@debbugs.gnu.org id=B24033.146903459820159 (code B ref 24033); Wed, 20 Jul 2016 17:10:01 +0000 Received: (at 24033) by debbugs.gnu.org; 20 Jul 2016 17:09:58 +0000 Received: from localhost ([127.0.0.1]:58869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPv0P-0005F3-VF for submit@debbugs.gnu.org; Wed, 20 Jul 2016 13:09:58 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPv0O-0005El-Rt for 24033@debbugs.gnu.org; Wed, 20 Jul 2016 13:09:57 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 00D1416117E; Wed, 20 Jul 2016 10:09:50 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id EfhfGYejqRfp; Wed, 20 Jul 2016 10:09:50 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id F3337161177; Wed, 20 Jul 2016 10:09:49 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id hiccnxsx9VDr; Wed, 20 Jul 2016 10:09:49 -0700 (PDT) Received: from [192.168.1.52] (AMontpellier-656-1-291-239.w90-0.abo.wanadoo.fr [90.0.119.239]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 9971F161127; Wed, 20 Jul 2016 10:09:48 -0700 (PDT) References: <83poq8z774.fsf@gnu.org> From: Paul Eggert Message-ID: <1424f04d-88b6-b760-8da0-afa30c082eb2@cs.ucla.edu> Date: Wed, 20 Jul 2016 19:09:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <83poq8z774.fsf@gnu.org> Content-Type: multipart/mixed; boundary="------------C37D21A683199D290D3CB726" X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) This is a multi-part message in MIME format. --------------C37D21A683199D290D3CB726 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 07/20/2016 04:59 PM, Eli Zaretskii wrote: > > Would it be possible to tweak the patch so that it doesn't change the > code on platforms other than PPC64? Sure, something like the attached patch perhaps? If so, I can ask my PPC64 correspondent to try it. --------------C37D21A683199D290D3CB726 Content-Type: text/x-patch; name="0001-Port-to-glibc-2.24-pre-release-ppc64.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Port-to-glibc-2.24-pre-release-ppc64.patch" >From 37bc57cf803f2ab0b7a7844730ebc17eb43e942d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 19 Jul 2016 15:23:14 +0200 Subject: [PATCH] Port to glibc 2.24 (pre-release) + ppc64 Backport from master (Bug#24033). Inspired by a suggestion by Florian Weimer in: https://sourceware.org/ml/libc-alpha/2016-07/msg00425.html * src/emacs.c (main) [__PPC64__]: Special case for __PPC64__, which needs ASLR disabled in dumped Emacs too. --- src/emacs.c | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/emacs.c b/src/emacs.c index 5c187e7..2480dfc 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -674,6 +674,26 @@ main (int argc, char **argv) stack_base = &dummy; +#if defined HAVE_PERSONALITY_LINUX32 && defined __PPC64__ + /* This code partly duplicates the HAVE_PERSONALITY_LINUX32 code + below. This duplication is planned to be fixed in a later + Emacs release. */ +# define ADD_NO_RANDOMIZE 0x0040000 + int pers = personality (0xffffffff); + if (! (pers & ADD_NO_RANDOMIZE) + && 0 <= personality (pers | ADD_NO_RANDOMIZE)) + { + /* Address randomization was enabled, but is now disabled. + Re-execute Emacs to get a clean slate. */ + execvp (argv[0], argv); + + /* If the exec fails, warn the user and then try without a + clean slate. */ + perror (argv[0]); + } +# undef ADD_NO_RANDOMIZE +#endif + #ifndef CANNOT_DUMP might_dump = !initialized; #endif @@ -784,7 +804,7 @@ main (int argc, char **argv) dumping = !initialized && (strcmp (argv[argc - 1], "dump") == 0 || strcmp (argv[argc - 1], "bootstrap") == 0); -#ifdef HAVE_PERSONALITY_LINUX32 +#if defined HAVE_PERSONALITY_LINUX32 && !defined __PPC64__ if (dumping && ! getenv ("EMACS_HEAP_EXEC")) { /* Set this so we only do this once. */ @@ -801,7 +821,7 @@ main (int argc, char **argv) /* If the exec fails, try to dump anyway. */ emacs_perror (argv[0]); } -#endif /* HAVE_PERSONALITY_LINUX32 */ +#endif #if defined (HAVE_SETRLIMIT) && defined (RLIMIT_STACK) && !defined (CYGWIN) /* Extend the stack space available. Don't do that if dumping, -- 2.5.5 --------------C37D21A683199D290D3CB726-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 20 14:38:24 2016 Received: (at control) by debbugs.gnu.org; 20 Jul 2016 18:38:24 +0000 Received: from localhost ([127.0.0.1]:58917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPwO0-0000iw-5e for submit@debbugs.gnu.org; Wed, 20 Jul 2016 14:38:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPwNy-0000ik-Nw for control@debbugs.gnu.org; Wed, 20 Jul 2016 14:38:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPwNs-0002xR-TG for control@debbugs.gnu.org; Wed, 20 Jul 2016 14:38:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPwNs-0002xH-QY for control@debbugs.gnu.org; Wed, 20 Jul 2016 14:38:16 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1bPwNr-0000Zc-Br for control@debbugs.gnu.org; Wed, 20 Jul 2016 14:38:15 -0400 Subject: control message for bug 23760 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 20 Jul 2016 14:38:15 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) forcemerge 24033 23760 From unknown Wed Aug 20 05:43:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24033: Porting emacs-25 to GNU/Linux ppc64 with draft glibc 2.24 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jul 2016 18:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24033 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Paul Eggert Cc: 24033@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 24033-submit@debbugs.gnu.org id=B24033.146904073910332 (code B ref 24033); Wed, 20 Jul 2016 18:53:02 +0000 Received: (at 24033) by debbugs.gnu.org; 20 Jul 2016 18:52:19 +0000 Received: from localhost ([127.0.0.1]:58924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPwbT-0002ga-ES for submit@debbugs.gnu.org; Wed, 20 Jul 2016 14:52:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42581) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPwbR-0002gL-O3 for 24033@debbugs.gnu.org; Wed, 20 Jul 2016 14:52:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPwbI-0007er-5X for 24033@debbugs.gnu.org; Wed, 20 Jul 2016 14:52:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPwbI-0007eZ-2g; Wed, 20 Jul 2016 14:52:08 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4436 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bPwbF-0001cQ-Fo; Wed, 20 Jul 2016 14:52:06 -0400 Date: Wed, 20 Jul 2016 21:52:04 +0300 Message-Id: <83k2ggywff.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <1424f04d-88b6-b760-8da0-afa30c082eb2@cs.ucla.edu> (message from Paul Eggert on Wed, 20 Jul 2016 19:09:40 +0200) References: <83poq8z774.fsf@gnu.org> <1424f04d-88b6-b760-8da0-afa30c082eb2@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) > Cc: 24033@debbugs.gnu.org > From: Paul Eggert > Date: Wed, 20 Jul 2016 19:09:40 +0200 > > On 07/20/2016 04:59 PM, Eli Zaretskii wrote: > > > > Would it be possible to tweak the patch so that it doesn't change the > > code on platforms other than PPC64? > > Sure, something like the attached patch perhaps? If so, I can ask my > PPC64 correspondent to try it. Thanks, this looks good to me for emacs-25. From unknown Wed Aug 20 05:43:18 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Paul Eggert Subject: bug#24033: closed (Re: bug#24033: Porting emacs-25 to GNU/Linux ppc64 with draft glibc 2.24) Message-ID: References: <0d10e500-bac0-c47b-b320-8a03bbc418f1@cs.ucla.edu> X-Gnu-PR-Message: they-closed 24033 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 24033@debbugs.gnu.org Date: Thu, 21 Jul 2016 11:31:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1469100662-13035-1" This is a multi-part message in MIME format... ------------=_1469100662-13035-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #24033: Porting emacs-25 to GNU/Linux ppc64 with draft glibc 2.24 which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 24033@debbugs.gnu.org. --=20 24033: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D24033 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1469100662-13035-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 24033-done) by debbugs.gnu.org; 21 Jul 2016 11:30:44 +0000 Received: from localhost ([127.0.0.1]:59319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQCBf-00038W-Tn for submit@debbugs.gnu.org; Thu, 21 Jul 2016 07:30:44 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:48891) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQCBd-00031G-SS for 24033-done@debbugs.gnu.org; Thu, 21 Jul 2016 07:30:42 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0C359161197; Thu, 21 Jul 2016 04:30:35 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id YzfYNk_y02OM; Thu, 21 Jul 2016 04:30:34 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id ED8E61611DB; Thu, 21 Jul 2016 04:30:33 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sWApUAZeCQKo; Thu, 21 Jul 2016 04:30:33 -0700 (PDT) Received: from [192.168.1.52] (AMontpellier-656-1-328-122.w90-28.abo.wanadoo.fr [90.28.96.122]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id CB79F161197; Thu, 21 Jul 2016 04:30:25 -0700 (PDT) Subject: Re: bug#24033: Porting emacs-25 to GNU/Linux ppc64 with draft glibc 2.24 To: Eli Zaretskii References: <83poq8z774.fsf@gnu.org> <1424f04d-88b6-b760-8da0-afa30c082eb2@cs.ucla.edu> <83k2ggywff.fsf@gnu.org> From: Paul Eggert Message-ID: <0d10e500-bac0-c47b-b320-8a03bbc418f1@cs.ucla.edu> Date: Thu, 21 Jul 2016 13:30:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <83k2ggywff.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 24033-done Cc: 24033-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) On 07/20/2016 08:52 PM, Eli Zaretskii wrote: > Thanks, this looks good to me for emacs-25. OK, I installed it and am closing this bug report. ------------=_1469100662-13035-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 20 Jul 2016 08:02:59 +0000 Received: from localhost ([127.0.0.1]:57895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPmT4-0007Gj-Ir for submit@debbugs.gnu.org; Wed, 20 Jul 2016 04:02:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPmT2-0007GT-2y for submit@debbugs.gnu.org; Wed, 20 Jul 2016 04:02:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPmSv-0005ok-Gt for submit@debbugs.gnu.org; Wed, 20 Jul 2016 04:02:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPmSv-0005oa-Db for submit@debbugs.gnu.org; Wed, 20 Jul 2016 04:02:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPmSs-0004Z7-M2 for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2016 04:02:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPmSo-0005nS-Bg for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2016 04:02:45 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:46988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPmSo-0005mu-3N for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2016 04:02:42 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6B237161146 for ; Wed, 20 Jul 2016 01:02:38 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id y3Ey7OO8DW1l for ; Wed, 20 Jul 2016 01:02:36 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1633C16114A for ; Wed, 20 Jul 2016 01:02:36 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id nHXKyYqaeUsN for ; Wed, 20 Jul 2016 01:02:35 -0700 (PDT) Received: from [192.168.1.52] (AMontpellier-656-1-464-192.w92-145.abo.wanadoo.fr [92.145.248.192]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 5B8AF161146 for ; Wed, 20 Jul 2016 01:02:35 -0700 (PDT) To: bug-gnu-emacs@gnu.org From: Paul Eggert Subject: Porting emacs-25 to GNU/Linux ppc64 with draft glibc 2.24 Message-ID: Date: Wed, 20 Jul 2016 10:02:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------43EA9CCB94F389846EC5B491" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) This is a multi-part message in MIME format. --------------43EA9CCB94F389846EC5B491 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Tags: patch I'd like to backport the attached patch from master to emacs-25. The idea is that Emacs 25 should work with glibc 2.24 (which is still in draft form). glibc is withdrawing support for some deprecated symbols like malloc_set_state and __malloc_initialize_hook. Emacs is intended to be portable to systems lacking these symbols, but this apparently does not work on ppc64 and ppc64le platforms. As noted in , the attached patch has been tested on emacs-25 and works on the affected platforms. I've also tested it on unaffected platforms such as x86 and x86-64. This issue may be a release blocker for glibc 2.24 (this still hasn't been decided). I'd rather that Emacs didn't get in the way of the malloc performance improvements intended for glibc 2.24, and installing this patch into emacs-25 should help with that. --------------43EA9CCB94F389846EC5B491 Content-Type: text/x-patch; name="0001-Port-to-glibc-2.24-pre-release-ppc64.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Port-to-glibc-2.24-pre-release-ppc64.patch" >From 418fa48309e1886fe5e611fa07acf193f5e3f7f9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 19 Jul 2016 15:23:14 +0200 Subject: [PATCH] Port to glibc 2.24 (pre-release) + ppc64 Backport from master. 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. Do all this earlier, so as to avoid problems with calls to brk in the interim. When doing it, avoid functions like putenv that may allocate memory. Special case for __PPC64__, which needs ASLR disabled in dumped Emacs too. --- admin/CPP-DEFINES | 2 +- configure.ac | 20 +++++++++++--------- src/emacs.c | 53 ++++++++++++++++++++++++++++++----------------------- 3 files changed, 42 insertions(+), 33 deletions(-) diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES index 796b57d..d404dee 100644 --- a/admin/CPP-DEFINES +++ b/admin/CPP-DEFINES @@ -237,7 +237,7 @@ HAVE_NET_IF_DL_H HAVE_NET_IF_H HAVE_NLIST_H HAVE_OTF_GET_VARIATION_GLYPHS -HAVE_PERSONALITY_LINUX32 +HAVE_PERSONALITY_ADDR_NO_RANDOMIZE HAVE_PNG HAVE_PNG_H HAVE_POSIX_MEMALIGN diff --git a/configure.ac b/configure.ac index 678e98e..9da23d1 100644 --- a/configure.ac +++ b/configure.ac @@ -1615,15 +1615,17 @@ AC_CHECK_HEADERS_ONCE( sys/resource.h sys/utsname.h pwd.h utmp.h util.h) -AC_MSG_CHECKING(if personality LINUX32 can be set) -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[personality (PER_LINUX32)]])], - emacs_cv_personality_linux32=yes, - emacs_cv_personality_linux32=no) -AC_MSG_RESULT($emacs_cv_personality_linux32) - -if test $emacs_cv_personality_linux32 = yes; then - AC_DEFINE(HAVE_PERSONALITY_LINUX32, 1, - [Define to 1 if personality LINUX32 can be set.]) +AC_CACHE_CHECK([if personality ADDR_NO_RANDOMIZE flag exists], + [emacs_cv_personality_addr_no_randomize], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[#include ]], + [[personality (personality (0xffffffff) + | ADDR_NO_RANDOMIZE)]])], + [emacs_cv_personality_addr_no_randomize=yes], + [emacs_cv_personality_addr_no_randomize=no])]) +if test $emacs_cv_personality_addr_no_randomize = yes; then + AC_DEFINE([HAVE_PERSONALITY_ADDR_NO_RANDOMIZE], [1], + [Define to 1 if personality flag ADDR_NO_RANDOMIZE exists.]) fi # Note that Solaris has sys/sysinfo.h which defines struct diff --git a/src/emacs.c b/src/emacs.c index 5c187e7..b0e5a05 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -106,7 +106,7 @@ extern void moncontrol (int mode); #include #endif -#ifdef HAVE_PERSONALITY_LINUX32 +#ifdef HAVE_PERSONALITY_ADDR_NO_RANDOMIZE #include #endif @@ -674,6 +674,35 @@ main (int argc, char **argv) stack_base = &dummy; + dumping = !initialized && (strcmp (argv[argc - 1], "dump") == 0 + || strcmp (argv[argc - 1], "bootstrap") == 0); + +#ifdef HAVE_PERSONALITY_ADDR_NO_RANDOMIZE + + /* True if address randomization interferes with memory allocaiton. */ +# ifdef __PPC64__ + bool disable_aslr = true; +# else + bool disable_aslr = dumping; +# endif + + if (disable_aslr) + { + int pers = personality (0xffffffff); + if (! (pers & ADDR_NO_RANDOMIZE) + && 0 <= personality (pers | ADDR_NO_RANDOMIZE)) + { + /* Address randomization was enabled, but is now disabled. + Re-execute Emacs to get a clean slate. */ + execvp (argv[0], argv); + + /* If the exec fails, warn the user and then try without a + clean slate. */ + fprintf (stderr, "%s: %s\n", argv[0], strerror (errno)); + } + } +#endif + #ifndef CANNOT_DUMP might_dump = !initialized; #endif @@ -781,28 +810,6 @@ main (int argc, char **argv) } } - dumping = !initialized && (strcmp (argv[argc - 1], "dump") == 0 - || strcmp (argv[argc - 1], "bootstrap") == 0); - -#ifdef HAVE_PERSONALITY_LINUX32 - if (dumping && ! getenv ("EMACS_HEAP_EXEC")) - { - /* Set this so we only do this once. */ - xputenv ("EMACS_HEAP_EXEC=true"); - - /* A flag to turn off address randomization which is introduced - in linux kernel shipped with fedora core 4 */ -#define ADD_NO_RANDOMIZE 0x0040000 - personality (PER_LINUX32 | ADD_NO_RANDOMIZE); -#undef ADD_NO_RANDOMIZE - - execvp (argv[0], argv); - - /* If the exec fails, try to dump anyway. */ - emacs_perror (argv[0]); - } -#endif /* HAVE_PERSONALITY_LINUX32 */ - #if defined (HAVE_SETRLIMIT) && defined (RLIMIT_STACK) && !defined (CYGWIN) /* Extend the stack space available. Don't do that if dumping, since some systems (e.g. DJGPP) might define a smaller stack -- 2.5.5 --------------43EA9CCB94F389846EC5B491-- ------------=_1469100662-13035-1-- From unknown Wed Aug 20 05:43:18 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: jsynacek@redhat.com (Jan =?UTF-8?Q?Syn=C3=A1=C4=8Dek?=) Subject: bug#23760: closed (Re: bug#24033: Porting emacs-25 to GNU/Linux ppc64 with draft glibc 2.24) Message-ID: References: <0d10e500-bac0-c47b-b320-8a03bbc418f1@cs.ucla.edu> X-Gnu-PR-Message: they-closed 23760 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 23760@debbugs.gnu.org Date: Thu, 21 Jul 2016 11:31:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1469100662-13035-3" This is a multi-part message in MIME format... ------------=_1469100662-13035-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #24033: 25.0.95; emacs 25.0.95 doesn't build with glibc-2.23.90 which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 23760@debbugs.gnu.org. --=20 24033: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D24033 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1469100662-13035-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 24033-done) by debbugs.gnu.org; 21 Jul 2016 11:30:44 +0000 Received: from localhost ([127.0.0.1]:59319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQCBf-00038W-Tn for submit@debbugs.gnu.org; Thu, 21 Jul 2016 07:30:44 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:48891) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQCBd-00031G-SS for 24033-done@debbugs.gnu.org; Thu, 21 Jul 2016 07:30:42 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0C359161197; Thu, 21 Jul 2016 04:30:35 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id YzfYNk_y02OM; Thu, 21 Jul 2016 04:30:34 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id ED8E61611DB; Thu, 21 Jul 2016 04:30:33 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sWApUAZeCQKo; Thu, 21 Jul 2016 04:30:33 -0700 (PDT) Received: from [192.168.1.52] (AMontpellier-656-1-328-122.w90-28.abo.wanadoo.fr [90.28.96.122]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id CB79F161197; Thu, 21 Jul 2016 04:30:25 -0700 (PDT) Subject: Re: bug#24033: Porting emacs-25 to GNU/Linux ppc64 with draft glibc 2.24 To: Eli Zaretskii References: <83poq8z774.fsf@gnu.org> <1424f04d-88b6-b760-8da0-afa30c082eb2@cs.ucla.edu> <83k2ggywff.fsf@gnu.org> From: Paul Eggert Message-ID: <0d10e500-bac0-c47b-b320-8a03bbc418f1@cs.ucla.edu> Date: Thu, 21 Jul 2016 13:30:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <83k2ggywff.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 24033-done Cc: 24033-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) On 07/20/2016 08:52 PM, Eli Zaretskii wrote: > Thanks, this looks good to me for emacs-25. OK, I installed it and am closing this bug report. ------------=_1469100662-13035-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 13 Jun 2016 10:48:59 +0000 Received: from localhost ([127.0.0.1]:38579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCPQR-0004lF-8a for submit@debbugs.gnu.org; Mon, 13 Jun 2016 06:48:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCPQO-0004l1-OQ for submit@debbugs.gnu.org; Mon, 13 Jun 2016 06:48:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCPQI-0000nQ-N3 for submit@debbugs.gnu.org; Mon, 13 Jun 2016 06:48:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCPQI-0000n0-K8 for submit@debbugs.gnu.org; Mon, 13 Jun 2016 06:48:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCPQC-0006yM-8A for bug-gnu-emacs@gnu.org; Mon, 13 Jun 2016 06:48:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCPQB-0000iT-FI for bug-gnu-emacs@gnu.org; Mon, 13 Jun 2016 06:48:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCPQB-0000hG-9e for bug-gnu-emacs@gnu.org; Mon, 13 Jun 2016 06:48:43 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EC26764D20 for ; Mon, 13 Jun 2016 10:48:41 +0000 (UTC) Received: from jsynacek-ntb.brq.redhat.com (dhcp-24-121.brq.redhat.com [10.34.24.121]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u5DAmd1a003490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 13 Jun 2016 06:48:41 -0400 From: jsynacek@redhat.com (Jan =?utf-8?B?U3luw6HEjWVr?=) To: bug-gnu-emacs@gnu.org Subject: 25.0.95; emacs 25.0.95 doesn't build with glibc-2.23.90 Date: Mon, 13 Jun 2016 12:48:39 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 13 Jun 2016 10:48:42 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Emacs doesn't build with the latest glibc (glibc-2.23-90): CC gmalloc.o ../../src/gmalloc.c:273:15: error: attempt to use poisoned "__malloc_initialize_hook" extern void (*__malloc_initialize_hook) (void); ^ ../../src/gmalloc.c:381:8: error: attempt to use poisoned "__malloc_initialize_hook" void (*__malloc_initialize_hook) (void); ^ ../../src/gmalloc.c: In function 'malloc_initialize_1': ../../src/gmalloc.c:567:7: error: attempt to use poisoned "__malloc_initialize_hook" if (__malloc_initialize_hook) ^ ../../src/gmalloc.c:568:7: error: attempt to use poisoned "__malloc_initialize_hook" (*__malloc_initialize_hook) (); ^ -- Jan Synacek Software Engineer, Red Hat ------------=_1469100662-13035-3-- From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 12:51:11 2016 Received: (at control) by debbugs.gnu.org; 11 Aug 2016 16:51:11 +0000 Received: from localhost ([127.0.0.1]:54261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXtCJ-0005H1-ME for submit@debbugs.gnu.org; Thu, 11 Aug 2016 12:51:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXtCI-0005Go-7x for control@debbugs.gnu.org; Thu, 11 Aug 2016 12:51:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXtCC-0002ay-HL for control@debbugs.gnu.org; Thu, 11 Aug 2016 12:51:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXtCC-0002au-EE for control@debbugs.gnu.org; Thu, 11 Aug 2016 12:51:04 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1bXtCB-0002Xz-09 for control@debbugs.gnu.org; Thu, 11 Aug 2016 12:51:03 -0400 Subject: control message for bug 24204 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Thu, 11 Aug 2016 12:51:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.5 (-----) forcemerge 23760 24204