Bug 2315789 - [abrt] dnf5: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Alloc_hider::_Alloc_hider(): dnf5 killed by SIGSEGV
Summary: [abrt] dnf5: std::__cxx11::basic_string<char, std::char_traits<char>, std::al...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 41
Hardware: x86_64
OS: Unspecified
high
medium
Target Milestone: ---
Assignee: Marek Blaha
QA Contact:
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:b67f48da7dc2ee28b8528f34bfb...
: 2274994 2314576 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-09-30 21:37 UTC by Steve
Modified: 2024-11-05 10:28 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: proc_pid_status (1.47 KB, text/plain)
2024-09-30 21:37 UTC, Steve
no flags Details
File: maps (3.92 KB, text/plain)
2024-09-30 21:37 UTC, Steve
no flags Details
File: limits (1.29 KB, text/plain)
2024-09-30 21:37 UTC, Steve
no flags Details
File: environ (3.42 KB, text/plain)
2024-09-30 21:37 UTC, Steve
no flags Details
File: open_fds (656 bytes, text/plain)
2024-09-30 21:37 UTC, Steve
no flags Details
File: mountinfo (3.82 KB, text/plain)
2024-09-30 21:37 UTC, Steve
no flags Details
File: os_info (756 bytes, text/plain)
2024-09-30 21:37 UTC, Steve
no flags Details
File: cpuinfo (3.04 KB, text/plain)
2024-09-30 21:37 UTC, Steve
no flags Details
File: core_backtrace (5.50 KB, text/plain)
2024-09-30 21:37 UTC, Steve
no flags Details
File: exploitable (81 bytes, text/plain)
2024-09-30 21:37 UTC, Steve
no flags Details
File: dso_list (795 bytes, text/plain)
2024-09-30 21:37 UTC, Steve
no flags Details
File: backtrace (96.63 KB, text/plain)
2024-09-30 21:37 UTC, Steve
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github rpm-software-management dnf5 pull 1743 0 None open comps: Fix memory issues in group serialization 2024-10-01 08:53:22 UTC
Red Hat Bugzilla 2314576 0 unspecified CLOSED [abrt] dnf5: solv_realloc(): dnf5 killed by SIGABRT 2024-11-05 10:28:11 UTC

Internal Links: 2314576

Description Steve 2024-09-30 21:37:02 UTC
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

Comment 1 Steve 2024-09-30 21:37:06 UTC
Created attachment 2049649 [details]
File: proc_pid_status

Comment 2 Steve 2024-09-30 21:37:07 UTC
Created attachment 2049650 [details]
File: maps

Comment 3 Steve 2024-09-30 21:37:08 UTC
Created attachment 2049651 [details]
File: limits

Comment 4 Steve 2024-09-30 21:37:09 UTC
Created attachment 2049652 [details]
File: environ

Comment 5 Steve 2024-09-30 21:37:10 UTC
Created attachment 2049653 [details]
File: open_fds

Comment 6 Steve 2024-09-30 21:37:12 UTC
Created attachment 2049654 [details]
File: mountinfo

Comment 7 Steve 2024-09-30 21:37:13 UTC
Created attachment 2049655 [details]
File: os_info

Comment 8 Steve 2024-09-30 21:37:14 UTC
Created attachment 2049656 [details]
File: cpuinfo

Comment 9 Steve 2024-09-30 21:37:15 UTC
Created attachment 2049657 [details]
File: core_backtrace

Comment 10 Steve 2024-09-30 21:37:16 UTC
Created attachment 2049658 [details]
File: exploitable

Comment 11 Steve 2024-09-30 21:37:18 UTC
Created attachment 2049659 [details]
File: dso_list

Comment 12 Steve 2024-09-30 21:37:19 UTC
Created attachment 2049660 [details]
File: backtrace

Comment 13 Steve 2024-09-30 21:45:15 UTC
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)

Comment 14 Marek Blaha 2024-10-01 06:39:40 UTC
Thanks for the reproducer! I confirm that I'm able to reproduce the bug using it.

Comment 15 Marek Blaha 2024-10-01 08:44:53 UTC
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!

Comment 16 Steve 2024-10-01 08:53:22 UTC
Thanks, Marek.

Comment 17 Marek Blaha 2024-10-01 08:56:21 UTC
*** Bug 2274994 has been marked as a duplicate of this bug. ***

Comment 18 Marek Blaha 2024-11-05 10:28:12 UTC
*** Bug 2314576 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.