[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn corrupts binary files on import

From: Sacerdoti, Federico <Federico.Sacerdoti_at_deshaw.com>
Date: 2005-09-23 20:52:31 CEST

I have seen this happen a few times. I have just started using SVN, so I
may be doing something wrong. Steps to recreate:

1. svn import mydir/, where there is a non-text file "mybin" somewhere
under mydir
2. checkout mydir to some other location.
3. inspect "mybin". It is not good.

Attached is an example of an rpm that was mangled in this way. SVN
cannot even tell the difference between a good version and the bad one.

1. cp known-good "mybin" over existing mybin-BAD
2. svn status -> nothing

Attached is an svn-corrupted rpm, and the good one.

I would love to use SVN full time (it looks great), but disrupting my
binaries is a bad sign.

-Federico

Here is the error I see when trying to install the bad one:

[root@drdab000 modules]# rpm -ivh modulesenv-3.1.6-2.src.rpm
error: modulesenv-3.1.6-2.src.rpm: MD5 digest: BAD
Expected(c25addb125d632734d820eb792853f9f) !=
(e441cb11a8b9d31029ca243d7d8f83bd)
error: modulesenv-3.1.6-2.src.rpm cannot be installed
  
More info:

[root@drdab000 modules]# md5sum modulesenv-3.1.6-2.src.rpm*
62eaebcd26bc4e1035c8ba9b61706894 modulesenv-3.1.6-2.src.rpm
ff77802ac448cb03f455c92f496761b2 modulesenv-3.1.6-2.src.rpm-BAD
[root@drdab000 modules]#

[root@drdab000 modules]# ll modulesenv-3.1.6-2.src.rpm*
-rw-r--r-- 1 root fds 334K Sep 23 14:37 modulesenv-3.1.6-2.src.rpm-BAD
-rw-r--r-- 1 root fds 334K Sep 23 14:42 modulesenv-3.1.6-2.src.rpm
[root@drdab000 modules]#

Diff from an octal dump "od -x Good" and "od -x Bad". Seems like the
difference is always between an 0xa and 0xd.

--- Good 2005-09-23 14:51:03.196445995 -0400
+++ Bad 2005-09-23 14:51:08.633012837 -0400
@@ -24,7 +24,7 @@
 0000560 0000 4f05 0000 1000 0000 6400 0000 0800
 0000600 0000 0000 0000 0100 0000 e803 0000 0600
 0000620 0000 0200 0000 0100 0000 e903 0000 0600
-0000640 0000 0a00 0000 0100 0000 ea03 0000 0600
+0000640 0000 0d00 0000 0100 0000 ea03 0000 0600
 0000660 0000 1300 0000 0100 0000 ec03 0000 0900
 0000700 0000 1500 0000 0100 0000 ed03 0000 0900
 0000720 0000 4700 0000 0100 0000 ee03 0000 0400
@@ -44,7 +44,7 @@
 0001260 0000 2a03 0000 0500 0000 0a04 0000 0400
 0001300 0000 3403 0000 0500 0000 0b04 0000 0800
 0001320 0000 4803 0000 0500 0000 0c04 0000 0800
-0001340 0000 ed03 0000 0500 0000 0a04 0000 0400
+0001340 0000 ed03 0000 0500 0000 0d04 0000 0400
 0001360 0000 f403 0000 0500 0000 0f04 0000 0800
 0001400 0000 0804 0000 0500 0000 1004 0000 0800
 0001420 0000 2104 0000 0500 0000 1504 0000 0400
@@ -173,7 +173,7 @@
 0005300 047f 3858 8259 cafe 0407 3466 0415 a005
 0005320 fd33 7dcb 45fe 0820 9ffd 69a9 a9ca 4b2a
 0005340 8b0b 77bd fab3 5183 7fec fbc8 1e3f ffa2
-0005360 4f0a ff8b d384 f9cc 130f 3b10 0087 df17
+0005360 4f0d ff8b d384 f9cc 130f 3b10 0087 df17
 0005400 713f ffb2 4e1d bf8b c9a1 9ff1 f268 45ff
 0005420 ff93 349f dcd1 3cad 9cac febd 9407 6868
 0005440 62d4 bcff a315 3bfe 7fa7 fef0 9eaf ce56
@@ -210,7 +210,7 @@
 0006420 701e ded3 7cd3 200b ea61 4720 4807 5975
 0006440 d888 63f8 76d7 a3f6 f2cf bcfc 3b71 10be
 0006460 5bf1 5583 5006 addc 9f0b 367a 0b91 ac20
-0006500 e73b 7c1a 9a0a 3842 5fe0 0970 83aa aa74
+0006500 e73b 7c1a 9a0d 3842 5fe0 0970 83aa aa74
 0006520 e45d db00 c23e 0a4d e78e c6b1 7345 06ab
 0006540 7484 1fd2 0107 7f7c 45aa 8802 f324 bd29
 0006560 1fe0 9610 76af 581b 03ab 2004 7eeb d83d
@@ -285,7 +285,7 @@
 0010700 08be af07 3ed0 f3b4 adf8 7eea f355 5d59
 0010720 871b fe7c feba 9c6e 7a02 a764 e3d7 36b0
 0010740 b5b1 7661 76aa 39f5 1e93 c73e b27e 3791
-0010760 621b 380c 0a28 d938 2d5a ccee e2ec c584
+0010760 621b 380c 0d28 d938 2d5a ccee e2ec c584
 0011000 16a5 06b3 7efc 7ca8 f158 a75b 735b 1789
 0011020 d4bb 8a4c 7759 58a2 5767 d0b1 f05e a23d
 0011040 6e85 1a1c ba53 345e ac3f c175 4f84 6068
@@ -299,7 +299,7 @@
 0011240 13ab 74fa 4e53 7771 b67c 0b05 12d8 c634
 0011260 632e 9154 6e14 e9be 59f2 1758 8139 38e6
 0011300 f29f 503c fc42 8e99 e64f c203 2bf1 1d01
-0011320 f6e6 0a4e 7e99 2a2e 3ce3 ebbc e7ce 1d93
+0011320 f6e6 0d4e 7e99 2a2e 3ce3 ebbc e7ce 1d93
 0011340 14e4 2759 5d22 b52e d650 9b86 6bd7 d0fd
 0011360 ceb5 f21b 2fb5 a590 d7d5 fb50 21a4 1ac9
 0011400 675e 8efa 843d 387d 25c0 1000 0b60 1140
@@ -346,18 +346,18 @@
 0012620 5030 55c5 71ab ed89 25de e262 71e1 81c1
 0012640 11c0 b7be 6062 6e69 265c 96f8 9ba5 3c80
 0012660 89cf e5cb 87a8 4827 7ae7 d0a0 6349 f9f8
-0012700 7e31 467e 155b ae3e 090a 7624 d6b3 9da9
+0012700 7e31 467e 155b ae3e 090d 7624 d6b3 9da9
 0012720 3886 badb b18e 208a 5576 fb45 b713 918c
 0012740 9f05 a337 63fb d07b 302f e46a 4bbd 46b1
 0012760 01b7 39f1 5a05 2935 5807 ef92 1e3d 389e
 0013000 463c 3292 adb3 65bc c35a 648e 36c2 248a
-0013020 4e50 0633 0a97 ca97 f900 2a23 44ae b05f
+0013020 4e50 0633 0d97 ca97 f900 2a23 44ae b05f

 <<modulesenv-3.1.6-2.src.rpm-BAD>> <<modulesenv-3.1.6-2.src.rpm>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Fri Sep 23 21:11:47 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.