Description of problem: Install in a VM from Fedora-Workstation-Live-x86_64-41_Beta-1.2.iso with default partitioning and filesystems. *Before rebooting* from the live session remove the gnome-software package: $ sudo chroot /mnt/sysimage # dnf remove gnome-software # exit $ reboot During firstboot, disable location services and do not enable third-party repos. Version-Release number of selected component: dnf5-5.2.5.0-2.fc41 Additional info: reporter: libreport-2.17.15 type: CCpp reason: dnf5 killed by SIGSEGV journald_cursor: s=a1953c549447413fb0b4767164025ded;i=a53;b=9fe592402e774a16af450ff5e447a3e4;m=534a139;t=6235cc6e6de77;x=f6c337d3e908440a executable: /usr/bin/dnf5 cmdline: dnf list kernel cgroup: 0::/user.slice/user-1000.slice/user/app.slice/run-rb8ce179275ce4efd84b2b94e2edc0696.scope rootdir: / uid: 1000 kernel: 6.11.0-0.rc5.43.fc41.x86_64 package: dnf5-5.2.5.0-2.fc41 runlevel: N 5 backtrace_rating: 4 crash_function: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Alloc_hider::_Alloc_hider Truncated backtrace: Thread no. 1 (15 frames) #0 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Alloc_hider::_Alloc_hider at /usr/include/c++/14/bits/basic_string.h:198 #1 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string at /usr/include/c++/14/bits/basic_string.h:683 #2 std::construct_at<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > at /usr/include/c++/14/bits/stl_construct.h:97 #3 std::allocator_traits<std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::construct<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > at /usr/include/c++/14/bits/alloc_traits.h:536 #4 std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::emplace_back<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > at /usr/include/c++/14/bits/vector.tcc:117 #5 std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::push_back at /usr/include/c++/14/bits/stl_vector.h:1301 #6 libdnf5::comps::error_to_strings at /usr/src/debug/dnf5-5.2.5.0-2.fc41.x86_64/libdnf5/comps/group/group.cpp:243 #7 __xmlRaiseError at /usr/src/debug/libxml2-2.12.8-2.fc41.x86_64/error.c:665 #8 __xmlSimpleError at /usr/src/debug/libxml2-2.12.8-2.fc41.x86_64/error.c:693 #9 xmlIOErr at /usr/src/debug/libxml2-2.12.8-2.fc41.x86_64/xmlIO.c:408 #10 xmlFileOpenW at /usr/src/debug/libxml2-2.12.8-2.fc41.x86_64/xmlIO.c:915 #12 __xmlOutputBufferCreateFilename at /usr/src/debug/libxml2-2.12.8-2.fc41.x86_64/xmlIO.c:2604 #13 xmlSaveFormatFileEnc at /usr/src/debug/libxml2-2.12.8-2.fc41.x86_64/xmlsave.c:2618 #14 libdnf5::comps::Environment::serialize at /usr/include/c++/14/bits/basic_string.h:227 #15 libdnf5::repo::RepoSack::Impl::fix_group_missing_xml at /usr/src/debug/dnf5-5.2.5.0-2.fc41.x86_64/libdnf5/repo/repo_sack.cpp:904 Potential duplicate: bug 2274994
Created attachment 2049649 [details] File: proc_pid_status
Created attachment 2049650 [details] File: maps
Created attachment 2049651 [details] File: limits
Created attachment 2049652 [details] File: environ
Created attachment 2049653 [details] File: open_fds
Created attachment 2049654 [details] File: mountinfo
Created attachment 2049655 [details] File: os_info
Created attachment 2049656 [details] File: cpuinfo
Created attachment 2049657 [details] File: core_backtrace
Created attachment 2049658 [details] File: exploitable
Created attachment 2049659 [details] File: dso_list
Created attachment 2049660 [details] File: backtrace
After booting into the installed system and completing firstboot: $ dnf -C list kernel Updating and loading repositories: Cache-only enabled but no cache for repository "updates" $ dnf list kernel Updating and loading repositories: Fedora 41 - x86_64 100% | 9.3 MiB/s | 35.4 MiB | 00m04s Fedora 41 - x86_64 - Updates 100% | 73.3 KiB/s | 32.3 KiB | 00m00s Fedora 41 - x86_64 - Test Updates 100% | 5.0 MiB/s | 10.8 MiB | 00m02s Fedora 41 openh264 (From Cisco) - x86_64 100% | 8.0 KiB/s | 6.0 KiB | 00m01sSegmentation fault (core dumped) $ dnf list kernel Updating and loading repositories: Segmentation fault (core dumped)
Thanks for the reproducer! I confirm that I'm able to reproduce the bug using it.
As a workaround, run (basically any) dnf5 command as root, e.g. `sudo dnf list kernel`. That should fix the issue for you. Proper fix is in PR https://github.com/rpm-software-management/dnf5/pull/1743 Thanks again for filing this issue with such a great reproducer!
Thanks, Marek.
*** Bug 2274994 has been marked as a duplicate of this bug. ***
*** Bug 2314576 has been marked as a duplicate of this bug. ***