unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Ekaitz Zarraga <ekaitz@elenq.tech>
To: "help-guix\\@gnu.org" <help-guix@gnu.org>
Cc: Jan Nieuwenhuizen <janneke@gnu.org>
Subject: Help needed: Weird bootstrapping hangs
Date: Wed, 6 Mar 2024 17:11:19 +0100	[thread overview]
Message-ID: <3b23dd57-d574-be54-1bb4-16eecc41b4aa@elenq.tech> (raw)

Hi all,

Really weird question here. Beware.

I'm experiencing weird Guix hangs in the bootstrapping packages.

They happen randomly but frequently in:

- Mes' configure script
- Mes' linking of libtcc
- Some other packages' configure scripts (I had it in Binutils but the 
package is not published yet)
- When creating a Makefile or a config.log in several packages. Even 
after an error appears, they don't stop, they just hang.

The symptoms are the following:

- The stdout of the configure script is just frozen.
- The CPU usage drops, that specific process goes to exactly 20% of CPU 
as seen in `htop`.
- If I connect to the running program using strace I see the following 
forever, appearing very fast in the screen:

pselect6(4, [3], NULL, NULL, {tv_sec=0, tv_nsec=160000}, NULL) = 0 (Timeout)
wait4(14338, 0x7fffffffc5a0, WNOHANG, NULL) = 0
pselect6(4, [3], NULL, NULL, {tv_sec=0, tv_nsec=160000}, NULL) = 0 (Timeout)
wait4(14338, 0x7fffffffc5a0, WNOHANG, NULL) = 0
pselect6(4, [3], NULL, NULL, {tv_sec=0, tv_nsec=160000}, NULL) = 0 (Timeout)
wait4(14338, 0x7fffffffc5a0, WNOHANG, NULL) = 0
pselect6(4, [3], NULL, NULL, {tv_sec=0, tv_nsec=160000}, NULL) = 0 (Timeout)
wait4(14338, 0x7fffffffc5a0, WNOHANG, NULL) = 0

I've replicated this in a separate RISC-V machine so it's not Qemu.

Does anyone have an idea of what can this be?

We have two suspects:
- Guix
- Gash

I have no idea of how to dig on this further. Yesterday I had the same 
hang in both machines' Mes configure scripts but then I added -x to the 
`set -e` on the top of the file and both worked, and they keep working 
since. Then one of them exploded later... I went to bed and I woke up 
with a "Process unresponsive after 3600 seconds" error and I run it 
again and it worked and managed to finish.

Some help would be much appreciated.

Thanks,
Ekaitz


                 reply	other threads:[~2024-03-06 16:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3b23dd57-d574-be54-1bb4-16eecc41b4aa@elenq.tech \
    --to=ekaitz@elenq.tech \
    --cc=help-guix@gnu.org \
    --cc=janneke@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).