Bug 1575340

Summary: [abrt] systemd: log_assert_failed_unreachable_realm(): systemd killed by SIGABRT
Product: [Fedora] Fedora Reporter: Vint1988
Component: systemdAssignee: systemd-maint
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: diogocamposwd, lnykryn, msekleta, ssahani, s, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/bc266d7f18c4caca013a8654573e45318a09c318
Whiteboard: abrt_hash:3ffda47c15ee39cff1c5a74599e39a1b04bd0187;VARIANT_ID=workstation;
Fixed In Version: systemd-238-1.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-18 10:52:38 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: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: cpuinfo
none
File: dso_list
none
File: environ
none
File: limits
none
File: maps
none
File: mountinfo
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Vint1988 2018-05-06 05:21:11 UTC
Version-Release number of selected component:
systemd-238-7.fc28.1

Additional info:
reporter:       libreport-2.9.5
backtrace_rating: 4
cmdline:        /usr/lib/systemd/systemd --user
crash_function: log_assert_failed_unreachable_realm
executable:     /usr/lib/systemd/systemd
journald_cursor: s=c914debce927456089778c6d919880d6;i=1e5b;b=6b4a5aed11934dcd85ff384cb355d82e;m=110894b48;t=56b66f158ac6b;x=7231780b4bdc469d
kernel:         4.16.5-300.fc28.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            42

Truncated backtrace:
Thread no. 1 (8 frames)
 #2 log_assert_failed_unreachable_realm at ../src/basic/log.c:838
 #3 bus_process_internal at ../src/libsystemd/sd-bus/sd-bus.c:2978
 #4 sd_bus_process at ../src/libsystemd/sd-bus/sd-bus.c:2994
 #5 bus_ensure_running at ../src/libsystemd/sd-bus/sd-bus.c:2056
 #6 sd_bus_flush at ../src/libsystemd/sd-bus/sd-bus.c:3102
 #7 destroy_bus at ../src/core/dbus.c:1100
 #8 bus_done at ../src/core/dbus.c:1138
 #9 manager_free at ../src/core/manager.c:1203

Comment 1 Vint1988 2018-05-06 05:21:19 UTC
Created attachment 1432237 [details]
File: backtrace

Comment 2 Vint1988 2018-05-06 05:21:20 UTC
Created attachment 1432238 [details]
File: cgroup

Comment 3 Vint1988 2018-05-06 05:21:23 UTC
Created attachment 1432239 [details]
File: core_backtrace

Comment 4 Vint1988 2018-05-06 05:21:25 UTC
Created attachment 1432240 [details]
File: cpuinfo

Comment 5 Vint1988 2018-05-06 05:21:27 UTC
Created attachment 1432241 [details]
File: dso_list

Comment 6 Vint1988 2018-05-06 05:21:29 UTC
Created attachment 1432242 [details]
File: environ

Comment 7 Vint1988 2018-05-06 05:21:31 UTC
Created attachment 1432243 [details]
File: limits

Comment 8 Vint1988 2018-05-06 05:21:33 UTC
Created attachment 1432244 [details]
File: maps

Comment 9 Vint1988 2018-05-06 05:21:35 UTC
Created attachment 1432245 [details]
File: mountinfo

Comment 10 Vint1988 2018-05-06 05:21:37 UTC
Created attachment 1432246 [details]
File: open_fds

Comment 11 Vint1988 2018-05-06 05:21:39 UTC
Created attachment 1432247 [details]
File: proc_pid_status

Comment 12 Vint1988 2018-05-06 05:21:41 UTC
Created attachment 1432248 [details]
File: var_log_messages

Comment 13 Zbigniew Jędrzejewski-Szmek 2018-07-18 10:38:34 UTC
*** Bug 1576084 has been marked as a duplicate of this bug. ***

Comment 14 Zbigniew Jędrzejewski-Szmek 2018-07-18 10:38:52 UTC
*** Bug 1575350 has been marked as a duplicate of this bug. ***

Comment 15 Zbigniew Jędrzejewski-Szmek 2018-07-18 10:52:38 UTC
There was a significant reworking of the bus code in https://github.com/systemd/systemd/commit/4502c40399. That patch is in systemd-238, and I was confused, because the backtraces in those three bugs show the old call sequence. So what must have happened here, is that an upgrade from older systemd was made to systemd-238, and then the older systemd crashed during reexec.

That said, there seems to be a memory corruption here, and destroy_bus is called on a bus that has already been deallocated. I think/hope the patch above fixes this.

There's another issue with the code, uncovered by this failure. See upstream PR https://github.com/systemd/systemd/pull/9640. Nevertheless, that patch wouldn't fix this problem anyway.

I'll close this on the assumption that 4502c40399 is enough to fix this. If a similar backtrace happens again, this will mean I was wrong ;)