Bug 250908 - yum crash with empty repository
Summary: yum crash with empty repository
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 8
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2007-08-05 00:39 UTC by Ed Swierk
Modified: 2014-01-21 22:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-12-06 15:44:15 UTC
Type: ---

Attachments (Terms of Use)
Fix for empty repo crash (997 bytes, patch)
2007-08-05 00:39 UTC, Ed Swierk
no flags Details | Diff
Traceback (3.30 KB, text/plain)
2007-08-05 00:41 UTC, Ed Swierk
no flags Details

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:

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]

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?

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

- yum install yum-priorities

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


- 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.

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