-
Notifications
You must be signed in to change notification settings - Fork 689
Failed mount tests on x86_64 Ubuntu 16.04.4 #610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you give me any more details that this? Ideally you could provide enough details for us to reproduce this, like a code sample we could run. |
I don’t know what is going on here. I get this error every time I run the test harness. At first I thought my system might be corrupt, but I tested this again on my other laptop that is also running ubuntu, and I get the same error there. This is probably not a bug in nix, but I would still like to understand what's wrong
|
That's the same error I get locally, so now we just need someone to dig into this. |
@kamalmarhubi Looks like these are tests you wrote that are now failing. They fail locally for me but also on CI on Rust 1.13, so I don't think this was from a CI change or a Rust change. Failure is at |
For the record, I can't reproduce these failures in my Ubuntu 16.10 VMs, either on x86 or x86_64. Both use Rust 1.15.1 and the BHyve hypervisor. |
This is a Linux bug. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1659087 . It looks like the workaround is to access the from within the namespace instead of from without it. I can reproduce it on a Ubuntu 16.04 physical machine even though I can't on my Ubuntu 16.10 VMs. |
@asomers Do you know enough about this to apply the workaround in our tests? |
No. I've never used Linux namespaces before. My first attempt, putting all of the file accesses within an |
I spent an hour or so and couldn't find a working workaround. But the test still passes on Ubuntu 16.10. I suggest that we check uname(), and skip the test if the kernel is 4.4.0. |
Some versions of that kernel have a known bug with tmpfs in namespaces. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1659087 Fixes nix-rust#610
Starting somewhere in 4.4.0 some versions of Linux have a known bug with tmpfs in namespaces. It's unknown exactly which versions are affected (and likely distro-dependent), but easy to detect. When open(2) returns EOVERFLOW, skip the rest of the test. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1659087 Fixes nix-rust#610
633: Skip the mount tests on kernel 4.4.0 r=asomers Some versions of that kernel have a known bug with tmpfs in namespaces. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1659087 Fixes #610
633: Skip the mount tests on kernel 4.4.0 r=asomers Some versions of that kernel have a known bug with tmpfs in namespaces. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1659087 Fixes #610
The text was updated successfully, but these errors were encountered: