From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id cEiOIsgFY2dSxAAA62LTzQ:P1 (envelope-from ) for ; Wed, 18 Dec 2024 17:26:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id cEiOIsgFY2dSxAAA62LTzQ (envelope-from ) for ; Wed, 18 Dec 2024 18:26:32 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Cix5jpCE; dkim=fail ("headers eddsa verify failed") header.d=josefsson.org header.s=ed2303 header.b=6ZdXOrBO; dkim=fail ("headers rsa verify failed") header.d=josefsson.org header.s=rsa2303 header.b=BENemjV2; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734542791; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature:openpgp:openpgp; bh=N3SALmvSUvU49ll2J5nHW059HczStiTsbXT5452tFkI=; b=FPVTt4SBzp7Oy00GXv3Gbk0KB/sPpj9tYTkxka5+CuUKAfYUWK4+w8wFRnG4c4PcwKsNc6 kYbTFEdtndr6+yeRFPkSrFn6FDBvEMa+zYmFezoarQ0Qs5b6jwFo69b6pNSyjb7di3R58A Rnd0ojpTS1kRb79uaVcHZouJzOVKSZhBRWzz+QkLeI3ot3+7FKkokDUdbqC//4FuZ4oyyQ P5hQud0P+FvF/I+QMgDUnA1khaWVyHkhKZwGsMOaqeN5pa7ngtJ/QxpQG+E1SWcFXTh1By /lbBiyM5MT8rug2TPlqPINoWsGMuWWONRlRMjaVcE5j5oGf7u5d1n/ErSIBw1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Cix5jpCE; dkim=fail ("headers eddsa verify failed") header.d=josefsson.org header.s=ed2303 header.b=6ZdXOrBO; dkim=fail ("headers rsa verify failed") header.d=josefsson.org header.s=rsa2303 header.b=BENemjV2; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734542791; a=rsa-sha256; cv=none; b=NsOTEMi79pu8Zs5zGR31c8OJAWFX7VtZE4Z/oeszKI0gz8iv5kYfPFfV26kxVwzWbOiVil QkXSSWWB1e9SgRoPU+WCtOAWsTdqJ4XhZ66xY7meSIijiTTqCgxIi/YOVItA65wTkHbX0c jAY9tkliPoQrxjo76gk796ZgcscNzWA9kjGk2IbgAQysrD0jbG/0G8cXAZZeFIq/Lt64VB 4c6D2pr7WW+5wB3mvzxhxS5WbxKbroWWMOWfJGZzdh3x6fo3gV0yS56zp0R5z9mVa/3Lzq ZMwozNqvRg7ihSkyBPXdsj8RtSFcDza7k6pV3eeNIIDRtTvnFlsX6NWbF16F6A== 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 4E1A346BCA for ; Wed, 18 Dec 2024 18:26:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNxoE-0003bT-6o; Wed, 18 Dec 2024 12:26:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNxoB-0003Z9-7x for bug-guix@gnu.org; Wed, 18 Dec 2024 12:26:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNxoB-0008LX-00 for bug-guix@gnu.org; Wed, 18 Dec 2024 12:26:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=N3SALmvSUvU49ll2J5nHW059HczStiTsbXT5452tFkI=; b=Cix5jpCEGbdVfro5UdQnzrfRhdHcb6dA/7oKtwDW0CcGfughRvRHE7LvoHK+oaLTQ7kqqxCSCtMk4LBajdN7fyKa+p8W+wGh0wFUnZa2MS1KUwORLZwYHdp8oPiDSrPEbTxsIjwxeqArcgg9uJKtg3qk310GhWzit/fto9zM0Ea73bJyyQrt3EQ5yU00unZMIaDCck9BDQQ0MIoQIYM7cm3aNAGLEnsDGpWE28D2Obr/flaj7pCasVEDZUz6heNqNVv9ckdbbKkdWvE7fEuSlqnGz+otjBU64Au/CBmORQcfTUeho8hW/fnFO3QqtiduWdK1W7i3/1G3FPz0maw9+w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNxoA-0007Hp-0G for bug-guix@gnu.org; Wed, 18 Dec 2024 12:26:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74949: guix describe crash if HOME is unset OR /etc/passwd is missing Resent-From: Simon Josefsson Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 18 Dec 2024 17:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74949 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74949@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173454271427698 (code B ref -1); Wed, 18 Dec 2024 17:26:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Dec 2024 17:25:14 +0000 Received: from localhost ([127.0.0.1]:35813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNxnN-0007C8-Pb for submit@debbugs.gnu.org; Wed, 18 Dec 2024 12:25:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:52374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNxnM-0007AV-3i for submit@debbugs.gnu.org; Wed, 18 Dec 2024 12:25:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNxnK-0003M3-16 for bug-guix@gnu.org; Wed, 18 Dec 2024 12:25:11 -0500 Received: from uggla.sjd.se ([2001:9b1:8633::107]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNxnE-00084M-EH for bug-guix@gnu.org; Wed, 18 Dec 2024 12:25:08 -0500 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=ed2303; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description; bh=N3SALmvSUvU49ll2J5nHW059HczStiTsbXT5452tFkI=; t=1734542697; x=1735752297; b=6ZdXOrBOto8N6+wp9UK97WLjX2KpH6jhqqY512w7X1zpVdn R/NVLGN72Y0M4HUO20n+VD++JUTMqU8fiSug+Dw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=rsa2303; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description; bh=N3SALmvSUvU49ll2J5nHW059HczStiTsbXT5452tFkI=; t=1734542697; x=1735752297; b=BENemjV2HRIJ8QJ0U/TNt4oQRY4xTI14dlTOzgACtw7aKmf /O3Q6mf07qftNFrdd1EP4RfbAEw3P6NL9hxPAsokHSXoMQC00sdepxMzplc0vz9iLd5LPoz6J2xsM 5cDcrDFu36orAfHbl+u5yejoTsBV4boESlZzKL8hmW5LhLiIXhjHRoBaNcK9rXV0f+mPS0rJn1Fiy YF9ODVkh1Uo4IBrzYJfv06Z2OlCl3XntGHArptsYmox7oIiS0n4cit5j2Mo+RgVRj8ZYuGjAq9MA/ 6WcpgX80VmlZQCYBZhjIraE1casaEIQqwHJord19Njd1CygTU6GvRpSCjkzKNvB/+WD/5EltrssNq cHY3WQ4SF/gvqZNfzSxmCgcn6140q6HbShojYCyv9ZDyWbi9qGnJhkcLokWIEsRvrSQ/tS8rpGAsr Cz6Zp7NJf+sq1hgS/V+lp0c0; Received: from h-178-174-130-130.a498.priv.bahnhof.se ([178.174.130.130]:48998 helo=kaka) by uggla.sjd.se with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tNxn4-00Cmdu-Lp for bug-guix@gnu.org; Wed, 18 Dec 2024 17:24:54 +0000 X-Hashcash: 1:23:241218:bug-guix@gnu.org::GlyyRPFURdQU35ri:WErF OpenPGP: id=B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE; url=https://josefsson.org/key-20190320.txt Date: Wed, 18 Dec 2024 18:25:00 +0100 Message-ID: <87pllokioj.fsf@kaka.sjd.se> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2001:9b1:8633::107; envelope-from=simon@josefsson.org; helo=uggla.sjd.se X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-to: Simon Josefsson From: Simon Josefsson via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -4.73 X-Spam-Score: -4.73 X-Migadu-Queue-Id: 4E1A346BCA X-TUID: w98NltwyBY+b --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi I get the backtrace below. Setting either HOME to something, or adding an entry to /etc/passwd for the running user, silences this. I don't think it should fail like this, should it? Is a reasonable behaviour to assume HOME means "/" when unset? How to handle missing /etc/passwd entries probably depends on what the code wants to use it for. /Simon jas@kaka:~/src/guix-container$ podman run --entrypoint /bin/sh -it registry= .gitlab.com/debdistutils/guix/container:latest sh-5.1# guix describe Backtrace: In ice-9/boot-9.scm: 222:29 19 (map1 _) 222:29 18 (map1 _) 222:29 17 (map1 _) 222:29 16 (map1 _) 222:29 15 (map1 _) 222:29 14 (map1 _) 222:29 13 (map1 _) 222:29 12 (map1 (((guix packages)) ((guix profiles)) ((guix #)) ?)) 222:17 11 (map1 (((guix profiles)) ((guix derivations)) ((# #)) ?)) 3327:17 10 (resolve-interface (guix profiles) #:select _ #:hide _ # ?) In ice-9/threads.scm: 390:8 9 (_ _) In ice-9/boot-9.scm: 3253:13 8 (_) In ice-9/threads.scm: 390:8 7 (_ _) In ice-9/boot-9.scm: 3544:20 6 (_) 2836:4 5 (save-module-excursion #) 3564:26 4 (_) In unknown file: 3 (primitive-load-path "guix/profiles" #) In guix/profiles.scm: 2388:23 2 (_) In guix/utils.scm: 1071:48 1 (xdg-directory _ "/.config" #:ensure? _) In unknown file: 0 (getpw 0) ERROR: In procedure getpw: In procedure getpw: entry not found sh-5.1# export HOME=3D/ sh-5.1# guix describe guix 790c9ff repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 790c9ffe596e3deabf175e030adee5fb706aa981 sh-5.1# exit jas@kaka:~/src/guix-container$ podman run --entrypoint /bin/sh -it registry= .gitlab.com/debdistutils/guix/container:latest sh-5.1# guix describe Backtrace: In ice-9/boot-9.scm: 222:29 19 (map1 _) 222:29 18 (map1 _) 222:29 17 (map1 _) 222:29 16 (map1 _) 222:29 15 (map1 _) 222:29 14 (map1 _) 222:29 13 (map1 _) 222:29 12 (map1 (((guix packages)) ((guix profiles)) ((guix #)) ?)) 222:17 11 (map1 (((guix profiles)) ((guix derivations)) ((# #)) ?)) 3327:17 10 (resolve-interface (guix profiles) #:select _ #:hide _ # ?) In ice-9/threads.scm: 390:8 9 (_ _) In ice-9/boot-9.scm: 3253:13 8 (_) In ice-9/threads.scm: 390:8 7 (_ _) In ice-9/boot-9.scm: 3544:20 6 (_) 2836:4 5 (save-module-excursion #) 3564:26 4 (_) In unknown file: 3 (primitive-load-path "guix/profiles" #) In guix/profiles.scm: 2388:23 2 (_) In guix/utils.scm: 1071:48 1 (xdg-directory _ "/.config" #:ensure? _) In unknown file: 0 (getpw 0) ERROR: In procedure getpw: In procedure getpw: entry not found sh-5.1# echo 'root:x:0:0:root:/root:/bin/bash' > /etc/passwd sh-5.1# guix describe guix 790c9ff repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 790c9ffe596e3deabf175e030adee5fb706aa981 sh-5.1#=20 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIoEARYIADIWIQSjzJyHC50xCrrUzy9RcisI/kdFogUCZ2MFbBQcc2ltb25Aam9z ZWZzc29uLm9yZwAKCRBRcisI/kdFoic9AP0Z7iO3HtsuJPRH4v3xjYWiBj3v98Qq TxoGeIAa57A16QEA64OY+7LWlvA4JXryX0VPu239KnreeEUbTW0RWzSU6gc= =yOvL -----END PGP SIGNATURE----- --=-=-=--