Bug 249531 - yum crashes on update while processing glibc conflict
Summary: yum crashes on update while processing glibc conflict
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 7
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2007-07-25 13:31 UTC by Patric Schmitz
Modified: 2014-01-21 22:59 UTC (History)
1 user (show)

Clone Of:
Last Closed: 2007-08-03 20:38:09 UTC

Attachments (Terms of Use)

Description Patric Schmitz 2007-07-25 13:31:00 UTC
Description of problem:
yum crashes when 'yum update' is called. after (many) packages are marked for an
update, it begins processing the conflict:
--> Processing Conflict: glibc-common conflicts glibc < 2.6
and crashes.

Version-Release number of selected component (if applicable):

How reproducible:
yum update

Steps to Reproduce:
1. yum update
Actual results:
---> Package firefox.i386 0: set to be updated
---> Package cvs.i386 0:1.11.22-9.1.fc7 set to be updated
--> Processing Dependency: libkcal.so.2 for package: kdesdk
--> Processing Dependency: libsexy.so.2 for package: xchat
--> Processing Conflict: glibc-common conflicts glibc < 2.6
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
  File "/usr/share/yum-cli/yummain.py", line 135, in main
    (result, resultmsgs) = base.buildTransaction() 
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 527, in
    (rescode, restring) = self.resolveDeps()
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 871, in resolveDeps
    (checkdep, missing, conflict, errormsgs) = self._processConflict(dep)
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 665, in
    except PackageSackError:
NameError: global name 'PackageSackError' is not defined

Expected results:
successful package update.

Additional info:
i have the following repos enabled:

the system was installed as fedora core 6 and then (successfully as i see it)
upgraded to fedora 7. then there was no upgrade for a longer period. now the
error occurs.

Comment 1 Jeremy Katz 2007-07-25 13:50:17 UTC
What version of glibc and glibc-common do you have installed?  

Fixed up the traceback upstream, though

Comment 2 Patric Schmitz 2007-07-27 09:33:23 UTC
glibc.i686                               2.5-10.fc6       installed
glibc.i686                               2.6-3            installed
glibc-common.i386                        2.5-10.fc6       installed
glibc-common.i386                        2.6-3            installed
glibc-devel.i386                         2.6-3            installed
glibc-headers.i386                       2.6-3            installed

ah i see the problem, there are old fc6 packages which didn't get
upgraded/removed automatically.

yum remove glibc-2.5-10.fc6 glibc-common-2.5-10.fc6

solves the problem. i could have checked that myself.. well a strange error
anyway, and yum should be able to deal with such a situation, at least without
crashing. or it should have made a clean update from fc6 to f7 in the first place..

Comment 3 Seth Vidal 2007-07-27 16:39:47 UTC
Well the crash was just an exception not being grabbed. The issue that led up to
it, however, would be nice to recreate.

Comment 4 Seth Vidal 2007-08-03 20:38:09 UTC
however, since the specific case is fixed - closing the bug

Note You need to log in before you can comment on or make changes to this bug.