[CentOS] Yum segmentation fault updating from 5.6 to 5.7

Thu Sep 15 21:45:03 UTC 2011
Sebastiano Pilla <sebastiano at datafaber.net>

Craig White wrote:
> mv /var/cache/yum/base/primary.xml.gz/sqlite /tmp
>
> and try again I suppose - yes, that file is supposed to be much larger - I suspect that it will create a new 'copy' of that file if it fails to find it.

Unfortunately yum recreates the same corrupted file, even if I move it 
out or delete it:

[root at picard ~]# yum clean all 

Loaded plugins: downloadonly, fastestmirror, priorities
Cleaning up Everything
[root at picard ~]# ll /var/cache/yum/base 

total 4.0K
drwxr-xr-x 2 root root 4.0K Sep 14 21:56 packages/
[root at picard ~]# yum update 

Loaded plugins: downloadonly, fastestmirror, priorities
Determining fastest mirrors
  * base: mirrors.ircam.fr
  * updates: mirrors.ircam.fr
base 
                                       | 1.1 kB     00:00
base/primary 
                                       | 961 kB     00:02
Segmentation fault
[root at picard ~]# ll /var/cache/yum/base
total 1000K
-rw-r--r-- 1 root root    0 Sep 15 23:43 cachecookie
-rw-r--r-- 1 root root  985 Sep 15 23:43 mirrorlist.txt
drwxr-xr-x 2 root root 4.0K Sep 14 21:56 packages/
-rw-r--r-- 1 root root 961K Sep  5 13:52 primary.xml.gz
-rw-r--r-- 1 root root  20K Sep 15 23:43 primary.xml.gz.sqlite
-rw-r--r-- 1 root root 1.2K Sep  5 13:52 repomd.xml
[root at picard ~]# rm -f /var/cache/yum/base/primary.xml.gz.sqlite
[root at picard ~]# ll /var/cache/yum/base
total 980K
-rw-r--r-- 1 root root    0 Sep 15 23:43 cachecookie
-rw-r--r-- 1 root root  985 Sep 15 23:43 mirrorlist.txt
drwxr-xr-x 2 root root 4.0K Sep 14 21:56 packages/
-rw-r--r-- 1 root root 961K Sep  5 13:52 primary.xml.gz
-rw-r--r-- 1 root root 1.2K Sep  5 13:52 repomd.xml
[root at picard ~]# yum update
Loaded plugins: downloadonly, fastestmirror, priorities
Loading mirror speeds from cached hostfile
  * base: mirrors.ircam.fr
  * updates: mirrors.ircam.fr
Segmentation fault
[root at picard ~]# ll /var/cache/yum/base
total 1000K
-rw-r--r-- 1 root root    0 Sep 15 23:43 cachecookie
-rw-r--r-- 1 root root  985 Sep 15 23:43 mirrorlist.txt
drwxr-xr-x 2 root root 4.0K Sep 14 21:56 packages/
-rw-r--r-- 1 root root 961K Sep  5 13:52 primary.xml.gz
-rw-r--r-- 1 root root  20K Sep 15 23:43 primary.xml.gz.sqlite
-rw-r--r-- 1 root root 1.2K Sep  5 13:52 repomd.xml