Bug 250908

Summary: yum crash with empty repository
Product: [Fedora] Fedora Reporter: Ed Swierk <eswierk>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 8CC: james.antill
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-12-06 15:44:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fix for empty repo crash
none
Traceback none

Description Ed Swierk 2007-08-05 00:39:59 UTC
yum 3.2.1-1.fc7 crashes due to infinite recursion if run against a repository
containing no rpms.

A patch fixing the bug is attached.

(This problem was reported upstream about a month ago:
https://devel.linux.duke.edu/bugzilla/show_bug.cgi?id=759)

Comment 1 Ed Swierk 2007-08-05 00:39:59 UTC
Created attachment 160705 [details]
Fix for empty repo crash

Comment 2 Ed Swierk 2007-08-05 00:41:08 UTC
Created attachment 160706 [details]
Traceback

Comment 3 Seth Vidal 2007-08-08 06:20:40 UTC
1. I'm sorry, somehow I never got a notice about this bug at linux.duke.edu
bugzilla. That bz instance is not a happy one.

2. I can't figure out a way to replicate this bug. I've tested with 3.2.2 and
current development and I can't make it happen. 

Can you help me with a test case?
thanks


Comment 4 Ed Swierk 2007-08-08 06:37:05 UTC
Woops, I forgot to mention that this only occurs with the priorities plugin
enabled (I noted this in the yum bugzilla report but forgot to copy it over to
this one...).

I'll try to come up with a concise test case tomorrow.


Comment 5 Ed Swierk 2007-08-18 00:01:46 UTC
Here's the easiest way to reproduce the crash on a freshly-installed Fedora 7
system:

- yum install yum-priorities

- edit /etc/yum/plugins.d/priorities.conf:

  [main]
  enabled=1
  check_obsoletes=1

- yum --disablerepo=* update

This is obviously a contrived case, but the crash also occurs if all the enabled
repositories happen to contain no packages.


Comment 6 Ed Swierk 2007-11-15 04:30:04 UTC
Ditto on F8.


Comment 7 Seth Vidal 2007-12-06 15:44:15 UTC
I can't make this happen on 3.2.8 with priorties installed.

# yum --disablerepo='*' --enablerepo=empty update
Setting up Update Process
No Packages marked for Update


try to replicate this on 3.2.8 in f8 updates-testing or updates and reopen if it
doesn't fix it - but closing this works for me for now.