Bug 1761779
| Summary: | dnf segfaults when running repolist | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Pavla Kratochvilova <pkratoch> | ||||
| Component: | libdnf | Assignee: | Jaroslav Rohel <jrohel> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 30 | CC: | dmach, jmracek, jrohel, mblaha, pkratoch, rpm-software-management | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2019-10-17 06:53:45 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Pavla Kratochvilova
2019-10-15 11:13:41 UTC
I'm unable to reproduce it in podman with following Dockerfile: FROM fedora:30 RUN dnf -y makecache RUN dnf -y install dnf-plugins-core RUN dnf -y copr enable rpmsoftwaremanagement/dnf-nightly RUN dnf -y makecache RUN dnf -y install libdnf-0.35.6-0.23g0999bcc7.fc30 $ podman run -it <hash> dnf repolist Could you try it in podman by yourself? Can you tweak the Dockerfile so it creates the same dnf configuration and repo configuration as your system? I managed to reproduce it with the following Dockerfile: FROM fedora:30 RUN dnf -y makecache RUN dnf -y install dnf-plugins-core RUN dnf -y copr enable rpmsoftwaremanagement/dnf-nightly RUN dnf -y makecache RUN dnf -y install dnf-4.2.12-0.43g64fbb431.fc30.noarch \ dnf-4.2.12-0.43g64fbb431.fc30 \ dnf-plugins-core-4.0.10-4g58e8f15.fc30 \ libcomps-0.1.11-12g919c0e2.fc30 \ libdnf-0.36.0-0.32g77a14f6a.fc30 \ librepo-1.10.7-0.9g5c30597.fc30 \ libsolv-0.7.6-6ga94facb0.fc30 RUN dnf -y install libdnf-0.35.6-0.23g0999bcc7.fc30 However, I wasn't sure how to build with podman, so I used docker instead; I hope that's ok (but I can learn with podman and check if it's the same). Also, "sudo docker run -it <hash> dnf repolist" didn't output anything, but running "sudo docker run -it <hash>" and then "dnf repolist" in the container produced the segfault. Additionally, I encountered a different error with the following Dockerfile: FROM fedora:30 RUN dnf -y makecache RUN dnf -y install dnf-plugins-core RUN dnf -y copr enable rpmsoftwaremanagement/dnf-nightly RUN dnf -y makecache RUN dnf -y install libdnf-0.36.0-0.32g77a14f6a.fc30 # sudo docker run -it <hash> dnf repolist Error: Unknown option Error: Unknown option I found even smaller reproducer: FROM fedora:30 RUN dnf -y makecache RUN dnf -y install dnf-plugins-core RUN dnf -y copr enable rpmsoftwaremanagement/dnf-nightly RUN dnf -y makecache RUN dnf -y install librepo-1.10.7-0.9g5c30597.fc30 The bug was in librepo. I made a fix PR: https://github.com/rpm-software-management/librepo/pull/175 The bug affects only dnf-nightly builds (wasn't released). Fix was merged to upstream librepo. I will close the bug. |