From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +ChFOoohQmHLCgEAgWs5BA (envelope-from ) for ; Wed, 15 Sep 2021 18:38:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 3zcBNoohQmEZHQAA1q6Kng (envelope-from ) for ; Wed, 15 Sep 2021 16:38:34 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2063858A4 for ; Wed, 15 Sep 2021 18:38:34 +0200 (CEST) Received: from localhost ([::1]:52350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQXvd-0000HV-8r for larch@yhetil.org; Wed, 15 Sep 2021 12:38:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQXoQ-0003o9-3M for bug-guix@gnu.org; Wed, 15 Sep 2021 12:31:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41547) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQXoP-0004px-QZ for bug-guix@gnu.org; Wed, 15 Sep 2021 12:31:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQXoP-0003Em-O3 for bug-guix@gnu.org; Wed, 15 Sep 2021 12:31:05 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50264: ca-certificate-bundle fails to build Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 15 Sep 2021 16:31:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50264 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Lars-Dominik Braun Received: via spool by 50264-submit@debbugs.gnu.org id=B50264.163172344912356 (code B ref 50264); Wed, 15 Sep 2021 16:31:05 +0000 Received: (at 50264) by debbugs.gnu.org; 15 Sep 2021 16:30:49 +0000 Received: from localhost ([127.0.0.1]:53084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQXo8-0003DD-J1 for submit@debbugs.gnu.org; Wed, 15 Sep 2021 12:30:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQXo6-0003Co-0b for 50264@debbugs.gnu.org; Wed, 15 Sep 2021 12:30:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42498) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQXo0-0004U4-9A; Wed, 15 Sep 2021 12:30:40 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35674 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQXny-0005Yv-VN; Wed, 15 Sep 2021 12:30:39 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87sfy63tlh.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Wed, 15 Sep 2021 14:34:50 +0200") References: <87bl58z4pa.fsf@gnu.org> <871r5wct8c.fsf@gnu.org> <87a6kf5mpo.fsf@gnu.org> <87sfy63tlh.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Date: Wed, 15 Sep 2021 18:30:37 +0200 Message-ID: <8735q54x8y.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 50264@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631723914; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=t7Osv1AuVow+xJQuRVBHNZae3Qef9Gcpog/C6mxwL+0=; b=KEUT/g2t5ZRrw68G4qWsQoGvS1fQsxcZLJWHANxFEYdlCHPZvJbaWkAUCdBxkB/+Y4iRH3 Umlhg+kw3xaVLtNOm0VsJugz514uxMVm9tY9TXMCFbA78yrvH3TxTpaQZPySMY5cCoLe+u 1QHhg71jqGjlZWaxVIAwNyG3IPs9H66EhGrsU8RgDa3CRb76fILA1D0x3lHsWPz1zqpXKv 0MjXgNgokdKo+sNDY0e0LQhAI/+ANKgcqR0S+rMFKCsYc1YBkmdSJf2GFc+I8WE272v/PC 2xmKPQ6P8w8SrSZkh4WsIQTfH76uNo5JuoUc+1xt8ESCgXuxOIc+EQC/3KnV5A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631723914; a=rsa-sha256; cv=none; b=MGMG7JMwHOx4GxGEPT2cSguCaR6ujYAGodqip4YgxgQR3neIiII96u3YDmWb36XcoikAo9 vVkxhUOrhbOrlgNk82aOgZK9+/6hCap92HAlUM0JqIypG8uHg1MrVJLFey6UP/mSYtvESt 5hl8XiMgWZl807TdM/uFrnrpFjTE+r5xayGKI2bkK6uYA9J8bUSVR+25F6z7kxfYfzZTra WPMCKqpB747OGuZqWMz5XXPmCWzrpa7S/PIodRxyXCEKJhhJknemUpMoQCIo1SbOpeNV3D YkAGdi6GwVV9ify/ArFTyL4E3rVpIMMUZxr2Xw+11O2MVBIALRH5dVuuK2MZkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.90 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 2063858A4 X-Spam-Score: -1.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: 9dJ713uYxiRB --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable And for posterity, here=E2=80=99s the script I used to reproduce the proble= m: it=E2=80=99d pick 10 packages at random and call =E2=80=98ca-certificate-bu= ndle=E2=80=99 on them. Since this bug depends on what=E2=80=99s in the store, I=E2=80=99d run it o= n my laptop, which only contains a fraction of the 18K packages in Guix, so it would reproduce the bug after a couple of iterations. That, together with the inevitable =E2=80=98pk=E2=80=99 calls plus a bit of= chance, voil=C3=A0! Ludo=E2=80=99. --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=ca-certificate-bundle.scm Content-Description: the reproducer ;; https://issues.guix.gnu.org/50264 (use-modules (gnu) (guix) (guix profiles) (guix monads) (ice-9 match) (srfi srfi-1)) (define (all-packages) "Return the list of all the packages, public or private, omitting only superseded packages." (fold-packages (lambda (package lst) (match (package-replacement package) (#f (cons package lst)) (replacement (append (list replacement package) lst)))) '() #:select? (negate package-superseded))) (define (random-seed) (logxor (getpid) (car (gettimeofday)))) (define shuffle ;from offload.scm (let ((state (seed->random-state (random-seed)))) (lambda (lst) "Return LST shuffled (using the Fisher-Yates algorithm.)" (define vec (list->vector lst)) (let loop ((result '()) (i (vector-length vec))) (if (zero? i) result (let* ((j (random i state)) (val (vector-ref vec j))) (vector-set! vec j (vector-ref vec (- i 1))) (loop (cons val result) (- i 1)))))))) (define (test packages) (pk 'testing-packages (map package-full-name packages)) (let ((manifest (packages->manifest packages))) (with-store store (let ((drv (run-with-store store (ca-certificate-bundle manifest)))) (pk 'drv drv) (unless (find (lambda (input) (let ((drv (derivation-input-derivation input))) (string-prefix? "glibc-utf8-locales" (derivation-name drv)))) (derivation-inputs drv)) (pk 'drv drv (derivation-inputs drv)) (display-backtrace (make-stack #t) (current-error-port)) (error "bah!" drv)) (newline) (newline))))) (let loop ((packages (shuffle (all-packages)))) (test (take packages 10)) (loop (drop packages 10))) --=-=-=--