Bug 2498770
| Summary: | gdb-17.2-1.fc45 crashes on almost any core file (use-after-free in gdb_read_core_file_mappings), breaking abrt and gnome-abrt | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mikhail <mikhail.v.gavrilov> |
| Component: | gdb | Assignee: | Kevin Buettner <kevinb> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | aburgess, ahajkova, coffeeyamato, fweimer, guinevere, jan, keiths, kevinb, mcermak, mkolar, simonzevnik.it, suraj.ghimire7 |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-07-13 14:32:18 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
Mikhail
2026-07-09 21:23:41 UTC
Created attachment 2148201 [details]
reproducer
Created attachment 2148202 [details]
valgrind, gdb-17.2-1.fc45, 14 errors
Created attachment 2148203 [details]
valgrind, gdb-17.2-2.fc45 (patched), 0 errors
Created attachment 2148407 [details]
Full coredumpctl backtrace on gdb-17.2-1.fc44 / plasma-workspace-6.7.2-2.fc44
Confirming on gdb-17.2-1.fc44 / plasma-workspace-6.7.2-2.fc44 (Fedora 44, KDE Wayland session), with a full (non-reduced) backtrace obtained via `coredumpctl info`.
The actual crash is NOT inside the brightness applet itself, but is a
downstream consequence: onServiceUnregistered() sets
m_isBrightnessAvailable to false, which propagates through Qt's
property binding system (QPropertyBindingData::notifyObservers ->
QQmlBinding::update -> Plasma::Applet::statusChanged), which in turn
triggers the system tray's SortedSystemTrayModel to reorder
(needsReorder -> lessThan -> PlasmoidModel::data ->
Plasma::Applet::status()). The actual SIGSEGV happens inside
Plasma::Applet::status(), called on what is presumably an already
partially-destroyed applet, since this whole chain fires from inside
ShellCorona::~ShellCorona() during session shutdown.
Full backtrace attached (plasmashell-full-backtrace.txt).
I can reproduce this on Fedora 44 as well.
Package:
gdb-17.2-1.fc44.x86_64
Environment:
Fedora 44 x86_64
Kernel: 7.1.3-200.fc44.x86_64
When opening a systemsettings ELF core file with debuginfod disabled:
/usr/bin/gdb --nw --nx --batch \
--init-eval-command='set debuginfod enabled off' \
--core=/path/to/systemsettings.core \
/usr/bin/systemsettings
GDB aborts with:
free(): double free detected in tcache 2
The backtrace includes:
malloc_printerr
tcache_double_free_verify
core_target::build_file_mappings()
core_target::core_target()
I have also observed SIGSEGV in core_target::build_file_mappings.
readelf and eu-stack can parse the same core file successfully.
The core file has not been attached because it may contain private process memory. I can provide it privately if needed.
*** This bug has been marked as a duplicate of bug 2498034 *** |