Solved

yum update xxx  & firefox  fail with segmentation fault on Linux RHES 4.x

Posted on 2011-02-15
2
799 Views
Last Modified: 2012-05-11

My RHES 4.2 box could reach the clam site (ie firewall permitted correctly) :
# telnet www.clamav.net 80
Trying 194.109.142.194...
Connected to www.clamav.net (194.109.142.194).
Escape character is '^]'.

Whenever I tried  "yum update clam" run from root, it wud give  
"segmentation fault" - I've tried restarting clamd (/etc/init.d/clamd restart)
& repeat the update but still getting the same error:

# yum list clamav
Setting up repositories
Segmentation fault
[root@clamav]# yum update clamav
Setting up Update Process
Setting up repositories
Segmentation fault
[root@clamav]# rpm -qa | grep clam
clamav-milter-0.96.1-1.el4.rf
clamav-db-0.96.1-1.el4.rf
clamav-0.96.1-1.el4.rf
clamd-0.96.1-1.el4.rf
#

# /etc/init.d/clamd restart
Stopping Clam AntiVirus Daemon:                            [  OK  ]
Starting Clam AntiVirus Daemon:                            [  OK  ]


From /var/log/messages, I got the following :

Feb  9 16:25:02 hostname dbus: Can't send to audit system: USER_AVC pid=2948 uid=81 loginuid=-1 message=avc:  denied  { send_msg } for  scontext=user_u:system_r:unconfined_t tcontext=user_u:system_r:initrc_t tclass=dbus
[root@hostname log]# vi messages
Feb  6 04:45:01 hostname crond(pam_unix)[30869]: session opened for user root by (uid=0)
Feb  6 04:45:01 hostname freshclam[30874]: ClamAV update process started at Sun Feb  6 04:45:01 2011
Feb  6 04:45:01 hostname freshclam[30874]: Reading CVD header (main.cvd):
Feb  6 04:45:01 hostname crond(pam_unix)[30868]: session closed for user root
Feb  6 04:45:01 hostname freshclam[30874]: Can't get information about db.sg.clamav.net: Name or service not known
Feb  6 04:45:01 hostname freshclam[30874]: Can't read main.cvd header from db.sg.clamav.net (IP: )
Feb  6 04:45:01 hostname freshclam[30874]: Trying again in 5 secs...
Feb  6 04:45:06 hostname dbus: Can't send to audit system: USER_AVC pid=2948 uid=81 loginuid=-1 message=avc:  denied  { send_msg } for  scontext=user_u:system_r:unconfined_t tcontext=user_u:system_r:initrc_t tclass=dbus
Feb  6 04:45:06 hostname freshclam[30874]: ClamAV update process started at Sun Feb  6 04:45:06 2011
Feb  6 04:45:06 hostname freshclam[30874]: Reading CVD header (main.cvd):
Feb  6 04:45:06 hostname freshclam[30874]: Can't get information about db.sg.clamav.net: Name or service not known
Feb  6 04:45:06 hostname freshclam[30874]: Can't read main.cvd header from db.sg.clamav.net (IP: )
Feb  6 04:45:06 hostname freshclam[30874]: Trying again in 5 secs...
Feb  6 04:45:11 hostname dbus: Can't send to audit system: USER_AVC pid=2948 uid=81 loginuid=-1 message=avc:  denied  { send_msg } for  scontext=user_u:system_r:unconfined_t tcontext=user_u:system_r:initrc_t tclass=dbus


I've used "rpm -e yum... " to uninstall, download a fresh copy of yum rpm package
& reinstall  (ie "rpm -i ./yumXXX.rpm ) : the reinstallation completed without error.

However, when "yum update clamav" is run again, it still gave "segmentation fault".

i've also tried to launch firefox browser & it can't launch too (giving segmentation fault
too) : previously firefox could launch.  However Konqueror browser could launch fine.

What's the segmentation fault about ?  Why is it I could launch firefox browser
previously but not this time?

"free -m" showed there's sufficient memory.


Let me know any further information needed
0
Comment
Question by:sunhux
2 Comments
 
LVL 7

Accepted Solution

by:
namol earned 500 total points
ID: 34897713
Have you tried deleting the rpm db files, /var/lib/rpm/__db.001 __db.002 etc, then running a rpm --rebuilddb and then trying the yum update?
0
 

Author Closing Comment

by:sunhux
ID: 35027441
OK
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question