DNF on Fedora 30 is segfaulting

Fedora 30’s DNF has begun segfaulting. It seems to have started sometime in the last 30 minutes. Non-Fedora images seem unaffected.

It always stops in the same place. Here is an execution log:

#!/bin/bash -eo pipefail
dnf install -y git cmake make gcc-c++
Fedora Modular 30 - x86_64                      1.7 MB/s | 2.1 MB     00:01    
Fedora Modular 30 - x86_64 - Updates            317  B/s | 257  B     00:00    
Fedora Modular 30 - x86_64 - Test Updates       4.6 MB/s | 2.9 MB     00:00    
Fedora 30 - x86_64 - Test Updates               6.8 MB/s |  15 MB     00:02    
Fedora 30 - x86_64 - Updates                    457  B/s | 257  B     00:00    
Fedora 30 - x86_64       [            ===     ] 1.1 kB/s | 343  B     --:-- ETA
Received 'segmentation fault' signal

Hi there, welcome to our community!

Could you provide the specific image that you are using?

1 Like

Hi Paul. Looks like this has happened before to Fedora. Can you give the steps in this StackOverflow answer a try and see if they help? https://stackoverflow.com/a/45173939/335583

Hi Lev and Joe, thank you for the welcome!

This issue appears with the fedora:30 image.

It looks like this is an upstream issue with the fedora:30 Docker image, as the following Dockerfile will reproduce the issue:

FROM fedora:30
RUN dnf update

As for the StackOverflow question, the steps they suggest do not resolve the issue.

1 Like

I tried. :smile: Glad you were able to isolate the issue.

1 Like

Thanks again. :slight_smile:

Okay, this issue is due to a bug in librepo-1.9.6-1 that is fixed in librepo-1.9.6-2. Hopefully the fedora:30 image on Docker Hub will be updated soon with this new version.

In the meantime, if someone cannot wait and would like the fedora:30 image working immediately, the steps outlined in this post can be added to your .circleci/build.yml file and should resolve the issue: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/H5BX2XZQFHM7VMAMSMK5VG3DYQYKFUKM/

3 Likes

Thanks for posting the solution!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.