Bug 566887

Summary: [abrt] "package-cleanup -C --orphans" crash
Product: [Fedora] Fedora Reporter: Matt McCutchen <matt>
Component: yum-utilsAssignee: Seth Vidal <skvidal>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: james.antill, maxamillion, pmatilai, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:73165f78
Fixed In Version: yum-utils-1.1.27-2.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-14 17:21:39 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
File: backtrace none

Description Matt McCutchen 2010-02-20 07:47:46 UTC
abrt 1.0.6 detected a crash.

architecture: x86_64
Attached file: backtrace
cmdline: /usr/bin/python /usr/bin/package-cleanup -C --orphans
component: yum-utils
executable: /usr/bin/package-cleanup
kernel: 2.6.31.12-174.2.19.fc12.x86_64
package: yum-utils-1.1.25-1.fc12
release: Fedora release 12 (Constantine)

How to reproduce
-----
1. Delete any per-user yum cache at /var/tmp/yum-$USER-* .
2. package-cleanup -C --orphans

Comment 1 Matt McCutchen 2010-02-20 07:47:47 UTC
Created attachment 395223 [details]
File: backtrace

Comment 2 Tim Lauridsen 2010-05-02 08:47:43 UTC
I have added some exception catching in this commit

http://yum.baseurl.org/gitweb?p=yum-utils.git;a=commitdiff;h=c5aa6845f4b0cf6ffbc0e725b9cff108e1dd3d58

[tim@hoth yum-utils]$ rm -rf /var/tmp/yum-tim-uQtoiY/
[tim@hoth yum-utils]$ ./package-cleanup.py -C --orphans
Loaded plugins: presto, refresh-packagekit, remove-with-leaves
Error: Cannot access repository dir /var/tmp/yum-tim-bPtiE_/i386/13/adobe-linux-i386

So now it dont blowup but give you and error

The error is ok, because you cant use the cache if there is no cache, but maybe it should be a little better message.

Comment 3 Matt McCutchen 2010-05-06 03:28:56 UTC
(In reply to comment #2)
> The error is ok, because you cant use the cache if there is no cache

No, it should use the system-wide cache like "yum -C" does.

Comment 4 Fedora Update System 2010-06-06 13:45:12 UTC
yum-utils-1.1.27-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/yum-utils-1.1.27-1.fc13

Comment 5 Fedora Update System 2010-06-08 19:35:39 UTC
yum-utils-1.1.27-2.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update yum-utils'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/yum-utils-1.1.27-2.fc13

Comment 6 Fedora Update System 2010-06-14 17:20:34 UTC
yum-utils-1.1.27-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Matt McCutchen 2010-07-17 05:00:21 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > The error is ok, because you cant use the cache if there is no cache
> 
> No, it should use the system-wide cache like "yum -C" does.    

This is now bug 615559.