Bug 977661
Summary: | [abrt] Ctrl+C ends up with a TypeError traceback involving Base.__exit__() and Repo._handle_load() | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Maciek Borzecki <maciek.borzecki> | ||||||||
Component: | dnf | Assignee: | Ales Kozumplik <akozumpl> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | unspecified | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 19 | CC: | akozumpl, jzeleny, maciek.borzecki, montosh.bisht, pnemade | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | x86_64 | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | abrt_hash:a1b5191f842e217af8f127198c7e5c8ac2beb8f9 | ||||||||||
Fixed In Version: | hawkey-0.3.16-1.git4e79abc.fc19 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2013-08-02 03:28:03 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: | |||||||||||
Bug Depends On: | 977803 | ||||||||||
Bug Blocks: | |||||||||||
Attachments: |
|
Description
Maciek Borzecki
2013-06-25 06:15:28 UTC
Created attachment 764928 [details]
File: backtrace
Created attachment 764929 [details]
File: core_backtrace
Created attachment 764930 [details]
File: environ
(In reply to Maciek Borzecki from comment #0) > Description of problem: > Pressed ^C while dnf was updating cache > Hello, Do you mean you pressed ^C on a previous run when DNF was downloading the cache or you pressed ^C on the run that then ended with this traceback? Thank you! ^C was pressed during the run that resulted in backtrace. Quick way to reproduce the problem is to run for instance 'dnf check-update' and press ^C right away, even before the names of repositories are printed. Hope that helps [mborzecki@COMP_006_THK_mborzecki:~]$ sudo dnf history BDB2053 Freeing read locks for locker 0x1e25: 1071/140545094014976 BDB2053 Freeing read locks for locker 0x1e26: 1071/140545094014976 BDB2053 Freeing read locks for locker 0x1e27: 1071/140545094014976 BDB2053 Freeing read locks for locker 0x1e28: 1071/140545094014976 as a result, locks on rpm DB were not cleaned up Thanks! Reproducible 3/5 times by pressing ^C 0.5s after executing a DNF command. The traceback we are seeing is mangled, the exception is not really triggered at the time of base.__exit__. Through some experimentation I got this traceback: ^CTraceback (most recent call last): File "/home/akozumpl/dnf/dnf/cli/main.py", line 63, in main return _main(base, args) File "/home/akozumpl/dnf/dnf/cli/main.py", line 138, in _main result, resultmsgs = cli.run() File "/home/akozumpl/dnf/dnf/cli/cli.py", line 1295, in run load_available_repos=lar) File "/home/akozumpl/dnf/dnf/yum/base.py", line 220, in activate_sack self._add_repo_to_sack(r.id) File "/home/akozumpl/dnf/dnf/yum/base.py", line 131, in _add_repo_to_sack repo.load() File "/home/akozumpl/dnf/dnf/repo.py", line 364, in load if self.metadata or self._try_cache(): File "/home/akozumpl/dnf/dnf/repo.py", line 253, in _try_cache self.metadata = self._handle_load(handle) File "/home/akozumpl/dnf/dnf/repo.py", line 198, in _handle_load return Metadata(result, handle) File "/home/akozumpl/dnf/dnf/repo.py", line 102, in __init__ self._mirrors = handle.mirrors[:] TypeError: 'NoneType' object has no attribute '__getitem__' It could be some weird ^C vs. librepo interaction. > It could be some weird ^C vs. librepo interaction. Which is the case indeed. Opened bug 977803. with bug 977803 resolved in librepo upstream this only waits for retesting and building DNF against the new version. I'll try to remember it before making the next DNF build. *** Bug 986480 has been marked as a duplicate of this bug. *** Fixed in dnf-0.3.10. hawkey-0.3.16-1.git4e79abc.fc19, dnf-0.3.10-1.giteb9dddb.fc19, librepo-0.0.5-2.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/dnf-0.3.10-1.giteb9dddb.fc19,librepo-0.0.5-2.fc19,hawkey-0.3.16-1.git4e79abc.fc19 Package hawkey-0.3.16-1.git4e79abc.fc19, dnf-0.3.10-1.giteb9dddb.fc19, librepo-0.0.5-2.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing hawkey-0.3.16-1.git4e79abc.fc19 dnf-0.3.10-1.giteb9dddb.fc19 librepo-0.0.5-2.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-13415/dnf-0.3.10-1.giteb9dddb.fc19,librepo-0.0.5-2.fc19,hawkey-0.3.16-1.git4e79abc.fc19 then log in and leave karma (feedback). hawkey-0.3.16-1.git4e79abc.fc19, dnf-0.3.10-1.giteb9dddb.fc19, librepo-0.0.5-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |