From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UJQgNzIiQmHmEAEAgWs5BA (envelope-from ) for ; Wed, 15 Sep 2021 18:41:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GH/HMjIiQmGdZwAAB5/wlQ (envelope-from ) for ; Wed, 15 Sep 2021 16:41:22 +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 0928959AC for ; Wed, 15 Sep 2021 18:41:22 +0200 (CEST) Received: from localhost ([::1]:60346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQXyL-0005iY-7L for larch@yhetil.org; Wed, 15 Sep 2021 12:41:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQXoP-0003o0-Of for bug-guix@gnu.org; Wed, 15 Sep 2021 12:31:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41546) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQXoP-0004pG-Ef 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-0003Ef-At 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.163172344312338 (code B ref 50264); Wed, 15 Sep 2021 16:31:05 +0000 Received: (at 50264) by debbugs.gnu.org; 15 Sep 2021 16:30:43 +0000 Received: from localhost ([127.0.0.1]:53081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQXo3-0003Cw-9I for submit@debbugs.gnu.org; Wed, 15 Sep 2021 12:30:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQXo1-0003CO-AG for 50264@debbugs.gnu.org; Wed, 15 Sep 2021 12:30:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42482) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQXnv-0004NW-4X; Wed, 15 Sep 2021 12:30:35 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35672 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQXnR-0005Ju-M2; Wed, 15 Sep 2021 12:30:22 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87bl58z4pa.fsf@gnu.org> <871r5wct8c.fsf@gnu.org> <87a6kf5mpo.fsf@gnu.org> <87sfy63tlh.fsf@gnu.org> Date: Wed, 15 Sep 2021 18:30:04 +0200 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") Message-ID: <874kal4x9v.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) 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=1631724082; 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=hx11QsRNOLRFa5649Ka6NioZaZfzAeLpm/K/9BIJBRMxj+bqjAesdNbZLb4/ZPELQbD7GH 5rkDh6l2HtRWk6GWiFY+BKYIN0+nZJb35J0O6mrWgHTcyglQp7Q85A2YpM149cyLL9d/ec CpAgXQ3Cx0oA66s+P/c4tJXBotmyeQv4s5Qn5UUwSRq2iZSoxdtXvNGShGL8LED1PltmFp qh8/KbBlPA7EghncwOtcOCZYmkxkbRmNSIvBcIdwDtf9gHZGjyOFqxsORdZgVvfIH+gqRZ nM+39a+48gpBc5fyDGvBLh/GQL5fKEZ86m7sMPybDBJWN37aU40DXxdP2ggbwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631724082; a=rsa-sha256; cv=none; b=GLhV8WhFrQwzyWYrRkptIIYi8VtEP6aiye7hmZggPEKnimQXb7V7aKXi0fG8k5g3XMMnaX 30eOUA04wfuTj/hmfK74klJJjo8FbTvqdyAH6Ab01FygGMMzoXs4GDTVLh9XrO1RDfD6cl zxsGo2kuw5LgPZlugQoCsll7dCVdgG0dPb73KxIKJIiUCE/218d2jyh50kON52dHjdOfRL yyU2cpdKWBCSxyJ14uxcCFk5WdRR5gbXhn1gCShK1Y7vp/zoL+J2JU2elBTBg3iPsbNZhj ZXOWL6tAvoOuxKdLVGY8TrUMPEvKoRQJifxffcoJc1CkqeJO3Y2qAurT4ewJWg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: 0928959AC X-Spam-Score: -1.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: UqqWkBvFBeCq --=-=-= 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))) --=-=-=--