-
Notifications
You must be signed in to change notification settings - Fork 567
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
lib/File/Copy.t fails when running in non-root #15132
Comments
From bitcard@jatu.onlineThis happens for example when using perlbrew. The build is done as a regular user. The copy-test copies files with various umasks, removes the file and continues. However, when running as non-root, it is not possible to remove file: Also, it won't return any errors on unlink(). This is a non-issue when running as root. A root can remove such files. As regular user, if the file is owned by the user (as it is in this case), a chmod u+w and then unlink() will succeed. |
From @tonycozOn Tue Jan 19 06:10:43 2016, bitcard@jatu.online wrote:
Hi, I regularly run perl's tests, including that one as non-root on several systems (Linux, darwin, NetBSD, Solaris). You haven't provided any of the following useful information: - which test in particular is failing, Please provide that information and maybe we can see what's happening. You might want to provide a verbose run of the test script: make TEST_ARGS=-v TEST_FILES=../lib/File/Copy.t Tony |
The RT System itself - Status changed from 'new' to 'open' |
From bitcard@jatu.onlineOn Tue Jan 19 15:10:27 2016, tonyc wrote:
Sir, you acknowledged running "that test" and are claiming, that I didn't mention which test is failing. The test failing is: lib/File/Copy.t I'm running on a Ubuntu 14.04.1 LTS and am installing a perl-5.20.3. Here is a test run: Does that help? Regards, |
From zefram@fysh.orgJari Turkia via RT wrote:
There's something funny going on with that line number. Line 327 of that Anyway, the "Can't open" message indicates that the failing operation is -zefram |
From bitcard@jatu.onlineOn Wed Jan 20 06:20:09 2016, zefram@fysh.org wrote:
Sir, you are correct about the line number. I had modified the file to debug the issue. Correct error with original file is (pretty much what you said): This is the strace of the test: After the test: The file is there. However, the sequence doesn't make any sense. First it unlinks the file, then it creates a directory with same name, removes it and after all that, the file still exists. Huh!? |
From zefram@fysh.orgJari Turkia via RT wrote:
That is a very strange sequence. Regardless of umask, creating the The chmod immediately preceding the rmdir suggests that this is the second -zefram |
From @AbigailOn Wed, Jan 20, 2016 at 10:52:35AM -0800, Jari Turkia via RT wrote:
This is a long shot, but could there be some ACL in effect? Even if standard Abigail |
From bitcard@jatu.onlineOn Thu Jan 21 06:37:34 2016, zefram@fysh.org wrote:
I checked ACLs and anything that I could think of. Then I found it! The bug is reproducible every single time on one box only. That one has /home mounted over NFS. On an identical Ubuntu running XFS, /home as a directory on the root-partition, the test succeeds. It was a filesystem issue after all. Regards, |
From @wolfsageOn Fri, Jan 22, 2016 at 3:43 AM, Jari Turkia via RT <
Should this be closed then? Or is this NFS issue something we need to look Thanks, -- Matthew Horsfall (alh) |
From zefram@fysh.orgMatthew Horsfall (alh) wrote:
It should be closed. We can't expect to allow for filesystem misbehaviour -zefram |
From @wolfsageClosing then. |
@wolfsage - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#127316 (status was 'rejected')
Searchable as RT127316$
The text was updated successfully, but these errors were encountered: