From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 26 01:17:53 2022 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 To: bug-guix@gnu.org, Denis 'GNUtoo' Carikli , 58783@debbugs.gnu.org Subject: Re: bug#58783: Strange booting/reproducibility issue 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 58783 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (-) ------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--