CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - Software Support
  Segmentation Fault when running wget, rpm, or yum

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  pschaff
      pschaff
Re: Segmentation Fault when running wget, rpm, or yum
#5
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
If restoration of packages fails then CentOS. The problem does not appear to be with Python directly:
# rpm -qf /usr/lib64/librpmbuild-4.4.so
rpm-libs-4.4.2.3-28.el5_8.x86_64

It is impossible to say what else may have been damaged, but there appears to be a problem with rpm-libs. Try
rpm -V rpm-libs
then perhaps
rpm -Va
but I suspect rpm may be too damaged for even those to work.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/4/12 13:26
Create PDF from Post Print
Top
  •  jeffr
      jeffr
Re: Segmentation Fault when running wget, rpm, or yum
#4
Newbie
Joined: 2012/4/12
From
Posts: 3
Hi Phil

Do you mean a fresh install of python? Or a fresh CentOs install?

Many thanks
Posted on: 2012/4/12 12:09
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Segmentation Fault when running wget, rpm, or yum
#3
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Welcome to the CentOS fora, and congratulations on being one of the select few to do the recommended reading before posting.

I'd strongly suspect New Relic, but why did you obscure important and non-sensitive information like the kernel version?

You may be able to recover by reinstalling the packages/libraries clobbered by New Relic from rescue mode, but a fresh install is probably the cleanest route to a stable system.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/4/12 12:03
Create PDF from Post Print
Top
  •  jeffr
      jeffr
Re: Segmentation Fault when running wget, rpm, or yum
#2
Newbie
Joined: 2012/4/12
From
Posts: 3
Since my previous comment I have cloned my server to experiment and now I am getting the message below. It looks like this was updated yesterday. any ideas how I can repair this?

Many thanks


There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/usr/lib64/librpmbuild-4.4.so: invalid ELF header

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Feb 22 2012, 16:05:45)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
Posted on: 2012/4/12 11:53
Create PDF from Post Print
Top
  •  jeffr
      jeffr
Segmentation Fault when running wget, rpm, or yum
#1
Newbie
Joined: 2012/4/12
From
Posts: 3
Hi

When I try to run the commands wget, rpm or yum I get the error 'Segmentation fault'.

The application on the server is still running fine. I would really appreciate any help on this as I want to avoid disrupting the application.

I have Centos 5.8, PHP 5.3.1 and I installed New Relic yesterday. This problem started 5 hours ago.

Here is the info:


Information for general problems.
== BEGIN uname -rmi ==
X.X.XX.X-XXXXXX x86_64 x86_64
== END   uname -rmi ==

== BEGIN rpm -qa \*-release\* ==
./getinfo.sh: line 89: 29797 Segmentation fault      rpm -qa \*-release\*
== END   rpm -qa \*-release\* ==

== BEGIN cat /etc/redhat-release ==
CentOS release 5.8 (Final)
== END   cat /etc/redhat-release ==

== BEGIN getenforce ==
Disabled
== END   getenforce ==

== BEGIN free -m ==
             total       used       free     shared    buffers     cached
Mem:           998        972         26          0        116        285
-/+ buffers/cache:        569        428
Swap:         2047         34       2013
== END   free -m ==

== BEGIN rpm -qa yum\* rpm-\* python | sort ==
== END   rpm -qa yum\* rpm-\* python | sort ==

== BEGIN ls /etc/yum.repos.d ==
CentOS-Base.repo
CentOS-Debuginfo.repo
CentOS-Media.repo
CentOS-Vault.repo
cloudkick.repo
epel.repo
epel-testing.repo
ius-archive.repo
ius-dev.repo
ius.repo
ius-testing.repo
newrelic.repo
== END   ls /etc/yum.repos.d ==

== BEGIN cat /etc/yum.conf ==
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
bugtracker_url=http://bugs.centos.org/yum5bug

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

installonly_limit = 5

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
== END   cat /etc/yum.conf ==

== BEGIN yum repolist all ==
./getinfo.sh: line 89: 29805 Segmentation fault      yum repolist all
== END   yum repolist all ==

== BEGIN egrep 'include|exclude' /etc/yum.repos.d/*.repo ==
== END   egrep 'include|exclude' /etc/yum.repos.d/*.repo ==

== BEGIN sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==
== END   sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==

== BEGIN cat /etc/fstab ==
/dev/sda1               /                       ext3    defaults,noatime        1 1
/dev/sda2		swap			swap	defaults	0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
== END   cat /etc/fstab ==

== BEGIN df -h ==
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              38G  2.4G   34G   7% /
tmpfs                 500M     0  500M   0% /dev/shm
== END   df -h ==

== BEGIN fdisk -l ==
Disk /dev/sda1 doesn't contain a valid partition table
Disk /dev/sda2 doesn't contain a valid partition table

Disk /dev/sda1: 40.8 GB, 40802189312 bytes
255 heads, 63 sectors/track, 4960 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes


Disk /dev/sda2: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

== END   fdisk -l ==

== BEGIN parted -l ==
./getinfo.sh: line 89: parted: command not found
== END   parted -l ==

== BEGIN blkid ==
/dev/sda2: UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX" TYPE="swap" 
/dev/sda1: UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX" TYPE="ext3" 
== END   blkid ==

== BEGIN cat /proc/mdstat ==
cat: /proc/mdstat: No such file or directory
== END   cat /proc/mdstat ==

== BEGIN pvs ==
== END   pvs ==

== BEGIN vgs ==
  No volume groups found
== END   vgs ==

== BEGIN lvs ==
  No volume groups found
== END   lvs ==

== BEGIN rpm -qa kernel\* | sort ==
== END   rpm -qa kernel\* | sort ==

== BEGIN lspci -nn ==
./getinfo.sh: line 89: lspci: command not found
== END   lspci -nn ==

== BEGIN lsusb ==
./getinfo.sh: line 89: lsusb: command not found
== END   lsusb ==

== BEGIN rpm -qa kmod\* kmdl\* ==
./getinfo.sh: line 89: 29823 Segmentation fault      rpm -qa kmod\* kmdl\*
== END   rpm -qa kmod\* kmdl\* ==

== BEGIN ifconfig -a ==
eth0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX  
          inet addr:XX.XX.XX.XX  Bcast:XX.XX.XX.XX  Mask:255.255.255.0
          inet6 addr: XXXX::XXXX:XXXX:XXXX:XXXX/XX Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:92258295 errors:0 dropped:0 overruns:0 frame:0
          TX packets:66575766 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9391956957 (8.7 GiB)  TX bytes:155079153226 (144.4 GiB)
          Interrupt:24 

eth1      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX  
          inet addr:XX.XX.XX.XX  Bcast:XX.XX.XX.XX  Mask:255.255.192.0
          inet6 addr: XXXX::XXXX:XXXX:XXXX:XXXX/XX Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:974 errors:0 dropped:0 overruns:0 frame:0
          TX packets:982 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:44864 (43.8 KiB)  TX bytes:41460 (40.4 KiB)
          Interrupt:25 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2513193 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2513193 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:901294041 (859.5 MiB)  TX bytes:901294041 (859.5 MiB)

== END   ifconfig -a ==

== BEGIN brctl show ==
./getinfo.sh: line 89: brctl: command not found
== END   brctl show ==

== BEGIN route -n ==
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
XX.XX.XX.XX     XX.XX.XX.XX         255.255.255.0   U     0      0        0 eth0
XX.XX.XX.XX    XX.XX.XX.XX     255.255.192.0   UG    0      0        0 eth1
XX.XX.XX.XX     XX.XX.XX.XX         255.255.192.0   U     0      0        0 eth1
XX.XX.XX.XX     XX.XX.XX.XX         255.255.0.0     U     0      0        0 eth1
XX.XX.XX.XX      XX.XX.XX.XX     255.240.0.0     UG    0      0        0 eth1
XX.XX.XX.XX         XX.XX.XX.XX     0.0.0.0         UG    0      0        0 eth0
== END   route -n ==

== BEGIN cat /etc/resolv.conf ==
nameserver XX.XX.XX.XX
nameserver XX.XX.XX.XX
== END   cat /etc/resolv.conf ==

== BEGIN grep net /etc/nsswitch.conf ==
#networks:   nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     
netmasks:   files
networks:   files
netgroup:   nisplus
== END   grep net /etc/nsswitch.conf ==

== BEGIN chkconfig --list | grep -Ei 'network|wpa' ==
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
== END   chkconfig --list | grep -Ei 'network|wpa' ==

Posted on: 2012/4/12 11:01
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com