From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IN6CEHbDWGNGUQEAbAwnHQ (envelope-from ) for ; Wed, 26 Oct 2022 07:19:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6PlxEHbDWGMXhQAA9RJhRA (envelope-from ) for ; Wed, 26 Oct 2022 07:19:50 +0200 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 E2314285BC for ; Wed, 26 Oct 2022 07:19:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onYnk-0005kC-VO; Wed, 26 Oct 2022 01:18:04 -0400 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 1onYnj-0005iN-4c for bug-guix@gnu.org; Wed, 26 Oct 2022 01:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onYni-0002Uk-Ro for bug-guix@gnu.org; Wed, 26 Oct 2022 01:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1onYni-0002BE-DC for bug-guix@gnu.org; Wed, 26 Oct 2022 01:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58783: Strange booting/reproducibility issue Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 26 Oct 2022 05:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58783 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 58783@debbugs.gnu.org, GNUtoo@cyberdimension.org X-Debbugs-Original-To: bug-guix@gnu.org, Denis 'GNUtoo' Carikli , 58783@debbugs.gnu.org Received: via spool by 58783-submit@debbugs.gnu.org id=B58783.16667614738363 (code B ref 58783); Wed, 26 Oct 2022 05:18:02 +0000 Received: (at 58783) by debbugs.gnu.org; 26 Oct 2022 05:17:53 +0000 Received: from localhost ([127.0.0.1]:52958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onYnY-0002Ao-Pl for submit@debbugs.gnu.org; Wed, 26 Oct 2022 01:17:53 -0400 Received: from lepiller.eu ([89.234.186.109]:38956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onYnT-0002Ab-Sl for 58783@debbugs.gnu.org; Wed, 26 Oct 2022 01:17:51 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 58a305a4; Wed, 26 Oct 2022 05:17:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=8rhgBCK37Ey8 FDsq4cwLUvgZzFtjm4Q33f4R+DLEkOg=; b=OXjsIedryOpF+zoB2yNVK95G2BxK 6w8yBsyKPvcCiPIe5BvzzwSx0MQFYtKjFCgpZ+45i3cKH67G12C9ZqSzpwdE5hWt 0kiMTGa4/XR4l8XKjiL8gy39OWgheVH6rSUiugI/6dN9jHdIJzZOWfpGDi/T+KXF YgM6ePztVLQUegfG+A2ECJuiCkP9o97KVnILXXXjG8Vh1ITEHXFwvzFYdZLFvYgP UkWEu6WOKgwnamVGxEtbWer6s0lpjxKu296hDD3ig77XwbMPT6SUoy7mv6BJ+Zsa 91wFzMZISWybr2ly+VHPDakebcdRJBiY3iZjWOjJn3hfBQOP8fJaDce0vA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 49c6c4b7 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 26 Oct 2022 05:17:44 +0000 (UTC) Date: Wed, 26 Oct 2022 07:17:41 +0200 From: Julien Lepiller User-Agent: K-9 Mail for Android In-Reply-To: <20221026004303.3a0e4815@primary_laptop> References: <20221026004303.3a0e4815@primary_laptop> Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----VCHPQW33USNNFQKCCJIMHK919IVSU6 Content-Transfer-Encoding: 7bit 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: , Sender: "bug-Guix" Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666761590; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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:dkim-signature; bh=KFNhiq6OK73goSxbpWaaNbhdUOSIz1bV6bzvc4ru5bI=; b=FyDuJmM0XLatQzdTo8Z+N+3urUoWgEmfDfoUozlMy1SezayE/MlCW3ZKsHbnc/vXtaN8I8 uCeS15E90PSyFoSSbwJ4KKLTDRWdonkCbZ/zay8FkxcnzCqksN+FfqEovd1xAA50puuK24 W63DoafI4+SM8pomGuRVAFu76CghXiLkzP9o5hIevzYsn14xJS/ovaF3S1YTCZygzB+6H1 CoYybofH56LitAXvEU5xB4YOSeFo/eafSDHEAlFL759JSyGIJF4iHZq8LFcxbmNaLpeDZ4 FOfuyaWKZL5aRUpjdT8o+p23wEnJz80dDtDXSdIoJNDjs9lj+x2bGMt/3WpLwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666761590; a=rsa-sha256; cv=none; b=M5f9sUWyXJ4cb/eQ4Rg9UGXGe5/v3nRhblTZMu4ZbrRUhXpHykQ+tPIhQu8rT/DimI7n7I hqrj9iWICEi2ZI12ZBRjbAhRjyOX6RgI2GYzMSFkgMMdBogcpfSvM/dmyw0YRMAYtHACoZ COqZMbsavsm0nCXFFSlfHmuScUuXFiygb3IzNRxZzpYTI/VUhhZ7wDOTq/YY9Aath8YDGJ 7OyoBMT/+D+Xswebehq43dAh/enK+g8Tcwd54qqpyLV7Kh8tubMzHXUzb1kCGoYs7JWOtU jsex+YDv/9YRkTezU9ilf1BUXCkYjS9RGolH90j5YuCXkq8+PsJBXJCjVTeJBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=OXjsIedr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); 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" X-Migadu-Spam-Score: 6.99 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=OXjsIedr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); 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" X-Migadu-Queue-Id: E2314285BC X-Spam-Score: 6.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3bObKE9km8rC ------VCHPQW33USNNFQKCCJIMHK919IVSU6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable continue=2E GNU Guile 3=2E0=2E7 Copyright (C) 1995-2021 Free Software Foundation, Inc=2E That sounds weird, I would expect our guile to be more recent than that=2E= The manual suggests using "sudo guix system" instead of "sudo -E guix syst= em", maybe that's the issue? Le 26 octobre 2022 00:43:03 GMT+02:00, Denis 'GNUtoo' Carikli a =C3=A9crit=C2=A0: >Hi, > >On an i686 computer[1], I've a Guix installation on an HDD, and if I do >> guix pull -M 1 -c 1 >and that I then do >> sudo -E guix system reconfigure -M 1 -c 1 system=2Escm > >I get the following boot failure[2]: >> GC Warning: pthread_getattr_np or pthread_attr_getstack failed for >> main thread GC Warning: Couldn't read /proc/stat >> Welcome, this is GNU's early boot Guile=2E >> Use 'gnu=2Erepl' for an initrd REPL=2E >>=20 >> loading kernel modules=2E=2E=2E >> Enter passphrase for /dev/sda2:=20 >> /dev/mapper/cryptroot: recovering journal >> /dev/mapper/cryptroot: clean, 702176/9773056 files, 8418369/39071232 >> blocks ice-9/boot-9=2Escm:1685:16: In procedure raise-exception: >> In procedure mkdir: File exists >>=20 >> Entering a new prompt=2E Type `,bt' for a backtrace or `,q' to >> continue=2E GNU Guile 3=2E0=2E7 >> Copyright (C) 1995-2021 Free Software Foundation, Inc=2E >>=20 >> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'=2E >> This program is free software, and you are welcome to redistribute it >> under certain conditions; type `,show c' for details=2E >>=20 >> Enter `,help' for help=2E >> scheme@(guile-user)>=20 > >If I use the same system=2Escm (attached) and that I produce an image >with the build_init=2Esh script (attached) which setups an encrypted >partition and uses guix system init, and that I then copy the resulting >image to an USB drive with ddrescue, It then boots fine=2E > >Since the system ends up not booting anymore when I try to guix pull >and guix system reconfigure the system on the HDD, to boot I simply >select a known booting old revision in the grub menu, so I can easily >test things=2E > >Though I'm not sure where to look=2E Is there anything I can do to get >more contexts or logs? Should I try loglevel=3D8 ? > >References: >----------- >[1] The computer is a Thinkpad X60 with only an external display running > Coreboot with SeaBIOS=2E >[2] The boot log was captured by adding console=3DttyS0,115200 to the > command line arguments in grub and by capturing the messages > through a serial port=2E > >Denis=2E ------VCHPQW33USNNFQKCCJIMHK919IVSU6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable continue=2E GNU Guile 3=2E0=2E7
Copyright (C) 1= 995-2021 Free Software Foundation, Inc=2E

That sounds weird, I would= expect our guile to be more recent than that=2E The manual suggests using = "sudo guix system" instead of "sudo -E guix system", maybe that's the issue= ?

Le 26 octobre 2022 00:43:03 GMT+02:00, = Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension=2Eorg> a =C3=A9crit=C2= =A0:
Hi,

On an i686 computer[1], I've= a Guix installation on an HDD, and if I do
guix pull -M 1 -c 1
and that I then do=
sudo -E guix system re= configure -M 1 -c 1 system=2Escm

I get the following bo= ot failure[2]:
GC Warni= ng: pthread_getattr_np or pthread_attr_getstack failed for
main thread G= C Warning: Couldn't read /proc/stat
Welcome, this is GNU's early boot Gu= ile=2E
Use 'gnu=2Erepl' for an initrd REPL=2E

loading kernel modu= les=2E=2E=2E
Enter passphrase for /dev/sda2:
/dev/mapper/cryptroot: = recovering journal
/dev/mapper/cryptroot: clean, 702176/9773056 files, 8= 418369/39071232
blocks ice-9/boot-9=2Escm:1685:16: In procedure raise-ex= ception:
In procedure mkdir: File exists

Entering a new prompt=2E= Type `,bt' for a backtrace or `,q' to
continue=2E GNU Guile 3=2E0=2E7<= br>Copyright (C) 1995-2021 Free Software Foundation, Inc=2E

Guile co= mes with ABSOLUTELY NO WARRANTY; for details type `,show w'=2E
This prog= ram is free software, and you are welcome to redistribute it
under certa= in conditions; type `,show c' for details=2E

Enter `,help' for help= =2E
scheme@(guile-user)>

If I use the same syste= m=2Escm (attached) and that I produce an image
with the build_init=2Esh = script (attached) which setups an encrypted
partition and uses guix syst= em init, and that I then copy the resulting
image to an USB drive with d= drescue, It then boots fine=2E

Since the system ends up not booting = anymore when I try to guix pull
and guix system reconfigure the system o= n the HDD, to boot I simply
select a known booting old revision in the g= rub menu, so I can easily
test things=2E

Though I'm not sure wher= e to look=2E Is there anything I can do to get
more contexts or logs? Sh= ould I try loglevel=3D8 ?

References:
[1] The computer is a Think= pad X60 with only an external display running
Coreboot with SeaBIOS= =2E
[2] The boot log was captured by adding console=3DttyS0,115200 to th= e
command line arguments in grub and by capturing the messages
= through a serial port=2E

Denis=2E
------VCHPQW33USNNFQKCCJIMHK919IVSU6--