Bug 1408662 - dnf upgrade gives segfault
Summary: dnf upgrade gives segfault
Keywords:
Status: CLOSED DUPLICATE of bug 1383565
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-26 09:13 UTC by George R. Goffe
Modified: 2017-01-30 12:29 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-01-30 12:29:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description George R. Goffe 2016-12-26 09:13:24 UTC
Description of problem:

attempted to upgrade Fedora release 26 (Rawhide) causes segfaults


Version-Release number of selected component (if applicable):

dnf-2.0.0-0.rc2.5.fc26.noarch
How reproducible:

frequently
Steps to Reproduce:
1./usr/bin/dnf -y --refresh --enablerepo=updates-testing upgrade
2.frequent seg fault happens here OR
3.download fails for unknown reasons.

Actual results:


Expected results:


Additional info:

/usr/bin/dnf -y --refresh --enablerepo=updates-testing upgrade
Last metadata expiration check: 0:00:00 ago on Mon Dec 26 01:06:36 2016 PST.
Failed to synchronize cache for repo 'updates-testing', disabling.
Failed to synchronize cache for repo 'updates', disabling.
Segmentation fault (core dumped)

Comment 1 Igor Gnatenko 2017-01-02 08:16:17 UTC
Please update to latest versions of components and if bug is still reproducible -- reopen please.

Comment 2 Russel Winder 2017-01-08 18:10:09 UTC
Given that dnf segfaults on all attempts to upgrade, what is one supposed to do to "update to latest components"?

Comment 3 George R. Goffe 2017-01-08 19:53:26 UTC
Russel,

I wrote a script that would retry the upgrade if the status was NOT 0. In my case there were almost 2000 upgrades listed. 

The other problem I had exhibited the symptoms of system and/or network problems at the repo server. Downloads would terminate and then dnf would try other mirrors and not find anything so it would abort but the status in this case was 0! I frequently saw messages to the effect that dnf was unable to synchronize the repo (rawhide-updates in my case). 

I ended up picking a mirror that seemed to work and aimed my upgrades to that specific server... specifying specific packages to be upgraded. FINALLY! This worked. I have not seen the problem in 3 days. Argh!

Perhaps this will help you?

Regards,

George...

Comment 4 George R. Goffe 2017-01-20 12:43:22 UTC
Igor,

The segfault is back... even worse than before. It seems to be readily re-creatable. Here's what I'm seeing (excluding ---> Package lines).

Also, there are some problems with DNF exiting with status 0 even though NONE of the repos can be sync'd.

George...

h.rpm1P upgradeACCCCCCCCCCCCCCCCCCCCCCCCC

Loaded plugins: builddep, config-manager, copr, debuginfo-install, download, etckeeper, generate_completion_cache, needs-restarting, noroot, playground, reposync, system-upgrade
DNF version: 2.0.0
cachedir: /var/cache/dnf
Cannot download 'http://download.fedoraproject.org/pub/fedora/linux/updates/26/x86_64/': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried.
repo: using cache for: rawhide
not found updateinfo for: rawhide
rawhide: using metadata from Thu Jan 19 02:28:22 2017 PST.
Last metadata expiration check: 0:08:43 ago on Fri Jan 20 04:12:33 2017 PST.
Failed to synchronize cache for repo 'updates', disabling.
--> Starting dependency resolution
Segmentation fault (core dumped)
m;upgradeACCCCCCCCCCCCCCCCCCCCCCCCCCs--exclude=texlive-pxfonts-svn15878.0-31.fc26.noarch.rpm---exclude=texlive-quran-svn41165-31.fc26.noarch.rpm-upgradeACCCCCCCCCCCCCCCCCCCCCCCCC- --exclude=texlive-pxfonts-svn15878.0-31.fc26.noarch.rpm --exclude=texlive-quran-svn41165-31.fc26.noarch.r1@pACCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCd --exclude=texlive-pxfonts-svn15878.0-31.fc26.noarch.rpm --exclude=texlive-quran-svn41165-31.fc26.noarch.1@rACCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC1 --exclude=texlive-pxfonts-svn15878.0-31.fc26.noarch.rpm --exclude=texlive-quran-svn41165-31.fc26.noarch1@.ACCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC0 --exclude=texlive-pxfonts-svn15878.0-31.fc26.noarch.rpm --exclude=texlive-quran-svn41165-31.fc26.noarc1@hACCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC--exclude=texlive-pxfonts-svn15878.0-31.fc26.noarch.rpm --exclude=texlive-quran-svn41165-31.fc26.noarch1PACCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC--exclude=texlive-pxfonts-svn15878.0-31.fc26.noarch.rpm --exclude=texlive-quran-svn41165-31.fc26.noarch.1PACCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC1 --exclude=texlive-pxfonts-svn15878.0-31.fc26.noarch.rpm --exclude=texlive-quran-svn41165-31.fc26.noarch1@.ACCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC0 --exclude=texlive-pxfonts-svn15878.0-31.fc26.noarch.rpm --exclude=texlive-quran-svn41165-31.fc26.noarc1@hACCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

Loaded plugins: builddep, config-manager, copr, debuginfo-install, download, etckeeper, generate_completion_cache, needs-restarting, noroot, playground, reposync, system-upgrade
DNF version: 2.0.0
cachedir: /var/cache/dnf
repo: using cache for: rawhide
not found updateinfo for: rawhide
rawhide: using metadata from Thu Jan 19 02:28:22 2017 PST.
Cannot download 'http://download.fedoraproject.org/pub/fedora/linux/updates/26/x86_64/': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried.
Last metadata expiration check: 0:10:15 ago on Fri Jan 20 04:12:33 2017 PST.
Failed to synchronize cache for repo 'updates', disabling.
--> Starting dependency resolution
Segmentation fault (core dumped)
0;root@fc26-rawhide:~fc26-rawhide-bash 4.3 ~# exit

Script done on Fri 20 Jan 2017 04:33:25 AM PST

Comment 5 Russel Winder 2017-01-22 16:25:32 UTC
I think it may be something different, but it is still dnf and still a segfault:

I find that very large updates can cause dnf to segfault before showing a list of things to be updated. I have to make the update sets smaller by partial specification. Things then work.

Comment 6 Honza Silhan 2017-01-23 12:24:17 UTC
Can you please provide core dump so we know why it crashes?

Comment 7 Russel Winder 2017-01-23 13:48:29 UTC
Next time it happens I can certainly do this. What settings are required to get the necessary file?

Comment 8 George R. Goffe 2017-01-23 20:03:59 UTC
Honza,

Where is the core file located? 

Are there commands to enable core files?

George...

Comment 9 Honza Silhan 2017-01-24 10:56:03 UTC
George, the easiest would be to turn abrt on and report it through this (if it can detect it).

Comment 10 George R. Goffe 2017-01-28 01:10:17 UTC
Honza,

Unfortunately abrt does NOT catch the dnf segfaults.

I tried again to upgrade this system and got a whole slew of segfaults.

What do we do next?

George...

Upgrade starts... runs a short while and then stops downloading. My script tries again... fails again... tries again... sometimes with interspersed segfaults.

I'm also getting these messages:

(422/546): lighttpd-mod_authn_gssapi-1.4.45-2.fc26.x86_64.rpm                                                 42 kB/s |  29 kB     00:00
(423/546): lighttpd-fastcgi-1.4.45-2.fc26.x86_64.rpm                                                         117 kB/s |  53 kB     00:00
[MIRROR] libuuid-devel-2.29.1-1.fc26.x86_64.rpm: Status code: 404 for http://archive.linux.duke.edu/pub/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/l/libuuid-devel-2.29.1-1.fc26.x86_64.rpm
[FAILED] libuuid-devel-2.29.1-1.fc26.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success
(425-426/546): lighttpd-filesystem-1.4.45-2.fc26.no 62% [===============================                   ] 928 kB/s | 590 MB     06:27 ETA
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Error downloading packages:
  Cannot download Packages/l/libuuid-devel-2.29.1-1.fc26.x86_64.rpm: All mirrors were tried

Comment 11 Igor Gnatenko 2017-01-30 12:29:45 UTC

*** This bug has been marked as a duplicate of bug 1383565 ***


Note You need to log in before you can comment on or make changes to this bug.