Bug 1803038
Summary: | dnf crashes with an UTF-8 char in a repository filename | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Christophe Besson <cbesson> | |
Component: | libdnf | Assignee: | Pavla Kratochvilova <pkratoch> | |
Status: | CLOSED ERRATA | QA Contact: | Luca Berton <lberton> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 8.1 | CC: | amatej, kwalker, lberton, marek.schimara, mdomonko, pamadio, pkratoch, pmoravec | |
Target Milestone: | rc | Keywords: | Reproducer, Triaged | |
Target Release: | 8.1 | Flags: | pm-rhel:
mirror+
|
|
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | libdnf-0.47.0-1.el8 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1804625 (view as bug list) | Environment: | ||
Last Closed: | 2020-11-04 01:52:37 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: | ||||
Bug Depends On: | 1804625 | |||
Bug Blocks: | 1825061 | |||
Attachments: |
Description
Christophe Besson
2020-02-14 11:08:47 UTC
The segfault still happens on Fedora 30, but is fixed on Fedora 31: $ cat /etc/redhat-release Fedora release 30 (Thirty) $ sudo touch '/etc/yum.repos.d/team'$'\303''_epel.repo' $ sudo dnf repolist Segmentation fault (core dumped) $ rpm -q dnf libdnf dnf-4.2.11-2.fc30.noarch libdnf-0.35.5-5.fc30.x86_64 ======================================================================= $ cat /etc/redhat-release Fedora release 31 (Thirty One) $ sudo touch '/etc/yum.repos.d/team'$'\303''_epel.repo' $ sudo dnf repolist Warning: failed loading '/etc/yum.repos.d/team\udcc3_epel.repo', skipping. <WORKS OK :) > $ rpm -q dnf libdnf dnf-4.2.18-1.fc31.noarch libdnf-0.43.1-2.fc31.x86_64 The segfault is not dependent on the version of libdnf/dnf, but rather on the version of swig that is used for libdnf build. When I build the latest version of libdnf on Fedora 30 (with swig-3.0.12-26.fc30.x86_64), dnf segfaults, whereas when I build the latest version of libdnf on Fedora 31 (with swig-4.0.1-3.fc31), dnf doesn't segfault. I will clone this bug for swig with more details. swig clone: bug 1804625 *** Bug 1876832 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (yum bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:4510 |