From unknown Sat Sep 13 05:21:48 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#26497 <26497@debbugs.gnu.org> To: bug#26497 <26497@debbugs.gnu.org> Subject: Status: glibc 2.25 broken on i686 Reply-To: bug#26497 <26497@debbugs.gnu.org> Date: Sat, 13 Sep 2025 12:21:48 +0000 retitle 26497 glibc 2.25 broken on i686 reassign 26497 guix submitter 26497 Ricardo Wurmus severity 26497 serious thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 14 07:48:19 2017 Received: (at submit) by debbugs.gnu.org; 14 Apr 2017 11:48:19 +0000 Received: from localhost ([127.0.0.1]:46548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyzi6-00079E-So for submit@debbugs.gnu.org; Fri, 14 Apr 2017 07:48:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyzi5-000791-K2 for submit@debbugs.gnu.org; Fri, 14 Apr 2017 07:48:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyzhz-0002Xc-Fm for submit@debbugs.gnu.org; Fri, 14 Apr 2017 07:48: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=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41352) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cyzhz-0002XS-Cd for submit@debbugs.gnu.org; Fri, 14 Apr 2017 07:48:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyzhy-0003g1-6W for bug-guix@gnu.org; Fri, 14 Apr 2017 07:48:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyzht-0002Rl-AX for bug-guix@gnu.org; Fri, 14 Apr 2017 07:48:10 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21084) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cyzht-0002Rb-2Z for bug-guix@gnu.org; Fri, 14 Apr 2017 07:48:05 -0400 Received: from localhost (x4d0c9043.dyn.telefonica.de [77.12.144.67]) by mx.zohomail.com with SMTPS id 1492170481985270.00195222759237; Fri, 14 Apr 2017 04:48:01 -0700 (PDT) User-agent: mu4e 0.9.18; emacs 25.1.1 From: Ricardo Wurmus To: bug-guix@gnu.org Subject: glibc 2.25 broken on i686 X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 14 Apr 2017 13:47:59 +0200 Message-ID: <87tw5r5hxs.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] 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 (----) Guix on i686 is broken since the update to glibc 2.25. There are seemingly random segfaults all over the place on my server. Ludo posted this upstream discussion: https://sourceware.org/bugzilla/show_bug.cgi?id=21182 I could test the patch on my i686 system, but it would take much too long for me to build the system from source on my machines. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 14 08:56:40 2017 Received: (at 26497) by debbugs.gnu.org; 14 Apr 2017 12:56:40 +0000 Received: from localhost ([127.0.0.1]:46610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cz0mG-0000HE-6q for submit@debbugs.gnu.org; Fri, 14 Apr 2017 08:56:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cz0mE-0000H2-8V for 26497@debbugs.gnu.org; Fri, 14 Apr 2017 08:56:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cz0m5-0006in-UH for 26497@debbugs.gnu.org; Fri, 14 Apr 2017 08:56:33 -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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cz0m5-0006id-Qe; Fri, 14 Apr 2017 08:56:29 -0400 Received: from [193.50.110.181] (port=33160 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cz0m5-0002b3-6K; Fri, 14 Apr 2017 08:56:29 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Ricardo Wurmus Subject: Re: bug#26497: glibc 2.25 broken on i686 References: <87tw5r5hxs.fsf@elephly.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 25 Germinal an 225 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Fri, 14 Apr 2017 14:56:27 +0200 In-Reply-To: <87tw5r5hxs.fsf@elephly.net> (Ricardo Wurmus's message of "Fri, 14 Apr 2017 13:47:59 +0200") Message-ID: <87d1cfdu6c.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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.0 (-----) X-Debbugs-Envelope-To: 26497 Cc: 26497@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: -5.0 (-----) Ricardo Wurmus skribis: > Guix on i686 is broken since the update to glibc 2.25. There are > seemingly random segfaults all over the place on my server. > > Ludo posted this upstream discussion: > > https://sourceware.org/bugzilla/show_bug.cgi?id=3D21182 Perhaps we don=E2=80=99t see the problem when running i686 code on x86_64. > I could test the patch on my i686 system, but it would take much too > long for me to build the system from source on my machines. Could you first check if there=E2=80=99s a simple way to reproduce it on yo= ur machine? For example, run =E2=80=9Cguix build coreutils=E2=80=9D or =E2=80= =9Cguix build coreutils --check=E2=80=9D and see if that fails. If it does, you could arrange to test the patch just in this setup. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 17 17:24:36 2017 Received: (at control) by debbugs.gnu.org; 17 Apr 2017 21:24:36 +0000 Received: from localhost ([127.0.0.1]:53017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0E8R-0001Pz-9C for submit@debbugs.gnu.org; Mon, 17 Apr 2017 17:24:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0E8P-0001Pm-1E for control@debbugs.gnu.org; Mon, 17 Apr 2017 17:24:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0E8G-0003ok-Oz for control@debbugs.gnu.org; Mon, 17 Apr 2017 17:24: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=-1.9 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]:51427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0E8G-0003ob-Le for control@debbugs.gnu.org; Mon, 17 Apr 2017 17:24:24 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:38496 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d0E8G-00071e-2I for control@debbugs.gnu.org; Mon, 17 Apr 2017 17:24:24 -0400 Date: Mon, 17 Apr 2017 23:24:21 +0200 Message-Id: <87a87epw1m.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #26497 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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.0 (-----) 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.0 (-----) severity 26497 serious From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 23 05:30:07 2017 Received: (at 26497) by debbugs.gnu.org; 23 Apr 2017 09:30:07 +0000 Received: from localhost ([127.0.0.1]:35131 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2DqJ-0000IX-CW for submit@debbugs.gnu.org; Sun, 23 Apr 2017 05:30:07 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2DqH-0000HY-OB for 26497@debbugs.gnu.org; Sun, 23 Apr 2017 05:30:06 -0400 Received: from localhost (x4d0c8edb.dyn.telefonica.de [77.12.142.219]) by mx.zohomail.com with SMTPS id 149293980229525.25533008400498; Sun, 23 Apr 2017 02:30:02 -0700 (PDT) References: <87tw5r5hxs.fsf@elephly.net> <87d1cfdu6c.fsf@gnu.org> User-agent: mu4e 0.9.18; emacs 25.1.1 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#26497: glibc 2.25 broken on i686 In-reply-to: <87d1cfdu6c.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sun, 23 Apr 2017 11:29:59 +0200 Message-ID: <87zif7sc88.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 26497 Cc: 26497@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.8 (-) Ludovic Courtès writes: > Ricardo Wurmus skribis: > >> Guix on i686 is broken since the update to glibc 2.25. There are >> seemingly random segfaults all over the place on my server. >> >> Ludo posted this upstream discussion: >> >> https://sourceware.org/bugzilla/show_bug.cgi?id=21182 > > Perhaps we don’t see the problem when running i686 code on x86_64. > >> I could test the patch on my i686 system, but it would take much too >> long for me to build the system from source on my machines. > > Could you first check if there’s a simple way to reproduce it on your > machine? For example, run “guix build coreutils” or “guix build > coreutils --check” and see if that fails. > > If it does, you could arrange to test the patch just in this setup. Do you mean apply the patch and build on i686 or apply the patch and build with “--system” on my x86_64 system? On the i686 system I cannot run anything with the latest glibc, so building there will likely fail unless the bug is fixed. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 23 09:58:56 2017 Received: (at 26497) by debbugs.gnu.org; 23 Apr 2017 13:58:56 +0000 Received: from localhost ([127.0.0.1]:36583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2I2R-0000IT-SI for submit@debbugs.gnu.org; Sun, 23 Apr 2017 09:58:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40309) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2I2P-0000IE-O5 for 26497@debbugs.gnu.org; Sun, 23 Apr 2017 09:58:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2I2H-0002jh-7N for 26497@debbugs.gnu.org; Sun, 23 Apr 2017 09:58:48 -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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2I2H-0002jd-3w; Sun, 23 Apr 2017 09:58:45 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:56964 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d2I2G-0002Bp-Cp; Sun, 23 Apr 2017 09:58:44 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Ricardo Wurmus Subject: Re: bug#26497: glibc 2.25 broken on i686 References: <87tw5r5hxs.fsf@elephly.net> <87d1cfdu6c.fsf@gnu.org> <87zif7sc88.fsf@elephly.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 =?utf-8?Q?Flor=C3=A9al?= an 225 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Sun, 23 Apr 2017 15:58:41 +0200 In-Reply-To: <87zif7sc88.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 23 Apr 2017 11:29:59 +0200") Message-ID: <87k26bdy3y.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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.0 (-----) X-Debbugs-Envelope-To: 26497 Cc: 26497@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: -5.0 (-----) Ricardo Wurmus skribis: > Ludovic Court=C3=A8s writes: > >> Ricardo Wurmus skribis: >> >>> Guix on i686 is broken since the update to glibc 2.25. There are >>> seemingly random segfaults all over the place on my server. >>> >>> Ludo posted this upstream discussion: >>> >>> https://sourceware.org/bugzilla/show_bug.cgi?id=3D21182 >> >> Perhaps we don=E2=80=99t see the problem when running i686 code on x86_6= 4. >> >>> I could test the patch on my i686 system, but it would take much too >>> long for me to build the system from source on my machines. >> >> Could you first check if there=E2=80=99s a simple way to reproduce it on= your >> machine? For example, run =E2=80=9Cguix build coreutils=E2=80=9D or =E2= =80=9Cguix build >> coreutils --check=E2=80=9D and see if that fails. >> >> If it does, you could arrange to test the patch just in this setup. > > Do you mean apply the patch and build on i686 or apply the patch and > build with =E2=80=9C--system=E2=80=9D on my x86_64 system? > > On the i686 system I cannot run anything with the latest glibc, so > building there will likely fail unless the bug is fixed. What I mean is that if you could test the patch in any way you like ;-) and ensure that it fixes the problem, it would be great. Then we soon apply the patch conditionally on glibc (like I did for the Coreutils patch for ARM) ASAP so that Hydra has time to rebuild the i686 world. TIA! :-) Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 24 17:24:49 2017 Received: (at 26497) by debbugs.gnu.org; 24 Apr 2017 21:24:49 +0000 Received: from localhost ([127.0.0.1]:38596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2lTS-0005Fw-5b for submit@debbugs.gnu.org; Mon, 24 Apr 2017 17:24:49 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2lTM-0005Fk-Rq for 26497@debbugs.gnu.org; Mon, 24 Apr 2017 17:24:44 -0400 Received: from localhost (xd933e4ae.dyn.telefonica.de [217.51.228.174]) by mx.zohomail.com with SMTPS id 1493069076060586.7134165569719; Mon, 24 Apr 2017 14:24:36 -0700 (PDT) References: <87tw5r5hxs.fsf@elephly.net> <87d1cfdu6c.fsf@gnu.org> <87zif7sc88.fsf@elephly.net> <87k26bdy3y.fsf@gnu.org> User-agent: mu4e 0.9.18; emacs 25.1.1 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#26497: glibc 2.25 broken on i686 In-reply-to: <87k26bdy3y.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Mon, 24 Apr 2017 23:24:33 +0200 Message-ID: <87k269sdm6.fsf@elephly.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-ZohoMailClient: External X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 26497 Cc: 26497@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.0 (+) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Ludovic Courtès writes: > Ricardo Wurmus skribis: > >> Ludovic Courtès writes: >> >>> Ricardo Wurmus skribis: >>> >>>> Guix on i686 is broken since the update to glibc 2.25. There are >>>> seemingly random segfaults all over the place on my server. >>>> >>>> Ludo posted this upstream discussion: >>>> >>>> https://sourceware.org/bugzilla/show_bug.cgi?id=21182 >>> >>> Perhaps we don’t see the problem when running i686 code on x86_64. >>> >>>> I could test the patch on my i686 system, but it would take much too >>>> long for me to build the system from source on my machines. >>> >>> Could you first check if there’s a simple way to reproduce it on your >>> machine? For example, run “guix build coreutils” or “guix build >>> coreutils --check” and see if that fails. >>> >>> If it does, you could arrange to test the patch just in this setup. >> >> Do you mean apply the patch and build on i686 or apply the patch and >> build with “--system” on my x86_64 system? >> >> On the i686 system I cannot run anything with the latest glibc, so >> building there will likely fail unless the bug is fixed. > > What I mean is that if you could test the patch in any way you like ;-) > and ensure that it fixes the problem, it would be great. Oh, okay. I had misunderstood your message :) I applied the following patch to my i686 netbook and waited a day for coreutils and procps to be built with the new glibc. I cannot reproduce any crashes with these packages, so this seems to be fine. > Then we soon apply the patch conditionally on glibc (like I did for the > Coreutils patch for ARM) ASAP so that Hydra has time to rebuild the i686 > world. The attached patch is for core-updates, but I could also try to make it apply conditionally for i686. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-glibc-linux-Fix-segfaults-on-i686.patch >From 2b2f1d4947e2198f7011b00a496be078f6a924fd Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 24 Apr 2017 23:15:41 +0200 Subject: [PATCH] gnu: glibc/linux: Fix segfaults on i686. * gnu/packages/patches/glibc-memchr-overflow-i686.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/base.scm (glibc/linux)[source]: Add patch. --- gnu/local.mk | 1 + gnu/packages/base.scm | 1 + .../patches/glibc-memchr-overflow-i686.patch | 74 ++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 gnu/packages/patches/glibc-memchr-overflow-i686.patch diff --git a/gnu/local.mk b/gnu/local.mk index a0d7cfd0a..61c3f6ad8 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -609,6 +609,7 @@ dist_patch_DATA = \ %D%/packages/patches/glibc-bootstrap-system.patch \ %D%/packages/patches/glibc-ldd-x86_64.patch \ %D%/packages/patches/glibc-locales.patch \ + %D%/packages/patches/glibc-memchr-overflow-i686.patch \ %D%/packages/patches/glibc-o-largefile.patch \ %D%/packages/patches/glibc-versioned-locpath.patch \ %D%/packages/patches/gmp-arm-asm-nothumb.patch \ diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 4fd9ed87e..52074c655 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -535,6 +535,7 @@ store.") (modules '((guix build utils))) (patches (search-patches "glibc-ldd-x86_64.patch" "glibc-versioned-locpath.patch" + "glibc-memchr-overflow-i686.patch" "glibc-o-largefile.patch")))) (build-system gnu-build-system) diff --git a/gnu/packages/patches/glibc-memchr-overflow-i686.patch b/gnu/packages/patches/glibc-memchr-overflow-i686.patch new file mode 100644 index 000000000..0b1b5b9f9 --- /dev/null +++ b/gnu/packages/patches/glibc-memchr-overflow-i686.patch @@ -0,0 +1,74 @@ +Extracted from glibc upstream git repository. Changes to the ChangeLog have +been removed. This patch is needed to fix spurious segmentation faults on +i686. + +From 3abeeec5f46ff036bd9df60bb096e20314ccd078 Mon Sep 17 00:00:00 2001 +From: Adhemerval Zanella +Date: Tue, 14 Mar 2017 14:16:13 -0300 +Subject: [PATCH] Fix i686 memchr overflow calculation (BZ#21182) + +This patch fixes the regression added by 23d2770 for final address +overflow calculation. The subtraction of the considered size (16) +at line 120 is at wrong place, for sizes less than 16 subsequent +overflow check will not take in consideration an invalid size (since +the subtraction will be negative). Also, the lea instruction also +does not raise the carry flag (CF) that is used in subsequent jbe +to check for overflow. + +The fix is to follow x86_64 logic from 3daef2c where the overflow +is first check and a sub instruction is issued. In case of resulting +negative size, CF will be set by the sub instruction and a NULL +result will be returned. The patch also add similar tests reported +in bug report. + +Checked on i686-linux-gnu and x86_64-linux-gnu. + + * string/test-memchr.c (do_test): Add BZ#21182 checks for address + near end of a page. + * sysdeps/i386/i686/multiarch/memchr-sse2.S (__memchr): Fix + overflow calculation. +--- + string/test-memchr.c | 6 ++++++ + sysdeps/i386/i686/multiarch/memchr-sse2.S | 2 +- + 3 files changed, 15 insertions(+), 1 deletion(-) + +diff --git a/string/test-memchr.c b/string/test-memchr.c +index 2403c9242b..669e092e7d 100644 +--- a/string/test-memchr.c ++++ b/string/test-memchr.c +@@ -210,6 +210,12 @@ test_main (void) + do_test (0, i, i + 1, i + 1, 0); + } + ++ /* BZ#21182 - wrong overflow calculation for i686 implementation ++ with address near end of the page. */ ++ for (i = 2; i < 16; ++i) ++ /* page_size is in fact getpagesize() * 2. */ ++ do_test (page_size / 2 - i, i, i, 1, 0x9B); ++ + do_random_tests (); + return ret; + } +diff --git a/sysdeps/i386/i686/multiarch/memchr-sse2.S b/sysdeps/i386/i686/multiarch/memchr-sse2.S +index 910679cfc0..e41f324a77 100644 +--- a/sysdeps/i386/i686/multiarch/memchr-sse2.S ++++ b/sysdeps/i386/i686/multiarch/memchr-sse2.S +@@ -117,7 +117,6 @@ L(crosscache): + + # ifndef USE_AS_RAWMEMCHR + jnz L(match_case2_prolog1) +- lea -16(%edx), %edx + /* Calculate the last acceptable address and check for possible + addition overflow by using satured math: + edx = ecx + edx +@@ -125,6 +124,7 @@ L(crosscache): + add %ecx, %edx + sbb %eax, %eax + or %eax, %edx ++ sub $16, %edx + jbe L(return_null) + lea 16(%edi), %edi + # else +-- +2.12.2 + -- 2.12.2 --=-=-= Content-Type: text/plain -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 24 17:33:19 2017 Received: (at 26497) by debbugs.gnu.org; 24 Apr 2017 21:33:19 +0000 Received: from localhost ([127.0.0.1]:38600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2lbj-0005Sl-7B for submit@debbugs.gnu.org; Mon, 24 Apr 2017 17:33:19 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2lbh-0005Sd-LJ for 26497@debbugs.gnu.org; Mon, 24 Apr 2017 17:33:18 -0400 Received: from localhost (xd933e4ae.dyn.telefonica.de [217.51.228.174]) by mx.zohomail.com with SMTPS id 1493069593242885.821272024954; Mon, 24 Apr 2017 14:33:13 -0700 (PDT) References: <87tw5r5hxs.fsf@elephly.net> <87d1cfdu6c.fsf@gnu.org> <87zif7sc88.fsf@elephly.net> <87k26bdy3y.fsf@gnu.org> <87k269sdm6.fsf@elephly.net> User-agent: mu4e 0.9.18; emacs 25.1.1 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#26497: glibc 2.25 broken on i686 In-reply-to: <87k269sdm6.fsf@elephly.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Mon, 24 Apr 2017 23:33:10 +0200 Message-ID: <87inltsd7t.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 26497 Cc: 26497@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.8 (-) Ricardo Wurmus writes: > I applied the following patch to my i686 netbook and waited a day for > coreutils and procps to be built with the new glibc. I cannot reproduce > any crashes with these packages, so this seems to be fine. I should also note that I cannot reproduce the crashes at all when running the old binaries that were built with the broken glibc 2.25. The crashes only happened on a reconfigured system with the broken glibc 2.25. I cannot really reconfigure the whole system to test this, because that would take a very very long time. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 25 06:19:34 2017 Received: (at 26497) by debbugs.gnu.org; 25 Apr 2017 10:19:35 +0000 Received: from localhost ([127.0.0.1]:38848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2xZG-0001N3-4g for submit@debbugs.gnu.org; Tue, 25 Apr 2017 06:19:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2xZB-0001Mo-QD for 26497@debbugs.gnu.org; Tue, 25 Apr 2017 06:19:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2xZ2-0007Hf-RF for 26497@debbugs.gnu.org; Tue, 25 Apr 2017 06:19:24 -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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2xZ2-0007HZ-NC; Tue, 25 Apr 2017 06:19:20 -0400 Received: from [89.131.103.136] (port=49236 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d2xZ2-0006Qi-1f; Tue, 25 Apr 2017 06:19:20 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Ricardo Wurmus Subject: Re: bug#26497: glibc 2.25 broken on i686 References: <87tw5r5hxs.fsf@elephly.net> <87d1cfdu6c.fsf@gnu.org> <87zif7sc88.fsf@elephly.net> <87k26bdy3y.fsf@gnu.org> <87k269sdm6.fsf@elephly.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 =?utf-8?Q?Flor=C3=A9al?= an 225 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Tue, 25 Apr 2017 12:19:15 +0200 In-Reply-To: <87k269sdm6.fsf@elephly.net> (Ricardo Wurmus's message of "Mon, 24 Apr 2017 23:24:33 +0200") Message-ID: <87bmrkdc2k.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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.0 (-----) X-Debbugs-Envelope-To: 26497 Cc: 26497@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: -5.0 (-----) Hello! Ricardo Wurmus skribis: > I applied the following patch to my i686 netbook and waited a day for > coreutils and procps to be built with the new glibc. I cannot reproduce > any crashes with these packages, so this seems to be fine. > >> Then we soon apply the patch conditionally on glibc (like I did for the >> Coreutils patch for ARM) ASAP so that Hydra has time to rebuild the i686 >> world. > > The attached patch is for core-updates, but I could also try to make it > apply conditionally for i686. Yes, that would be great. > From 2b2f1d4947e2198f7011b00a496be078f6a924fd Mon Sep 17 00:00:00 2001 > From: Ricardo Wurmus > Date: Mon, 24 Apr 2017 23:15:41 +0200 > Subject: [PATCH] gnu: glibc/linux: Fix segfaults on i686. > > * gnu/packages/patches/glibc-memchr-overflow-i686.patch: New file. > * gnu/local.mk (dist_patch_DATA): Add it. > * gnu/packages/base.scm (glibc/linux)[source]: Add patch. Perfect, thank you for taking care of it! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri May 05 13:32:50 2017 Received: (at 26497-done) by debbugs.gnu.org; 5 May 2017 17:32:50 +0000 Received: from localhost ([127.0.0.1]:56644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6h61-0005X0-CW for submit@debbugs.gnu.org; Fri, 05 May 2017 13:32:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6h5x-0005Wk-NT for 26497-done@debbugs.gnu.org; Fri, 05 May 2017 13:32:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6h5o-00043E-S3 for 26497-done@debbugs.gnu.org; Fri, 05 May 2017 13:32:40 -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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6h5o-000437-PN; Fri, 05 May 2017 13:32:36 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:40218 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d6h5o-000516-6N; Fri, 05 May 2017 13:32:36 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Ricardo Wurmus Subject: Re: bug#26497: glibc 2.25 broken on i686 References: <87tw5r5hxs.fsf@elephly.net> <87d1cfdu6c.fsf@gnu.org> <87zif7sc88.fsf@elephly.net> <87k26bdy3y.fsf@gnu.org> <87k269sdm6.fsf@elephly.net> Date: Fri, 05 May 2017 19:32:34 +0200 In-Reply-To: <87k269sdm6.fsf@elephly.net> (Ricardo Wurmus's message of "Mon, 24 Apr 2017 23:24:33 +0200") Message-ID: <87r3032or1.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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.0 (-----) X-Debbugs-Envelope-To: 26497-done Cc: 26497-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: -5.0 (-----) Ricardo Wurmus skribis: >>>From 2b2f1d4947e2198f7011b00a496be078f6a924fd Mon Sep 17 00:00:00 2001 > From: Ricardo Wurmus > Date: Mon, 24 Apr 2017 23:15:41 +0200 > Subject: [PATCH] gnu: glibc/linux: Fix segfaults on i686. > > * gnu/packages/patches/glibc-memchr-overflow-i686.patch: New file. > * gnu/local.mk (dist_patch_DATA): Add it. > * gnu/packages/base.scm (glibc/linux)[source]: Add patch. This was pushed as b2fd8f63679aa4f244c36fdca62f23c00b8eded9; closing. Ludo=E2=80=99. From unknown Sat Sep 13 05:21:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 03 Jun 2017 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator