signal 11 caught by ps | segmentation fault
If you ever came across “segmentation fault” message in linux [in my case CentOS/RHEL], you know how annoying it can be. Basically it throws every time you invoke “ps | top | killall” – i.e any process related command.
Googleing gave me couple of tips. cyberciti, took my attention.
Since “ps” started to gave me the trouble, i decided to upgrade the “ps”
“ps” comes under a package, so fist i had to locate the package name which provide “ps”.
For that again i had to locate the “ps” executable :-
[root@server1 ~]# whereis ps
ps: /bin/ps /opt/mandriva_root/bin/ps /usr/share/man/man1p/ps.1p.gz
Then i locate the package name :-
[root@server1 ~]# rpm -qf /bin/ps
procps-3.2.7-11.1.el5
The procps package contains a set of system utilities that provide system information.
To update “procps” :-
[root@server1 ~]# yum update procps
“procps” update did the trick for me.
BR.
Perfect fix for me! Odd that ps would come with a seg fault out of the box though. Might it have been corrupt system files that ps uses and that were replaced with the update?