all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Gábor Boskovits" <boskovits@gmail.com>
To: Maria Sidorova <hydromasha@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Test fail
Date: Thu, 29 Mar 2018 08:17:50 +0200	[thread overview]
Message-ID: <CAE4v=pgjiRBTVVw5Lhavn8ST-Azp2L8tPXVqs3Z-CyKrUVjiWQ@mail.gmail.com> (raw)
In-Reply-To: <CAE4v=pio5VSW_Ui1vp=mZ9+ssG6Pzws66NGN+z2bLaqCSzU6xg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3439 bytes --]

2018-03-28 15:51 GMT+02:00 Gábor Boskovits <boskovits@gmail.com>:

> 2018-03-28 8:36 GMT+02:00 Maria Sidorova <hydromasha@gmail.com>:
>
>>
>>
>> On 28.03.2018 09:33, Gábor Boskovits wrote:
>>
>>> 2018-03-27 23:34 GMT+02:00 Maria Sidorova <hydromasha@gmail.com <mailto:
>>> hydromasha@gmail.com>>:
>>>
>>>
>>>     Hello,
>>>
>>>     Running the test suite (`make check`) gives me one of the tests
>>> failed.
>>>
>>>     This is from test-suite.log
>>>
>>>     test-name: pivot-root
>>>     location: /home/masha/src/guix/tests/syscalls.scm:156
>>>     source:
>>>     + (test-equal
>>>     +   "pivot-root"
>>>     +   #t
>>>     +   (match (pipe)
>>>     +          ((in . out)
>>>     +           (match (clone (logior CLONE_NEWUSER CLONE_NEWNS SIGCHLD))
>>>     +                  (0
>>>     +                   (dynamic-wind
>>>     +                     (const #t)
>>>     +                     (lambda ()
>>>     +                       (close in)
>>>     +                       (call-with-temporary-directory
>>>     +                         (lambda (root)
>>>     +                           (let ((put-old (string-append root
>>>     "/real-root")))
>>>     +                             (mount "none" root "tmpfs")
>>>     +                             (mkdir put-old)
>>>     +                             (call-with-output-file
>>>     +                               (string-append root "/test")
>>>     +                               (lambda (port) (display "testing\n"
>>>     port)))
>>>     +                             (pivot-root root put-old)
>>>     +                             (write (file-exists? "/test") out)
>>>     +                             (close out)))))
>>>     +                     (lambda () (primitive-exit 0))))
>>>     +                  (pid (close out)
>>>     +                       (let ((result (read in)))
>>>     +                         (close in)
>>>     +                         (and (zero? (match (waitpid pid)
>>>     +                                            ((_ . status)
>>>     +                                             (status:exit-val
>>>     status))))
>>>     +                              (eq? #t result))))))))
>>>     expected-value: #t
>>>     actual-value: #f
>>>     result: FAIL
>>>
>>>
>>>     The summary is:
>>>     # TOTAL: 777
>>>     # PASS:  772
>>>     # SKIP:  4
>>>     # XFAIL: 0
>>>     # FAIL:  1
>>>     # XPASS: 0
>>>     # ERROR: 0
>>>
>>>     I'm novice in Guix, can anyone give me a clue?
>>>
>>>
> Actually there are two possibilities. I'm trying to narrow this down now.
> There is a bug: https://bugzilla.kernel.org/show_bug.cgi?id=183461
> in our bug tracker that might be affecting you, or the shared mounts
> I noticed much later. I'm going to investigate this and report back.
>

I've created a vm image with a current Ubuntu 16.04 yesterday, installed
the guix binary tarball, and did a make check in a guix environment guix.
This error was not shown in my case.

My uname -r is:
 4.10.0-28-generic

This test should be skipped, if kernel version > 4.7.5.
Can you please send the output of uname -r ?


>
>>
>>> Can you please write the type of system you are building guix on?
>>> We recently discovered that on systemd based systems pivot-root
>>> might fail because of shared mountpoints.
>>>
>>
>> Ubuntu 16.04 (64)
>>
>
>

[-- Attachment #2: Type: text/html, Size: 5832 bytes --]

  reply	other threads:[~2018-03-29  6:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-27 21:34 Test fail Maria Sidorova
2018-03-28  6:33 ` Gábor Boskovits
2018-03-28  6:36   ` Maria Sidorova
2018-03-28 13:51     ` Gábor Boskovits
2018-03-29  6:17       ` Gábor Boskovits [this message]
2018-03-29 12:46         ` Maria Sidorova
2018-03-29 12:51           ` Gábor Boskovits
2018-03-29 12:56             ` Maria Sidorova
2018-03-30 16:39               ` Ludovic Courtès
2018-04-03 19:18                 ` bug#25476: " Gábor Boskovits
2018-04-03 19:18                 ` Gábor Boskovits
2018-04-05  8:56                   ` bug#25476: " Ludovic Courtès
2018-04-05  8:56                   ` Ludovic Courtès
2018-03-30 16:39               ` bug#25476: " Ludovic Courtès

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

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

  git send-email \
    --in-reply-to='CAE4v=pgjiRBTVVw5Lhavn8ST-Azp2L8tPXVqs3Z-CyKrUVjiWQ@mail.gmail.com' \
    --to=boskovits@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=hydromasha@gmail.com \
    /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.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.