Centos – yum ” Segmentation fault” in centos

centosyum

While using yum commands in a centos server(2.6.18-194.el5PAE #1), it throws 'Segmentation fault'.

[root@server2 ~]# yum check-update

Loaded plugins: fastestmirror Loading
mirror speeds from cached hostfile

Segmentation fault

[root@server2 ~]# yum installlve-devel cmake

Loaded plugins:
fastestmirror Loading mirror speeds
from cached hostfile Segmentation fault

[root@server2 ~]# yum update

Loaded plugins: fastestmirror Loading

mirror speeds from cached hostfile

Segmentation fault

How can I solve this?

Best Answer

The issue was with zlib upgrade from source which is a problem affect all RHEL/CentOS/CL installations:

http://bugs.centos.org/view.php?id=4702&nbn=1

I have removed source zlib

/usr/local/lib/libz.so.1.2.5

and Changed the links

/usr/local/lib/libz.so -> libz.so.1.2.5 lrwxrwxrwx 1 root root
13 Sep 24 2010 /usr/local/lib/libz.so.1 -> libz.so.1.2.5

to point to libz.so.1.2.3. This has fixed the issue.