Solved

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

Posted on 2011-02-15
2
809 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

622 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