Red Hat Bugzilla – Bug 1309778
"dnf upgrade" nonexistent or corrupt local rpm crashes in libhawkey
Last modified: 2016-02-22 07:59:17 EST
Created attachment 1128284 [details]
backtrace from "dnf install nothing.rpm"
Description of problem:
dnf crashes in libhawkey when attempting to upgrade with a corrupted local .rpm, but "dnf install" completes/fails in the expected way.
# touch nothing.rpm
# curl -O https://kojipkgs.fedoraproject.org//packages/WHOOPSITYPEDWRONGANDHAVEGOTA404ERRORHTMLPAGEOHDEAR/hawkey/0.6.2/4.fc24/x86_64/hawkey-0.6.2-4.fc24.x86_64.rpm
# dnf install nothing,rpm
Last metadata expiration check performed 0:54:36 ago on Thu Feb 18 14:57:19 2016.
Nothing to do.
# dnf update nothing.rpm
Last metadata expiration check performed 0:55:26 ago on Thu Feb 18 14:57:19 2016.
Segmentation fault (core dumped)
I obtained the attached backtrace with gdb,
Version-Release number of selected component (if applicable):
Do nothing, like "dnf install",
Actually the "dnf install" behaviour could improve too, when two packages have dependencies:
$dnf install selinux-policy.rpm selinux-policy-targeted-CORRUPT.rpm
$dnf install selinux-policy.rpm
and won't succedd unless I --allowerasing, then it asks to remove the installed selinux-policy-targeted
*** This bug has been marked as a duplicate of bug 1257718 ***