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)
Please update to latest versions of components and if bug is still reproducible -- reopen please.
Given that dnf segfaults on all attempts to upgrade, what is one supposed to do to "update to latest components"?
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...
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
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.
Can you please provide core dump so we know why it crashes?
Next time it happens I can certainly do this. What settings are required to get the necessary file?
Honza, Where is the core file located? Are there commands to enable core files? George...
George, the easiest would be to turn abrt on and report it through this (if it can detect it).
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
*** This bug has been marked as a duplicate of bug 1383565 ***