Yum Segmentation fault

General support questions including new installations
Post Reply
AaronT
Posts: 1
Joined: 2010/09/10 22:21:09

Yum Segmentation fault

Post by AaronT » 2010/09/10 22:34:05

I am looking for some help tracking a problem down. Yum was working fine last time I used it, back in July, but now it crashes when/after it loads the repositories.

I have tried:
rpm --initdb
rpm --rebuilddb
yum clean all
removed extra repos in /etc/yum.repos.d
removed /var/cache/yum
removed and reinstalled yum and yum-metadata-parser from rpms

# rpm -qa | grep yum
yum-2.4.3-4.el4.centos
yum-metadata-parser-1.0-8.el4.centos

Basic command:
# yum check-update
Setting up repositories
Segmentation fault

With debug:
# yum -d3 check-update
Yum Version: 2.4.3
COMMAND: yum -d3
Installroot: /
Setting up repositories
Baseurl(s) for repo: ['http://mirror.vcu.edu/pub/gnu+linux/centos/4.8/updates/i386/', 'http://hpc.arc.georgetown.edu/mirror/centos/4.8/updates/i386/', 'http://mirror.sanctuaryhost.com/centos/4.8/updates/i386/', 'http://mirror.stanford.edu/yum/pub/centos/4.8/updates/i386/', 'http://www.ontime1405.com/centos/4.8/updates/i386/', 'http://mirrors.usc.edu/pub/linux/distributions/centos/4.8/updates/i386/', 'http://mirror.atlanticmetro.net/centos/4.8/updates/i386/', 'http://mirror.ubiquityservers.com/centos/4.8/updates/i386/', 'http://mirror.cs.vt.edu/pub/CentOS/4.8/updates/i386/']
Segmentation fault

Last few lines of strace:
gettimeofday({1284157622, 15038}, NULL) = 0
gettimeofday({1284157622, 15126}, NULL) = 0
open("//var/cache/yum/update/repomd.xml", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 6
fstat64(6, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
select(6, [5], NULL, NULL, {30, 0}) = 1 (in [5], left {30, 0})
recv(5, "<?xml version=\"1.0\" encoding=\"UT"..., 951, 0) = 951
gettimeofday({1284157622, 15671}, NULL) = 0
fstat64(6, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7a6f000
write(6, "<?xml version=\"1.0\" encoding=\"UT"..., 951) = 951
close(6) = 0
munmap(0xb7a6f000, 4096) = 0
time(NULL) = 1284157622
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=811, ...}) = 0
utimes("//var/cache/yum/update/repomd.xml", {{1283984907, 0}, {1283984907, 0}}) = 0
stat64("//var/cache/yum/update/repomd.xml", {st_mode=S_IFREG|0644, st_size=951, ...}) = 0
stat64("//var/cache/yum/update/repomd.xml", {st_mode=S_IFREG|0644, st_size=951, ...}) = 0
stat64("//var/cache/yum/update/repomd.xml", {st_mode=S_IFREG|0644, st_size=951, ...}) = 0
open("//var/cache/yum/update/repomd.xml", O_RDONLY|O_LARGEFILE) = 6
_llseek(6, 0, [0], SEEK_CUR) = 0
brk(0x9309000) = 0x9309000
read(6, "<?xml version=\"1.0\" encoding=\"UT"..., 8192) = 951
read(6, "", 7241) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


Any help would be appreciated.

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

Yum Segmentation fault

Post by pschaff » 2010/09/11 18:08:31

Welcome to the CentOS fora. The following reading is recommended for new users:
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14274&forum=47]Readme First[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14273&forum=47]Where to Find Answers[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=25128&forum=47]How to provide information about your system[/url]

No clear answer is obvious to me. I'd try reinstalling python, python-elementtree, python-sqlite, python-urlgrabber, and rpm-python (and running "yum update" much more frequently).

ShawnT
Posts: 1
Joined: 2010/09/16 20:26:09
Contact:

Re: Yum Segmentation fault

Post by ShawnT » 2010/09/16 20:47:39

Hello,

I am experiencing the same issues as Aaron.

rpm -qa |grep yum
yum-2.4.3-4.el4.centos
yum-metadata-parser-1.0-8.el4.centos


strace results of yum update -

open("//var/cache/yum/base/repomd.xml", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
select(5, [4], NULL, NULL, {30, 0}) = 1 (in [4], left {30, 0})
recvfrom(4, "<?xml version=\"1.0\" encoding=\"UT"..., 1144, 0, NULL, NULL) = 1144
fstat(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9b299000
write(5, "<?xml version=\"1.0\" encoding=\"UT"..., 1144) = 1144
close(5) = 0
munmap(0x2a9b299000, 4096) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0
utimes("//var/cache/yum/base/repomd.xml", {{1249395771, 0}, {1249395771, 0}}) = 0
stat("//var/cache/yum/base/repomd.xml", {st_mode=S_IFREG|0644, st_size=1144, ...}) = 0
stat("//var/cache/yum/base/repomd.xml", {st_mode=S_IFREG|0644, st_size=1144, ...}) = 0
stat("//var/cache/yum/base/repomd.xml", {st_mode=S_IFREG|0644, st_size=1144, ...}) = 0
open("//var/cache/yum/base/repomd.xml", O_RDONLY) = 5
lseek(5, 0, SEEK_CUR) = 0
brk(0x92a000) = 0x92a000
read(5, "<?xml version=\"1.0\" encoding=\"UT"..., 8192) = 1144
read(5, "", 7048) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


May want to bump this to bugs.centos.org?

Please advise.

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

Re: Yum Segmentation fault

Post by pschaff » 2010/09/17 12:45:24

Welcome to the CentOS fora. The following reading is recommended for new users:
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14274&forum=47]Readme First[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14273&forum=47]Where to Find Answers[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=25128&forum=47]How to provide information about your system[/url]

Your issue appears similar to [b]AaronT[/b]'s but details differ. This is still thread hijacking as explained above.

The OP never came back to say if the error persisted after the suggested manual package replacement. Please start a new topic to get the appropriate attention for your issue, referencing this one for context if required. If you feel you have discovered bug, then please [url=http://bugs.centos.org/main_page.php]report[/url] it with appropriate details, including CentOS release and package versions involved.

Post Reply

Return to “CentOS 4 - General Support”