Discussion:
cvs corrupts file while tagging
rush
2013-08-20 09:12:13 UTC
Permalink
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
2013-08-21 03:40:30 UTC
Permalink
Post by rush
Hi,
I'm facing to a strange problem: cvs corrupts rcs file while I'm
trying to tag it.
[...]>
Post by rush
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
rush
2013-08-21 04:55:51 UTC
Permalink
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" <***@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/
rush
2013-08-21 08:38:59 UTC
Permalink
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" <***@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]***@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:***@dreampossible.ca
2. http://www.dreampossible.ca/
3. http://gpgtools.org/
4. http://www.enigmail.net/
Arthur Barrett
2013-08-21 13:07:42 UTC
Permalink
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-----
org] On Behalf Of rush
Sent: 21 August 2013 14:56
To: Jim Hyslop
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).
ššš keyword substitution: b
š
--
wbr,
rush.
š
š
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
š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/
rush
2013-08-21 13:27:31 UTC
Permalink
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" <***@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
Post by Arthur Barrett
/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-***@nongnu.org
š[mailto:[3]info-cvs-bounces+arthur.barrett=march-***@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]***@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-***@nongnu.org
3. mailto:info-cvs-bounces+arthur.barrett=march-***@nongnu
4. mailto:info-***@nongnu.org
5. mailto:***@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/
Arthur Barrett
2013-08-23 05:12:07 UTC
Permalink
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:***@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" <***@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-***@nongnu.org
[mailto:info-cvs-bounces+arthur.barrett=march-***@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" <***@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

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

Loading...