Created attachment 1768847 [details] microdnf coredump from gdb Description of problem: openSUSE MicroOS Desktop (20210330 snapshot) switched to using MicroDNF and DNF through PackageKit for software management. However, if the install DVD is automounted by GNOME, libdnf consumers (such as microdnf and packagekit) will crash while attempting to access the repo on the DVD. Version-Release number of selected component (if applicable): 0.60.0-1.3 (equivalent to 0.60.0-1.fc35) How reproducible: Always Steps to Reproduce: 1. Install openSUSE MicroOS with GNOME Desktop (add Micro DNF to software selection in YaST) 2. In the installed system, run "sudo microdnf install emacs-nox" Actual results: ngompa@linux:~> sudo microdnf install emacs-nox (microdnf:2911): librepo-WARNING **: 16:33:07.525: Error resolving real path of cd:/?devices=/dev/disk/by-id/ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001: No such file or directory Segmentation fault Expected results: Behaves as expected and offers to install emacs-nox Additional info: This issue seems to only happen if the DVD is mounted. If it is not, then it gracefully fails to load the repo and keeps working as intended. I've also provided a coredump from my system for further examination.
Created attachment 1768848 [details] Screenshot of the backtrace Here's also a screenshot of the backtrace from GDB.
Created attachment 1768849 [details] openSUSE MicroOS 20210330 DVD repo config file I've also attached the repo config file that causes libdnf to attempt this and break.
The install media that you can use to reproduce this on: https://download.opensuse.org/tumbleweed/iso/openSUSE-MicroOS-DVD-x86_64-Snapshot20210330-Media.iso
I managed to reproduce this also on fedora simply by mounting one of the openSUSE microOS media images and running microdnf, that is all that's needed. The problem was a missing return value check in libdnf together with a missing [media] section in the .treeinfo of the iso (which libdnf is hardcoded to expect for bootable media). This PR should fix it: https://github.com/rpm-software-management/libdnf/pull/1193 (I haven't actually tested it in installed openSUSE MicroOS because I didn't manage to install microdnf for the current snapshot)
FEDORA-2021-78c5f8c03d has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.