unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#75205: guix package test failure on i686-linux (kexec-load-file test)
@ 2024-12-30 16:55 Dariqq
  2025-01-01  4:17 ` Ian Eure
  0 siblings, 1 reply; 2+ messages in thread
From: Dariqq @ 2024-12-30 16:55 UTC (permalink / raw)
  To: 75205

Hello,

The guix package is failing the newly added kexec-load-file syscall test 
on i686-linux:

 From https://ci.guix.gnu.org/build/7774049/details:

test-name: kexec-load-file
location: 
/tmp/guix-build-guix-1.4.0-31.121e96d.drv-0/source/tests/syscalls.scm:688
source:
+ (test-equal
+   "kexec-load-file"
+   EPERM
+   (catch 'system-error
+          (lambda ()
+            (let ((fd1 (open-fdes "/dev/null" O_RDONLY))
+                  (fd2 (open-fdes "/dev/null" O_RDONLY)))
+              (kexec-load-file fd1 fd2 "gnu.repl=yes")))
+          (lambda args (system-error-errno args))))
expected-value: 1
actual-value: 14
result: FAIL






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#75205: guix package test failure on i686-linux (kexec-load-file test)
  2024-12-30 16:55 bug#75205: guix package test failure on i686-linux (kexec-load-file test) Dariqq
@ 2025-01-01  4:17 ` Ian Eure
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Eure @ 2025-01-01  4:17 UTC (permalink / raw)
  To: 75205; +Cc: Ludovic Courtès

This is failing for me on aarch64-linux also:

    test-name: kexec-load-file
    location: 
    /tmp/guix-build-guix-1.4.0-31.121e96d.drv-0/source/tests/syscalls.scm:688
    source:
    + (test-equal
    +   "kexec-load-file"
    +   EPERM
    +   (catch 'system-error
    +          (lambda ()
    +            (let ((fd1 (open-fdes "/dev/null" O_RDONLY))
    +                  (fd2 (open-fdes "/dev/null" O_RDONLY)))
    +              (kexec-load-file fd1 fd2 "gnu.repl=yes")))
    +          (lambda args (system-error-errno args))))
    expected-value: 1
    actual-value: 38
    result: FAIL

If I downgrade to commit 96cd163c14e68c66c6a4cf0b18261fc454f8c1ba, 
guix tests pass again -- the failing test was added in the next 
commit.  I’m not sure what the issue here, it seems like that 
syscall shouldn’t be arch-dependent, and the errnos in the 
failures are unhelpful.  38 is ERANGE, 14 is EFAULT, neither of 
those seem applicable here.  EPERM is 1, and 38 doesn’t have its 
LSB set, so it can’t be a bitmask.

I’m encountering the issue using Guix as a foreign package manager 
on top of Debian 12 "bookworm" in a VM.  Perhaps there’s an 
implicit dependency on the host system’s kernel in the test, which 
Debian’s fails to meet.

Ludo’, any thoughts?

  -- Ian




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-01-01  4:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-30 16:55 bug#75205: guix package test failure on i686-linux (kexec-load-file test) Dariqq
2025-01-01  4:17 ` Ian Eure

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).