From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 22 04:51:58 2014 Received: (at submit) by debbugs.gnu.org; 22 Apr 2014 08:51:58 +0000 Received: from localhost ([127.0.0.1]:54669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WcWQn-00015J-IC for submit@debbugs.gnu.org; Tue, 22 Apr 2014 04:51:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41900) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WcWQj-000150-Uz for submit@debbugs.gnu.org; Tue, 22 Apr 2014 04:51:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcWQe-0005Yw-3r for submit@debbugs.gnu.org; Tue, 22 Apr 2014 04:51:53 -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.7 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcWQe-0005Ys-0u for submit@debbugs.gnu.org; Tue, 22 Apr 2014 04:51:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcWQY-0003wN-II for bug-guix@gnu.org; Tue, 22 Apr 2014 04:51:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcWQS-0005XM-Sg for bug-guix@gnu.org; Tue, 22 Apr 2014 04:51:42 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:38219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcWQS-0005XE-Lo for bug-guix@gnu.org; Tue, 22 Apr 2014 04:51:36 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 7708E1A68 for ; Tue, 22 Apr 2014 10:51:35 +0200 (CEST) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5QvRGv768fSe for ; Tue, 22 Apr 2014 10:51:35 +0200 (CEST) Received: from pluto (pluto.bordeaux.inria.fr [193.50.110.57]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 462D96E5 for ; Tue, 22 Apr 2014 10:51:35 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: bug-guix@gnu.org Subject: =?utf-8?Q?=E2=80=98guix_authenticate=E2=80=99?= failure in C locale X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 =?utf-8?Q?Flor=C3=A9al?= an 222 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Tue, 22 Apr 2014 10:51:34 +0200 Message-ID: <87y4yx21d5.fsf@gnu.org> User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (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: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.7 (-----) As seen in , =E2=80=98guix authenticate= =E2=80=99 could fail when running in the C locale (as is the case on hydra.gnu.org): --8<---------------cut here---------------start------------->8--- @ build-started /gnu/store/639n30wn56fsnvxnp5sv4nxshxdsym32-gmp-6.0.0a.drv = - x86_64-linux /nix/var/log/guix/drvs/63//9n30wn56fsnvxnp5sv4nxshxdsym32-gm= p-6.0.0a.drv sending 2 store files to 'hydra.gnunet.org'... importing path `/gnu/store/hyr8lvpbl2lbbkvr5v1qa25895bpcxls-gmp-6.0.0a-guil= e-builder' guix archive: error: build failed: program `guix-authenticate' failed with = exit code 1 builder for `/gnu/store/639n30wn56fsnvxnp5sv4nxshxdsym32-gmp-6.0.0a.drv' fa= iled to produce output path `/gnu/store/6va1dygagfrlc1xqy71ckawh4cymrl4h-gm= p-6.0.0a-debug' @ hook-failed /gnu/store/639n30wn56fsnvxnp5sv4nxshxdsym32-gmp-6.0.0a.drv - = 0 builder for `/gnu/store/639n30wn56fsnvxnp5sv4nxshxdsym32-gmp-6.0.0a.drv' = failed to produce output path `/gnu/store/6va1dygagfrlc1xqy71ckawh4cymrl4h-= gmp-6.0.0a-debug' --8<---------------cut here---------------end--------------->8--- The problem was that it could in some cases produce a signature sexp with an invalid hash value. For example: guix archive --export /gnu/store/hyr8lvpbl2lbbkvr5v1qa25895bpcxls-gmp-6.= 0.0a-guile-builder would produce an archive with a signature sexp like this (literally): (signature=20 (data=20 (flags pkcs1) (hash sha256 "^?\vU????{N4?`??eL??x???|1y????{L") ) [...] The problem is that the hash value shown here is the result of substituting non-ASCII characters with question marks and other things. Obviously signature verification on such a thing would fail, leading to errors like the one above. This could happen in some cases, when libgcrypt would choose to use a byte string representation instead of a hexadecimal string, and is due to the fact that =E2=80=98string->canonical-sexp=E2=80=99 would convert str= ings passed to =E2=80=98gcry_sexp_new=E2=80=99 to locale encoding. This is fixed with commit 6030d84 (see that commit for a concrete example.) Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 22 07:35:13 2014 Received: (at 17312-done) by debbugs.gnu.org; 22 Apr 2014 11:35:13 +0000 Received: from localhost ([127.0.0.1]:54786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WcYyn-0007aj-1P for submit@debbugs.gnu.org; Tue, 22 Apr 2014 07:35:13 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:40912) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WcYyk-0007aZ-32 for 17312-done@debbugs.gnu.org; Tue, 22 Apr 2014 07:35:11 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 6B8A2A9F for <17312-done@debbugs.gnu.org>; Tue, 22 Apr 2014 13:35:08 +0200 (CEST) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KJTGJn3cbhS1 for <17312-done@debbugs.gnu.org>; Tue, 22 Apr 2014 13:35:08 +0200 (CEST) Received: from pluto (pluto.bordeaux.inria.fr [193.50.110.57]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 39F41970 for <17312-done@debbugs.gnu.org>; Tue, 22 Apr 2014 13:35:08 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: 17312-done@debbugs.gnu.org Subject: Re: bug#17312: =?utf-8?Q?=E2=80=98guix_authenticate=E2=80=99?= failure in C locale References: <87y4yx21d5.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 =?utf-8?Q?Flor=C3=A9al?= an 222 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Tue, 22 Apr 2014 13:35:07 +0200 In-Reply-To: <87y4yx21d5.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 22 Apr 2014 10:51:34 +0200") Message-ID: <87bnvtzjf8.fsf@gnu.org> User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 17312-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (+) ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > This is fixed with commit 6030d84 (see that commit for a concrete > example.) A related issue is the choice of the stdout encoding used by =E2=80=98guix authenticate=E2=80=99, fixed in 6f69588. This appears to solve this bug. Ludo=E2=80=99. From unknown Fri Jun 20 07:18:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 21 May 2014 11:24:04 +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