Bug 2406118

Summary: [abrt] systemd-udev: malloc_printerr_tail(): udevadm killed by SIGABRT
Product: [Fedora] Fedora Reporter: Catalin Iacob <iacobcatalin>
Component: systemdAssignee: systemd-maint
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 43CC: daan.j.demeyer, dtardon, fedoraproject, iacobcatalin, lnykryn, msekleta, suraj.ghimire7, systemd-maint, yuwatana, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/fd38fd361b45c5500c8b3aa095bcf2b6a92f22d
Whiteboard: abrt_hash:548eaee12debd5582ae997c6ac191e6bcc9d087a;VARIANT_ID=workstation;
Fixed In Version: systemd-259~rc3-1.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-02-05 08:52:54 UTC Type: ---
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 Flags
File: proc_pid_status
none
File: maps
none
File: limits
none
File: environ
none
File: open_fds
none
File: mountinfo
none
File: os_info
none
File: cpuinfo
none
File: core_backtrace
none
File: dso_list
none
File: backtrace none

Description Catalin Iacob 2025-10-23 20:26:28 UTC
Description of problem:
Running

udevadm test /sys/block/sr0

It prints things and finishes with
Unloaded hardware database.
Unloaded kernel module index.
Unloaded link configuration context.
free(): invalid size

Always reproduces

Version-Release number of selected component:
systemd-udev-258-1.fc43

Additional info:
reporter:       libreport-2.17.15
type:           CCpp
reason:         udevadm killed by SIGABRT
journald_cursor: s=58843d09430f43da8431ecdef8fd93d0;i=768e1;b=7097d4cf69114918b491c9ec36e818fb;m=bc9adc60;t=641d90e55ecdb;x=6a5ca88c12e7f9e7
executable:     /usr/bin/udevadm
cmdline:        udevadm test /sys/block/sr0
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/ptyxis-spawn-0fe96470-d45a-44cb-bd42-8e5fda820b05.scope
rootdir:        /
uid:            1000
kernel:         6.17.1-300.fc43.x86_64
package:        systemd-udev-258-1.fc43
runlevel:       /bin/sh: line 1: runlevel: command not found
backtrace_rating: 4
crash_function: malloc_printerr_tail

Truncated backtrace:
Thread no. 1 (14 frames)
 #3 malloc_printerr_tail at malloc.c:5909
 #4 sysattr_cache_entry_free at ../src/libsystemd/sd-device/sd-device.c:2367
 #6 __unique_prefix_static_free_wrapper17 at ../src/libsystemd/sd-device/sd-device.c:2372
 #7 _hashmap_clear at ../src/basic/hashmap.c:935
 #8 _hashmap_free at ../src/basic/hashmap.c:908
 #10 hashmap_free at ../src/basic/hashmap.h:65
 #11 device_free at ../src/libsystemd/sd-device/sd-device.c:72
 #12 sd_device_unref at ../src/libsystemd/sd-device/sd-device.c:82
 #13 udev_event_free at ../src/udev/udev-event.c:52
 #14 udev_event_unref at ../src/udev/udev-event.c:70
 #15 udev_event_unrefp at ../src/udev/udev-event.h:50
 #16 test_main at ../src/udev/udevadm-test.c:134
 #17 udevadm_main at ../src/udev/udevadm.c:121
 #18 run at ../src/udev/udevadm.c:141

Comment 1 Catalin Iacob 2025-10-23 20:26:33 UTC
Created attachment 2110641 [details]
File: proc_pid_status

Comment 2 Catalin Iacob 2025-10-23 20:26:34 UTC
Created attachment 2110642 [details]
File: maps

Comment 3 Catalin Iacob 2025-10-23 20:26:35 UTC
Created attachment 2110643 [details]
File: limits

Comment 4 Catalin Iacob 2025-10-23 20:26:37 UTC
Created attachment 2110644 [details]
File: environ

Comment 5 Catalin Iacob 2025-10-23 20:26:40 UTC
Created attachment 2110645 [details]
File: open_fds

Comment 6 Catalin Iacob 2025-10-23 20:26:41 UTC
Created attachment 2110646 [details]
File: mountinfo

Comment 7 Catalin Iacob 2025-10-23 20:26:42 UTC
Created attachment 2110647 [details]
File: os_info

Comment 8 Catalin Iacob 2025-10-23 20:26:44 UTC
Created attachment 2110648 [details]
File: cpuinfo

Comment 9 Catalin Iacob 2025-10-23 20:26:45 UTC
Created attachment 2110649 [details]
File: core_backtrace

Comment 10 Catalin Iacob 2025-10-23 20:26:47 UTC
Created attachment 2110650 [details]
File: dso_list

Comment 11 Catalin Iacob 2025-10-23 20:26:48 UTC
Created attachment 2110651 [details]
File: backtrace

Comment 12 David Tardon 2025-12-05 14:28:55 UTC
Fix submitted upstream as https://github.com/systemd/systemd/pull/40004 .