Solved

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

Posted on 2011-02-15
2
787 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

759 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now