Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cvs corrupts file while tagging

2 views
Skip to first unread message

rush

unread,
Aug 20, 2013, 10:25:21 AM8/20/13
to info...@nongnu.org
Hi,

I'm facing to a strange problem: cvs corrupts rcs file while I'm trying
to tag it.

The file itself is about 50Mb (and it's binary) and rcs file is about
2.1G.

Every time I launch

cvs rtag -B -a -F -r 1.526 -b "my_tag" project/file.bin

rcs file turns from 2.1G into 110K file with completely lost history
and file itself.

All other operations (commit, update, etc) works fine.

е║

This is the biggest file in repository and the only file with such
behaviour on tags. Others are working fine.

I'm using Concurrent Versions System (CVS) 1.12.6 (client/server)

Is there any way to fix that thing?

е║

--
wbr,
rush.

Jim Hyslop

unread,
Aug 20, 2013, 11:40:54 PM8/20/13
to rush, info...@nongnu.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 13-08-20 5:12 AM, rush wrote:
> Hi,
>
> I'm facing to a strange problem: cvs corrupts rcs file while I'm
> trying to tag it.
[...]>
> Is there any way to fix that thing?

Is the repository mounted on a shared drive?

Check the sticky tags on the file to ensure it has the binary tag
applied (-kb).

- --
Jim Hyslop
Dreampossible: Better software. Simply. http://www.dreampossible.ca
Consulting * Mentoring * Training in
C/C++ * OOD * SW Development & Practices * Version Management
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlIUNq4ACgkQLdDyDwyJw+OZYwCgm70Y8c79VNWME4ep3UBeZVKj
hQoAn0r8e2FVsRCawKWybZ74MriRI8gv
=m6Vc
-----END PGP SIGNATURE-----

rush

unread,
Aug 21, 2013, 12:56:23 AM8/21/13
to Jim Hyslop, info...@nongnu.org
Hi,

Thanks for your reply.

е║

Is the repository mounted on a shared drive?

Repository files are on nfs drive.

Check the sticky tags on the file to ensure it has the binary tag
applied (-kb).

Yes, the file has binary tag. In cvs log I can find :
е║е║е║ keyword substitution: b

е║

--
wbr,
rush.

е║

е║

21.08.2013, 07:40, "Jim Hyslop" <jhysl...@dreampossible.ca>:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 13-08-20 5:12 AM, rush wrote:

е║Hi,
е║I'm facing to a strange problem: cvs corrupts rcs file while I'm
е║trying to tag it.

[...]>

е║Is there any way to fix that thing?

Is the repository mounted on a shared drive?
Check the sticky tags on the file to ensure it has the binary tag
applied (-kb).
- --
Jim Hyslop
Dreampossible: Better software. Simply.
е║е║е║е║[1]http://www.dreampossible.ca
е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║Consulting * Mentoring * Training in
е║е║е║е║C/C++ * OOD * SW Development & Practices * Version Management
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: GPGTools - [2]http://gpgtools.org
Comment: Using GnuPG with undefined - [3]http://www.enigmail.net/
iEYEARECAAYFAlIUNq4ACgkQLdDyDwyJw+OZYwCgm70Y8c79VNWME4ep3UBeZVKj
hQoAn0r8e2FVsRCawKWybZ74MriRI8gv
=m6Vc
-----END PGP SIGNATURE-----

References

1. http://www.dreampossible.ca/
2. http://gpgtools.org/
3. http://www.enigmail.net/

Arthur Barrett

unread,
Aug 21, 2013, 9:08:14 AM8/21/13
to rush, info...@nongnu.org

Is it possible to move the repository to a 'local' disk and re-run the test?

If the problem still occurs on a 'local' disk, can you generate a trace?

cvs -ttt rtag -B -a -F -r 1.526 -b "my_tag" project/file.bin 2>&1 > /tmp/my_trace.txt

The CVS repository is like a 'database' - you wouldn't put an oracle database on an NFS share (or a Samba share) and neither should your CVS repository be there.

Regards,


Arthur

rush

unread,
Aug 21, 2013, 9:27:58 AM8/21/13
to Arthur Barrett, info...@nongnu.org
Hi,

I moved the repository to a local drive and tried it again. cvs still
corrupts file.

е║

I have installed 32bit cvs, but my system is 64bit. I tested in on
another machine with 32bit cvs and 64bit system and caught the same
behaviour.

Then I switched to 64bit version and voila, everything works fine.

е║

So it looks like a bug in 32bit version.

I'm not sure if I should attach the trace or just to provide a link to
something like pastebin.
So here it is the debug output with 32bit cvs with repository on local
drive: [1]http://pastebin.com/N2tn10qk

Right after tag I get corrupted file and message on client side:

cvs [rlog aborted]: EOF while looking for end of string in RCS file
/home/user/cvs_test/project/file.bin,v

--
wbr,
rush.

е║

е║

21.08.2013, 17:07, "Arthur Barrett" <arthur....@march-hare.com>:

Is it possible to move the repository to a 'local' disk and re-run
the test?
If the problem still occurs on a 'local' disk, can you generate a
trace?
е║е║cvs -ttt rtag -B -a -F -r 1.526 -b "my_tag" project/file.bin 2>&1
> /tmp/my_trace.txt
The CVS repository is like a 'database' - you wouldn't put an oracle
database on an NFS share (or a Samba share) and neither should your
CVS repository be there.
Regards,
Arthur

е║-----Original Message-----
е║From:
е║[2]info-cvs-bounces+arthur.barrett=march-h...@nongnu.org
е║[mailto:[3]info-cvs-bounces+arthur.barrett=march-hare.com@nongnu.
е║org] On Behalf Of rush
е║Sent: 21 August 2013 14:56
е║To: Jim Hyslop
е║Cc: [4]info...@nongnu.org
е║Subject: Re: cvs corrupts file while tagging
е║е║е║е║Hi,
е║е║е║е║Thanks for your reply.
е║е║е║е║ц┘б║
е║е║е║е║е║е║Is the repository mounted on a shared drive?
е║е║е║е║Repository files are on nfs drive.
е║е║е║е║Check the sticky tags on the file to ensure it has the binary
tag
е║е║е║е║applied (-kb).
е║е║е║е║Yes, the file has binary tag. In cvs log I can find :
е║е║е║е║ц┘б║ц┘б║ц┘б║ keyword substitution: b
е║е║е║е║ц┘б║
е║е║е║е║--
е║е║е║е║wbr,
е║е║е║е║rush.
е║е║е║е║ц┘б║
е║е║е║е║ц┘б║
е║е║е║е║21.08.2013, 07:40, "Jim Hyslop"
<[5]jhysl...@dreampossible.ca>:
е║е║е║е║е║е║-----BEGIN PGP SIGNED MESSAGE-----
е║е║е║е║е║е║Hash: SHA1
е║е║е║е║е║е║On 13-08-20 5:12 AM, rush wrote:
е║е║е║е║е║е║ц┘б║Hi,
е║е║е║е║е║е║ц┘б║I'm facing to a strange problem: cvs corrupts rcs file
е║while I'm
е║е║е║е║е║е║ц┘б║trying to tag it.
е║е║е║е║е║е║[...]>
е║е║е║е║е║е║ц┘б║Is there any way to fix that thing?
е║е║е║е║е║е║Is the repository mounted on a shared drive?
е║е║е║е║е║е║Check the sticky tags on the file to ensure it has the binary
tag
е║е║е║е║е║е║applied (-kb).
е║е║е║е║е║е║- --
е║е║е║е║е║е║Jim Hyslop
е║е║е║е║е║е║Dreampossible: Better software. Simply.
е║е║е║е║е║е║ц┘б║ц┘б║ц┘б║ц┘б║[1][6]http://www.dreampossible.ca
е║е║е║е║е║е║ц┘б║ц┘б║ц┘б║ц┘б║ц┘б║ц┘б║ц┘б║ц┘б║ц┘б║ц┘б║ц┘б║ц┘б║ц┘б║ц┘б║ц┘б║ц┘б║ц┘б║Consulting * Mentoring
е║* Training in
е║е║е║е║е║е║ц┘б║ц┘б║ц┘б║ц┘б║C/C++ * OOD * SW Development & Practices *
е║Version Management
е║е║е║е║е║е║-----BEGIN PGP SIGNATURE-----
е║е║е║е║е║е║Version: GnuPG v1.4.8 (Darwin)
е║е║е║е║е║е║Comment: GPGTools - [2][7]http://gpgtools.org
е║е║е║е║е║е║Comment: Using GnuPG with undefined -
[3][8]http://www.enigmail.net/
е║е║е║е║е║е║iEYEARECAAYFAlIUNq4ACgkQLdDyDwyJw+OZYwCgm70Y8c79VNWME4ep3UBeZV
Kj
е║е║е║е║е║е║hQoAn0r8e2FVsRCawKWybZ74MriRI8gv
е║е║е║е║е║е║=m6Vc
е║е║е║е║е║е║-----END PGP SIGNATURE-----
е║References
е║е║е║е║1. [9]http://www.dreampossible.ca/
е║е║е║е║2. [10]http://gpgtools.org/
е║е║е║е║3. [11]http://www.enigmail.net/

е║

References

1. http://pastebin.com/N2tn10qk
2. mailto:info-cvs-bounces+arthur.barrett=march-h...@nongnu.org
3. mailto:info-cvs-bounces+arthur.barrett=march-hare.com@nongnu
4. mailto:info...@nongnu.org
5. mailto:jhysl...@dreampossible.ca
6. http://www.dreampossible.ca/
7. http://gpgtools.org/
8. http://www.enigmail.net/
9. http://www.dreampossible.ca/
10. http://gpgtools.org/
11. http://www.enigmail.net/

rush

unread,
Aug 21, 2013, 10:43:39 AM8/21/13
to info...@nongnu.org
Hi,

е║

Finally I found the root.

It looks like a limitation in 32bit version. I tried to make the same
operation on another host with 64bit cvs and it finished successfully.

I changed 64bit cvs to 32bit and it failed again.

--
wbr,
rush.

е║

е║

21.08.2013, 08:55, "rush" <in...@irush.su>:

Hi,

Thanks for your reply.

е║

Is the repository mounted on a shared drive?

Repository files are on nfs drive.

Check the sticky tags on the file to ensure it has the binary tag
applied (-kb).

Yes, the file has binary tag. In cvs log I can find :
е║е║е║ keyword substitution: b

е║

--
wbr,
rush.

е║

е║

21.08.2013, 07:40, "Jim Hyslop" <[1]jhysl...@dreampossible.ca>:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 13-08-20 5:12 AM, rush wrote:

е║Hi,
е║I'm facing to a strange problem: cvs corrupts rcs file while I'm
е║trying to tag it.

[...]>

е║Is there any way to fix that thing?

Is the repository mounted on a shared drive?
Check the sticky tags on the file to ensure it has the binary tag
applied (-kb).
- --
Jim Hyslop
Dreampossible: Better software. Simply.
е║е║е║е║[2]http://www.dreampossible.ca
е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║Consulting * Mentoring * Training in
е║е║е║е║C/C++ * OOD * SW Development & Practices * Version Management
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: GPGTools - [3]http://gpgtools.org
Comment: Using GnuPG with undefined - [4]http://www.enigmail.net/
iEYEARECAAYFAlIUNq4ACgkQLdDyDwyJw+OZYwCgm70Y8c79VNWME4ep3UBeZVKj
hQoAn0r8e2FVsRCawKWybZ74MriRI8gv
=m6Vc
-----END PGP SIGNATURE-----

References

1. mailto:jhysl...@dreampossible.ca
2. http://www.dreampossible.ca/
3. http://gpgtools.org/
4. http://www.enigmail.net/

Arthur Barrett

unread,
Aug 23, 2013, 1:12:46 AM8/23/13
to rush, info...@nongnu.org

Thanks for sending that - I don't maintain CVS 1.x (I focus on the 2.x and 3.x code that was forked) so I won't be looking at this issue, but the trace and diagnostics will be useful for whoever does.

Can you also send through the package info for the 32 and 64 bit binaries?

eg: if you compiled them from source, the config.log files. if you are using an RPM - where did it come from?

Particularly interested in:
- system and system version it was compiled on
- compiler it was built with and version
- configuration options (./configure) and resulting compiler options/libraries

Finally if you have time please test the more recent CVS 1.12.12 or 1.12.13 release (x32 and x64) and advise if that exhibits the same problem.
1.12.13 release 27-Jul-2006
1.12.6 released 14-Mar-2004

Regards,


Arthur Barrett




-----Original Message-----
From: rush [mailto:in...@irush.su]
Sent: 21 August 2013 23:28
To: Arthur Barrett
Cc: info...@nongnu.org
Subject: Re: cvs corrupts file while tagging


Hi,

I moved the repository to a local drive and tried it again. cvs still corrupts file.

I have installed 32bit cvs, but my system is 64bit. I tested in on another machine with 32bit cvs and 64bit system and caught the same behaviour.
Then I switched to 64bit version and voila, everything works fine.

So it looks like a bug in 32bit version.
I'm not sure if I should attach the trace or just to provide a link to something like pastebin.
So here it is the debug output with 32bit cvs with repository on local drive: http://pastebin.com/N2tn10qk
Right after tag I get corrupted file and message on client side:
cvs [rlog aborted]: EOF while looking for end of string in RCS file /home/user/cvs_test/project/file.bin,v
--

wbr,
rush.


21.08.2013, 17:07, "Arthur Barrett" <arthur....@march-hare.com>:

Is it possible to move the repository to a 'local' disk and re-run the test?

If the problem still occurs on a 'local' disk, can you generate a trace?

cvs -ttt rtag -B -a -F -r 1.526 -b "my_tag" project/file.bin 2>&1 > /tmp/my_trace.txt

The CVS repository is like a 'database' - you wouldn't put an oracle database on an NFS share (or a Samba share) and neither should your CVS repository be there.

Regards,


Arthur

-----Original Message-----
From:
info-cvs-bounces+arthur.barrett=march-h...@nongnu.org
[mailto:info-cvs-bounces+arthur.barrett=march-hare.com@nongnu.
org] On Behalf Of rush
Sent: 21 August 2013 14:56
To: Jim Hyslop
Cc: info...@nongnu.org
Subject: Re: cvs corrupts file while tagging


Hi,

Thanks for your reply.

е║

Is the repository mounted on a shared drive?

Repository files are on nfs drive.

Check the sticky tags on the file to ensure it has the binary tag
applied (-kb).

Yes, the file has binary tag. In cvs log I can find :
е║е║е║ keyword substitution: b

е║

--
wbr,
rush.

е║

е║

21.08.2013, 07:40, "Jim Hyslop" <jhysl...@dreampossible.ca>:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 13-08-20 5:12 AM, rush wrote:

е║Hi,
е║I'm facing to a strange problem: cvs corrupts rcs file
while I'm
е║trying to tag it.

[...]>

е║Is there any way to fix that thing?

Is the repository mounted on a shared drive?
Check the sticky tags on the file to ensure it has the binary tag
applied (-kb).
- --
Jim Hyslop
Dreampossible: Better software. Simply.
е║е║е║е║[1]http://www.dreampossible.ca <http://www.dreampossible.ca/>
е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║е║Consulting * Mentoring
* Training in
е║е║е║е║C/C++ * OOD * SW Development & Practices *
Version Management
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: GPGTools - [2]http://gpgtools.org <http://gpgtools.org/>
Comment: Using GnuPG with undefined - [3]http://www.enigmail.net/
iEYEARECAAYFAlIUNq4ACgkQLdDyDwyJw+OZYwCgm70Y8c79VNWME4ep3UBeZVKj
hQoAn0r8e2FVsRCawKWybZ74MriRI8gv
=m6Vc
-----END PGP SIGNATURE-----

References

0 new messages