Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289022 - dev-vcs/cvs-1.12.12-r6 getcwd failure on nfs4 mounted dirs
Summary: dev-vcs/cvs-1.12.12-r6 getcwd failure on nfs4 mounted dirs
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-14 09:20 UTC by peteru
Modified: 2017-08-30 18:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Other test case - logfile of "strace -f make -s". Look for pid 14647. (nfs4-bug.log.gz,762.10 KB, application/octet-stream)
2009-10-23 20:42 UTC, Wolfgang Denk
Details
cvs-1.12.13-printf.patch (cvs-1.12.13-printf.patch,1.10 KB, patch)
2010-02-17 09:34 UTC, Martin Jansa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description peteru 2009-10-14 09:20:42 UTC
When attempting to use cvs in working directories that reside on NFS4 mounted volumes, cvs fails in getcwd. If the same directory is remounted as NFS v3, cvs works.

With NFS4:
> # mount -t nfs4 nas:/Projects/yon /home/yon
> $ cd /home/yon
> $ df -h .
> Filesystem            Size  Used Avail Use% Mounted on
> nas:/Projects/yon     931G  868G   63G  94% /home/yon
> $ cvs -n up VERSION
> cvs [update aborted]: cannot get working directory: No such file or directory
> $ cd /


With NFS v3:
> # umount /home/yon
> # mount -t nfs nas:/exported/Projects/yon /home/yon
> $ cd /home/yon
> $ df -h .
> Filesystem                   Size  Used Avail Use% Mounted on
> nas:/exported/Projects/yon   931G  868G   63G  94% /home/yon
> $ cvs -n up VERSION
> M VERSION
Comment 1 Wolfgang Denk 2009-10-23 20:42:13 UTC
Created attachment 208057 [details]
 Other test case - logfile of "strace -f make -s". Look for pid 14647.

The problem seems to be not gentoo-specific. I am experiencing the same issues under Fedora 11 as well. For reference, please see
https://bugzilla.redhat.com/show_bug.cgi?id=530625
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2009-10-23 21:25:31 UTC
Debian bug:
http://bugs.debian.org/459641
Comment 3 Martin Jansa 2010-02-17 09:33:09 UTC
(In reply to comment #2)
> Debian bug:
> http://bugs.debian.org/459641

Isn't it the same problem as 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=461154
?

I had the same issue when using cvs in chroot where is directory mounted with mount --bind. It's my directory for cross compilation and I need cvs for autopoint.

It was resolved in masked cvs-1.12.13.1.

But because of new glibc (I have 2.11-r1) I had to use extra patch solving '*** %n in writable segment detected ***' error, report found here:
https://qa.mandriva.com/show_bug.cgi?id=31848

Patch found http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg173504.html

I'll attach reformated patch to this bug which can be easily used from ebuild with:
epatch "${FILESDIR}"/${PN}-1.12.13-printf.patch

Regards,
Comment 4 Martin Jansa 2010-02-17 09:34:39 UTC
Created attachment 219971 [details, diff]
cvs-1.12.13-printf.patch

Patch for segfaulting cvs with '*** %n in writable segment detected ***' error message.
Comment 5 Wolfgang Denk 2010-06-19 17:02:09 UTC
I see the summary was changed from dev-util/cvs... into dev-vcs/cvs... - however I cannot see any comments or explanations for this change - what is the relation of /dev/vcs (i. e. virtual console terminals) to this problem?
Comment 6 Martin Jansa 2010-06-19 17:13:40 UTC
(In reply to comment #5)
> I see the summary was changed from dev-util/cvs... into dev-vcs/cvs... -
> however I cannot see any comments or explanations for this change - what is the
> relation of /dev/vcs (i. e. virtual console terminals) to this problem?

all cvs ebuilds were moved from dev-util category to dev-vcs.

So someone is cleaning bugzilla to show correct category.

FYI: vcs is used here as "version control system" not virtual console..
Comment 7 Jon Bramley 2010-08-03 16:48:28 UTC
I'm experiencing what I believe to be the same issue on a CIFS share. Error returned from CVS is:

"cvs [update aborted]: cannot get working directory: No such file or directory"

Upgrading to masked version (1.12.13.1) seems to fix it.
Comment 8 Jon Bramley 2010-08-03 16:49:47 UTC
Actually, now I'm getting the "*** %n in writable segment detected ***" error, so still not usable.
Comment 9 Jon Bramley 2010-08-05 09:45:54 UTC
1.12.13.1 with the attached patch works for me so far.
Comment 10 Jon Bramley 2010-08-05 11:03:51 UTC
Yet again I spoke too soon. I've now seeing the following error upon cvs update:

556 12:03 $ cvs update
cvs [update aborted]: could not chdir to /shared/design/cvs_src/dev_utils: No such file or directory

strace reveals:


close(5)                                = 0
chdir("/shared/design/jbramley/cvs_src/MASTERPROJECT/Ladbrokes/Madrid") = -1 ENOENT (No such file or directory)
write(2, "cvs [update aborted]: could not "..., 131cvs [update aborted]: could not chdir to /shared/design/jbramley/cvs_src/MASTERPROJECT/Ladbrokes/Madrid: No such file or directory
) = 131
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0
close(1)                                = 0
exit_group(1)                           = ?
Comment 11 Pacho Ramos gentoo-dev 2017-08-30 18:38:32 UTC
please retry with 1.12.12-r12