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:
Created attachment 160705 [details]
Fix for empty repo crash
Created attachment 160706 [details]
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?
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
I'll try to come up with a concise test case tomorrow.
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.
Ditto on F8.
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.