[SOLVED] yum segfault/core dump

Issues related to software problems.
jw00dy
Posts: 22
Joined: 2010/05/25 05:08:21
Location: Utah, U.S.A.
Contact:

[SOLVED] yum segfault/core dump

Post by jw00dy » 2010/05/25 05:30:37

I am trying to figure out why yum on my server isn't working.

Whenever I run a yum update it fails with a segmentation fault.

here is my getinfo.sh information:

[code]
== BEGIN uname -rmi ==
2.6.18-194.3.1.el5 x86_64 x86_64
== END uname -rmi ==

== BEGIN rpm -q centos-release ==
centos-release-5-4.el5.centos.1
== END rpm -q centos-release ==

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

== BEGIN rpm -q yum rpm python ==
yum-3.2.22-26.el5.centos
rpm-4.4.2.3-18.el5
python-2.4.3-27.el5
== END rpm -q yum rpm python ==

== BEGIN ls /etc/yum.repos.d ==
CentOS-Base.repo
CentOS-Media.repo
mirrors-rpmforge
rpmforge.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

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

# Default.
# installonly_limit = 3

# 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 ==
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.hivelocity.net
* extras: mirror.highspeedweb.net
* updates: mirror.cogentco.com
./getinfo.sh: line 72: 5733 Segmentation fault (core dumped) yum repolist all
== END yum repolist all ==

== BEGIN sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==
priority = 1 [addons]
priority = 1 [base]
priority = 1 [extras]
priority = 1 [updates]
priority = 2 [centosplus]
priority = 2 [contrib]
priority = 10 [rpmforge]
== END sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==

== BEGIN cat /etc/fstab ==
LABEL=/ / ext3 defaults,usrquota,grpquota 1 1
LABEL=/home /home ext3 defaults,usrquota,grpquota,nosuid 1 2
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda6 swap swap defaults 0 0
LABEL=/tmp /tmp ext3 rw,nosuid,nodev,noexec 1 2
tmpfs /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
== END cat /etc/fstab ==

== BEGIN df -h ==
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 25G 1.1G 22G 5% /
/dev/sda8 357G 24G 315G 8% /home
/dev/sda5 25G 2.5G 21G 11% /usr
/dev/sda3 25G 1.2G 22G 5% /var
/dev/sda1 487M 52M 410M 12% /boot
/dev/sda7 4.9G 139M 4.5G 3% /tmp
tmpfs 3.9G 0 3.9G 0% /dev/shm
== END df -h ==

== BEGIN fdisk -l ==

Disk /dev/sda: 498.9 GB, 498999492608 bytes
255 heads, 63 sectors/track, 60666 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 514048+ 83 Linux
/dev/sda2 65 3328 26218080 83 Linux
/dev/sda3 3329 6592 26218080 83 Linux
/dev/sda4 6593 60666 434349405 5 Extended
/dev/sda5 6593 9856 26218048+ 83 Linux
/dev/sda6 9857 11945 16779861 82 Linux swap / Solaris
/dev/sda7 11946 12598 5245191 83 Linux
/dev/sda8 12599 60666 386106178+ 83 Linux
== END fdisk -l ==

== BEGIN blkid ==
/dev/sda8: LABEL="/home" UUID="701b2088-cb8d-423c-af85-d5142b4ba7e5" TYPE="ext3"
/dev/sda7: LABEL="/tmp" UUID="ee87b47f-111d-4762-ab93-6d0246393f43" TYPE="ext3"
/dev/sda6: LABEL="SWAP-sda6" TYPE="swap"
/dev/sda5: LABEL="/usr" UUID="9b5433b8-ad3c-4483-b170-f897dfb83454" TYPE="ext3"
/dev/sda3: LABEL="/var" UUID="a85b4ad8-c833-4abb-8367-44e8179d2a01" TYPE="ext3"
/dev/sda2: LABEL="/" UUID="bfdcf41f-823d-4907-807e-fa7027f61da4" TYPE="ext3"
/dev/sda1: LABEL="/boot" UUID="2fa3db71-69c1-4f9a-8e93-25fd88b2ec74" TYPE="ext3"
== END blkid ==

== BEGIN rpm -qa kernel\* | sort ==
kernel-2.6.18-164.10.1.el5
kernel-2.6.18-164.11.1.el5
kernel-2.6.18-164.15.1.el5
kernel-2.6.18-164.6.1.el5
kernel-2.6.18-164.9.1.el5
kernel-2.6.18-194.3.1.el5
kernel-2.6.18-194.el5
kernel-devel-2.6.18-164.10.1.el5
kernel-devel-2.6.18-164.11.1.el5
kernel-devel-2.6.18-164.15.1.el5
kernel-devel-2.6.18-164.6.1.el5
kernel-devel-2.6.18-164.9.1.el5
kernel-devel-2.6.18-194.3.1.el5
kernel-devel-2.6.18-194.el5
kernel-headers-2.6.18-194.3.1.el5
== END rpm -qa kernel\* | sort ==

== BEGIN lspci ==
00:00.0 Host bridge: Intel Corporation 3200/3210 Chipset DRAM Controller (rev 01)
00:01.0 PCI bridge: Intel Corporation 3200/3210 Chipset Host-Primary PCI Express Bridge (rev 01)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IR (ICH9R) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
00:1f.6 Signal processing controller: Intel Corporation 82801I (ICH9 Family) Thermal Subsystem (rev 02)
01:00.0 PCI bridge: Intel Corporation 80333 Segment-A PCI Express-to-PCI Express Bridge
01:00.2 PCI bridge: Intel Corporation 80333 Segment-B PCI Express-to-PCI Express Bridge
02:0e.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS
0d:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
11:04.0 VGA compatible controller: XGI Technology Inc. (eXtreme Graphics Innovation) Z9s/Z9m (XG21 core)
== END lspci ==

== BEGIN lspci -n ==
00:00.0 0600: 8086:29f0 (rev 01)
00:01.0 0604: 8086:29f1 (rev 01)
00:1a.0 0c03: 8086:2937 (rev 02)
00:1a.1 0c03: 8086:2938 (rev 02)
00:1a.2 0c03: 8086:2939 (rev 02)
00:1a.7 0c03: 8086:293c (rev 02)
00:1c.0 0604: 8086:2940 (rev 02)
00:1c.4 0604: 8086:2948 (rev 02)
00:1d.0 0c03: 8086:2934 (rev 02)
00:1d.1 0c03: 8086:2935 (rev 02)
00:1d.2 0c03: 8086:2936 (rev 02)
00:1d.7 0c03: 8086:293a (rev 02)
00:1e.0 0604: 8086:244e (rev 92)
00:1f.0 0601: 8086:2916 (rev 02)
00:1f.2 0101: 8086:2920 (rev 02)
00:1f.3 0c05: 8086:2930 (rev 02)
00:1f.5 0101: 8086:2926 (rev 02)
00:1f.6 1180: 8086:2932 (rev 02)
01:00.0 0604: 8086:0370
01:00.2 0604: 8086:0372
02:0e.0 0104: 1000:0411
0d:00.0 0200: 8086:109a
11:04.0 0300: 18ca:0021
== END lspci -n ==

== BEGIN ifconfig ==
eth0 Link encap:Ethernet HWaddr 00:30:48:D5:DB:73
inet addr:76.xxx.xxx.130 Bcast:76.xxx.xxx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:77798 errors:0 dropped:0 overruns:0 frame:0
TX packets:87671 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:13187532 (12.5 MiB) TX bytes:86228919 (82.2 MiB)
Memory:dc200000-dc220000

eth0:0 Link encap:Ethernet HWaddr 00:30:48:D5:DB:73
inet addr:76.xxx.xxx.131 Bcast:76.xxx.xxx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:dc200000-dc220000

eth0:1 Link encap:Ethernet HWaddr 00:30:48:D5:DB:73
inet addr:76.xxx.xxx.132 Bcast:76.xxx.xxx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:dc200000-dc220000

eth0:2 Link encap:Ethernet HWaddr 00:30:48:D5:DB:73
inet addr:76.xxx.xxx.133 Bcast:76.xxx.xxx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:dc200000-dc220000

eth0:3 Link encap:Ethernet HWaddr 00:30:48:D5:DB:73
inet addr:76.xxx.xxx.134 Bcast:76.xxx.xxx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:dc200000-dc220000

eth0:4 Link encap:Ethernet HWaddr 00:30:48:D5:DB:73
inet addr:76.xxx.xxx.135 Bcast:76.xxx.xxx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:dc200000-dc220000

eth0:5 Link encap:Ethernet HWaddr 00:30:48:D5:DB:73
inet addr:76.xxx.xxx.238 Bcast:76.xxx.xxx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:dc200000-dc220000

eth0:6 Link encap:Ethernet HWaddr 00:30:48:D5:DB:73
inet addr:76.xxx.xxx.253 Bcast:76.xxx.xxx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:dc200000-dc220000

eth0:7 Link encap:Ethernet HWaddr 00:30:48:D5:DB:73
inet addr:76.xxx.xxx.254 Bcast:76.xxx.xxx.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Memory:dc200000-dc220000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:30601 errors:0 dropped:0 overruns:0 frame:0
TX packets:30601 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8792523 (8.3 MiB) TX bytes:8792523 (8.3 MiB)

== END ifconfig ==

== BEGIN route -n ==
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
76.xxx.xxx.130 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
76.xxx.xxx.131 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
76.xxx.xxx.132 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
76.xxx.xxx.133 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
76.xxx.xxx.134 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
76.xxx.xxx.135 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
76.xxx.xxx.254 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
76.xxx.xxx.238 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
76.xxx.xxx.253 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
76.xxx.xxx.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 76.xxx.xxx.1 0.0.0.0 UG 0 0 0 eth0
== END route -n ==

== BEGIN cat /etc/resolv.conf ==
nameserver 76.xxx.xxx.194
nameserver 76.xxx.xxx.43
nameserver 76.xxx.xxx.24
== 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 -i network ==
NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
== END chkconfig --list | grep -i network ==
[/code]

here is the gdb dump that is produced.

[code]
gdb /usr/bin/python
GNU gdb Fedora (6.8-37.el5)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...
(no debugging symbols found)
(gdb) run /usr/bin/yum update yum
Starting program: /usr/bin/python /usr/bin/yum update yum
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0x2ac53d107190 (LWP 6537)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
[New Thread 0x40cd5940 (LWP 6540)]
[Thread 0x40cd5940 (LWP 6540) exited]
* base: centos.hivelocity.net
* extras: mirror.highspeedweb.net
* updates: mirror.cogentco.com

Program received signal SIGSEGV, Segmentation fault.
0x00002ac53ce28a6a in strncmp () from /lib64/libc.so.6
(gdb) bt full
#0 0x00002ac53ce28a6a in strncmp () from /lib64/libc.so.6
No symbol table info available.
#1 0x00002ac5466bf319 in __xmlParserInputBufferCreateFilename (URI=0x139cefa4 "/var/cache/yum/base/primary.xml.gz",
enc=XML_CHAR_ENCODING_NONE) at xmlIO.c:2476
buff4 = "<?xm"
ret = (xmlParserInputBuffer *) 0x13a46770
i = <value optimized out>
context = (void *) 0x13a47cd0
#2 0x00002ac5466976cb in xmlNewInputFromFile__internal_alias (ctxt=0x13a47a00, filename=0x139cefa4 "/var/cache/yum/base/primary.xml.gz")
at parserInternals.c:1463
buf = <value optimized out>
inputStream = (xmlParserInput *) 0x0
directory = <value optimized out>
URI = <value optimized out>
#3 0x00002ac54669b534 in xmlCreateURLParserCtxt__internal_alias (filename=0x139cefa4 "/var/cache/yum/base/primary.xml.gz", options=0)
at parser.c:13194
ctxt = (xmlParserCtxt *) 0x13a47a00
inputStream = <value optimized out>
directory = <value optimized out>
#4 0x00002ac5466afdcb in xmlSAXUserParseFile__internal_alias (sax=0x2ac5463baa40, user_data=0x900001c4f,
filename=0x4 <Address 0x4 out of bounds>) at parser.c:13418
ret = -1
ctxt = <value optimized out>
#5 0x00002ac5461b57eb in yum_xml_parse_primary () from /usr/lib64/python2.4/site-packages/_sqlitecache.so
No symbol table info available.
#6 0x00002ac5461b7919 in ?? () from /usr/lib64/python2.4/site-packages/_sqlitecache.so
No symbol table info available.
#7 0x00002ac5461b7be5 in ?? () from /usr/lib64/python2.4/site-packages/_sqlitecache.so
No symbol table info available.
#8 0x00002ac53c26c0ba in PyEval_EvalFrame () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#9 0x00002ac53c26bb66 in PyEval_EvalFrame () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#10 0x00002ac53c26cfe5 in PyEval_EvalCodeEx () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#11 0x00002ac53c26b73f in PyEval_EvalFrame () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#12 0x00002ac53c26cfe5 in PyEval_EvalCodeEx () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#13 0x00002ac53c26b73f in PyEval_EvalFrame () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#14 0x00002ac53c26cfe5 in PyEval_EvalCodeEx () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#15 0x00002ac53c26b73f in PyEval_EvalFrame () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#16 0x00002ac53c26cfe5 in PyEval_EvalCodeEx () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#17 0x00002ac53c223367 in ?? () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#18 0x00002ac53c20d0f0 in PyObject_Call () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#19 0x00002ac53c20dd43 in PyObject_CallFunction () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#20 0x00002ac53c235bc9 in PyObject_GenericGetAttr () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#21 0x00002ac53c268eca in PyEval_EvalFrame () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#22 0x00002ac53c26cfe5 in PyEval_EvalCodeEx () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#23 0x00002ac53c26b73f in PyEval_EvalFrame () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#24 0x00002ac53c26cfe5 in PyEval_EvalCodeEx () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#25 0x00002ac53c26b73f in PyEval_EvalFrame () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#26 0x00002ac53c26bb66 in PyEval_EvalFrame () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#27 0x00002ac53c26cfe5 in PyEval_EvalCodeEx () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#28 0x00002ac53c26b73f in PyEval_EvalFrame () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#29 0x00002ac53c26cfe5 in PyEval_EvalCodeEx () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#30 0x00002ac53c26b73f in PyEval_EvalFrame () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#31 0x00002ac53c26cfe5 in PyEval_EvalCodeEx () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#32 0x00002ac53c26d032 in PyEval_EvalCode () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#33 0x00002ac53c289729 in ?? () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#34 0x00002ac53c28abd8 in PyRun_SimpleFileExFlags () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#35 0x00002ac53c29100d in Py_Main () from /usr/lib64/libpython2.4.so.1.0
No symbol table info available.
#36 0x00002ac53cdcc994 in __libc_start_main () from /lib64/libc.so.6
No symbol table info available.
#37 0x0000000000400629 in _start ()
No symbol table info available.
(gdb)
[/code]

I have no idea how to read this though :(

I have tried to update python, I have also updated to the latest kernel, but I'm still not getting any luck. Hopefully you can read this and provide insight into how I can fix this so yum will work.

Oh and I have tried disabling some of the repo's and I did have some success with doing that, but within a few days the segfaults returned -- this time it didn't matter what was disabled.

Thanks for you help in advance.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: yum segfault/core dump

Post by pschaff » 2010/05/27 14:31:47

Nothing obvious to me. /lib64/libc.so.6 if from glibc. No problems other than with yum? What does the following show?
[code]rpm -V yum rpm python glibc[/code]

Might try manually cleaning /var/cache/yum by (carefully) doing [code]rm -rf /var/cache/yum/*[/code]

jw00dy
Posts: 22
Joined: 2010/05/25 05:08:21
Location: Utah, U.S.A.
Contact:

Re: yum segfault/core dump

Post by jw00dy » 2010/05/27 19:23:56

Yeah, yum is the only application having trouble.

rpm -V ... didn't do anything? No output at all? Not sure if that's normal.
[code]
# rpm -V yum rpm python glibc
#
[/code]

I tried manually clearing the yum cache, which cleared fine, but did not fix the yum update issue.

Anything else I can provide?

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: yum segfault/core dump

Post by pschaff » 2010/05/28 12:03:48

No output is good - means everything verified. Bad news is I'm clueless as to what the problem may be. A segfault is usually from either bad code or bad hardware. The fact that it's only happening with yum points to bad code, but it can hardly be bad coding or others would be seeing the problem. My best guess is a corrupted library somewhere, but not turned up by the verify. Let's check a few more components[code]rpm -V yum-metadata-parser python-sqlite sqlite[/code]

AkosPrime
Posts: 18
Joined: 2006/01/07 17:51:29

Re: yum segfault/core dump

Post by AkosPrime » 2010/05/28 13:42:53

Is your output similar to this:

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

cannot import name iterparse

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.3.4 (#1, Aug 8 2009, 09:55:57)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-11)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq


If so, check to see if you have modified $PYTHONPATH, as in my case:

# echo $PYTHONPATH
/usr/people/monty/pythonmodules

Now if I redefine PYTHONPATH to just about anything and try again it suddenly works:

# export PYTHONPATH=/tmp

# yum check-update
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished

device-mapper-multipath.x86_64 0.4.5-35.el4_8.3 update
initscripts.x86_64 7.93.35-1.centos4 update
iptables.x86_64 1.2.11-3.3.el4_8 update
iptables-devel.x86_64 1.2.11-3.3.el4_8 update
iptables-ipv6.x86_64 1.2.11-3.3.el4_8 update


I have no idea why, because I have the exact same setup on other machines without a problem - and I do mean exact, same h/w, same OS version, same system software, same Python setup. But for whatever reason this works for me, maybe it will help you too.

jw00dy
Posts: 22
Joined: 2010/05/25 05:08:21
Location: Utah, U.S.A.
Contact:

Re: yum segfault/core dump

Post by jw00dy » 2010/05/28 23:40:17

[quote]
pschaff wrote:
No output is good - means everything verified. Bad news is I'm clueless as to what the problem may be. A segfault is usually from either bad code or bad hardware. The fact that it's only happening with yum points to bad code, but it can hardly be bad coding or others would be seeing the problem. My best guess is a corrupted library somewhere, but not turned up by the verify. Let's check a few more components[code]rpm -V yum-metadata-parser python-sqlite sqlite[/code][/quote]
here is what I got from that command -- so everything looks good there too:
[code]
# rpm -V yum-metadata-parser python-sqlite sqlite
#
[/code]

jw00dy
Posts: 22
Joined: 2010/05/25 05:08:21
Location: Utah, U.S.A.
Contact:

Re: yum segfault/core dump

Post by jw00dy » 2010/05/28 23:49:01

[quote]
AkosPrime wrote:
Is your output similar to this:

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

cannot import name iterparse

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.3.4 (#1, Aug 8 2009, 09:55:57)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-11)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq


If so, check to see if you have modified $PYTHONPATH, as in my case:

# echo $PYTHONPATH
/usr/people/monty/pythonmodules

Now if I redefine PYTHONPATH to just about anything and try again it suddenly works:

# export PYTHONPATH=/tmp

# yum check-update
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished

device-mapper-multipath.x86_64 0.4.5-35.el4_8.3 update
initscripts.x86_64 7.93.35-1.centos4 update
iptables.x86_64 1.2.11-3.3.el4_8 update
iptables-devel.x86_64 1.2.11-3.3.el4_8 update
iptables-ipv6.x86_64 1.2.11-3.3.el4_8 update


I have no idea why, because I have the exact same setup on other machines without a problem - and I do mean exact, same h/w, same OS version, same system software, same Python setup. But for whatever reason this works for me, maybe it will help you too.[/quote]

My output actually looks like this (with the mirrors obviously different each time):
[code]
# yum check-update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.aol.com
* extras: ftp.usf.edu
* updates: mirrors.gigenet.com
Segmentation fault (core dumped)
[/code]

Interestingly though, I did check the Pythonpath and it gives me the following with a blank line... So I guess I don't have a python path? Not sure what that should be. The other CentOS box I have (not same hardware and it's not 64bit) doesn't have a path either, but yum does still work.
[code]
# echo $PYTHONPATH

#
[/code]
Thanks for your help also, I'm pretty stumped on this one.

User avatar
AlanBartlett
Forum Moderator
Posts: 9319
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: yum segfault/core dump

Post by AlanBartlett » 2010/05/29 16:02:31

[quote]
I'm pretty stumped on this one.
[/quote]
You're not the only one. :-?

Please try --

[code]
[b]yum --noplugins check-update[/b]
[/code]

jw00dy
Posts: 22
Joined: 2010/05/25 05:08:21
Location: Utah, U.S.A.
Contact:

Re: yum segfault/core dump

Post by jw00dy » 2010/05/31 06:57:38

That gave me this:
[code]
# yum --noplugins check-update
Segmentation fault (core dumped)
#
[/code]

User avatar
AlanBartlett
Forum Moderator
Posts: 9319
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: yum segfault/core dump

Post by AlanBartlett » 2010/05/31 10:51:24

Hmm. One last test, please. What is the result of --

[code]
[b]yum --noplugins --help[/b]
[/code]

Post Reply