Bug 1040033

Summary: [abrt] yum-3.4.3-111.fc19: rpmsack.py:93:_get_hdr:PackageSackError: Rpmdb changed underneath us
Product: [Fedora] Fedora Reporter: Cysioland <cysioland>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: admiller, ffesti, firas.alkafri, packaging-team-maint, zpavlas
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/92d15c95fa689f029c1feb0b934a05f2d4400fb1
Whiteboard: abrt_hash:60f5bf3004c863303c75ad94617146a2ebafceb1
Fixed In Version: yum-3.4.3-122.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-16 07:09:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Cysioland 2013-12-10 14:57:20 UTC
Version-Release number of selected component:
yum-3.4.3-111.fc19

Additional info:
reporter:       libreport-2.1.9
cmdline:        /usr/bin/python -t /usr/share/yum-cli/completion-helper.py list all -d 0 -C
executable:     /usr/share/yum-cli/completion-helper.py
kernel:         3.11.7-200.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
rpmsack.py:93:_get_hdr:PackageSackError: Rpmdb changed underneath us

Traceback (most recent call last):
  File "/usr/share/yum-cli/completion-helper.py", line 95, in <module>
    main(sys.argv[1:])
  File "/usr/share/yum-cli/completion-helper.py", line 88, in main
    base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 569, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/completion-helper.py", line 54, in doCommand
    printPkgs(ypl.installed)
  File "/usr/share/yum-cli/completion-helper.py", line 46, in printPkgs
    if base.allowedMultipleInstalls(pkg):
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 241, in allowedMultipleInstalls
    for prov in po.provides_names:
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 675, in <lambda>
    provides_names = property(fget=lambda self: self.returnPrcoNames('provides'))
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 650, in returnPrcoNames
    data = [n for (n, f, v) in self.returnPrco(prcotype)]
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1391, in returnPrco
    self._populatePrco()
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1405, in _populatePrco
    hdr = self._get_hdr()
  File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 93, in _get_hdr
    raise Errors.PackageSackError, 'Rpmdb changed underneath us'
PackageSackError: Rpmdb changed underneath us

Local variables in innermost frame:
self: <RPMInstalledPackage : fontconfig-infinality-1-20130104_1.noarch (0x28c9450)>
mi: <rpm.mi object at 0x3624710>
ts: <rpmUtils.transaction.TransactionWrapper instance at 0x16eb908>

Comment 1 Cysioland 2013-12-10 14:57:26 UTC
Created attachment 834809 [details]
File: backtrace

Comment 2 Cysioland 2013-12-10 14:57:28 UTC
Created attachment 834810 [details]
File: environ

Comment 3 Zdeněk Pavlas 2013-12-10 15:26:56 UTC
Completion helper runs without locking, so this could happen.. I see no simple way to fix this, without loosing all the benefits of running unlocked.

$ yum deplist <TAB><TAB>
Display all 24930 possibilities? (y or n)

This is pointless.. Maybe we should change completions to run pkg list only when the first one or two characters are known.

Comment 4 Fedora Update System 2013-12-13 15:48:33 UTC
yum-3.4.3-122.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/yum-3.4.3-122.fc20

Comment 5 Fedora Update System 2013-12-13 17:56:37 UTC
Package yum-3.4.3-122.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-3.4.3-122.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-23343/yum-3.4.3-122.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-12-16 07:09:26 UTC
yum-3.4.3-122.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.