Bug 1221652

Summary: systemd aborts after systemctl daemon-reload
Product: [Fedora] Fedora Reporter: Igor Bukanov <igor>
Component: systemdAssignee: Jan Synacek <jsynacek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: johannbg, jsynacek, lnykryn, msekleta, s, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-219-15.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-26 03:31:54 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 Flags
/var/tmp/abrt/ directory as a tar archive compressed with xz none

Description Igor Bukanov 2015-05-14 13:48:37 UTC
Created attachment 1025409 [details]
/var/tmp/abrt/ directory as a tar archive compressed with xz

Description of problem:

I run `systemctl daemon-reload` after changing /etc/systemd/system/sshd.service.d/local.conf from

[Service]
ExecStart=
ExecStart=/usr/sbin/sshd -D -e

to

[Service]
ExecStart=""
ExecStart=/usr/sbin/sshd -D -e

That resulted in:

[root@dserver ~]# systemctl daemon-reload

Broadcast message from systemd-journald@dserver (Thu 2015-05-14 15:27:39 CEST):

systemd[1]: Caught <ABRT>, dumped core as pid 5583.


Broadcast message from systemd-journald@dserver (Thu 2015-05-14 15:27:39 CEST):

systemd[1]: Freezing execution.

Failed to execute operation: Connection reset by peer
[root@dserver ~]# 

Version-Release number of selected component (if applicable): systemd 219

I experienced the problem only once.

I attach the abort directory with all details, but here is the stack trace from the core dump:

{   "signal": 6
,   "executable": "/usr/lib/systemd/systemd"
,   "stacktrace":
      [ {   "crash_thread": true
        ,   "frames":
              [ {   "address": 139821192486359
                ,   "build_id": "5b6342ea1dbd25b194e8cb60e7b0133466598b24"
                ,   "build_id_offset": 216535
                ,   "function_name": "kill"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 139821220893229
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 283181
                ,   "function_name": "crash.lto_priv.229"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821196268592
                ,   "build_id": "d515e7040be962bd98df45bbd27f5b80518dff25"
                ,   "build_id_offset": 66608
                ,   "file_name": "/lib64/libpthread.so.0"
                }
              , {   "address": 139821192485528
                ,   "build_id": "5b6342ea1dbd25b194e8cb60e7b0133466598b24"
                ,   "build_id_offset": 215704
                ,   "function_name": "raise"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 139821192492842
                ,   "build_id": "5b6342ea1dbd25b194e8cb60e7b0133466598b24"
                ,   "build_id_offset": 223018
                ,   "function_name": "abort"
                ,   "file_name": "/lib64/libc.so.6"
                }
              , {   "address": 139821221072818
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 462770
                ,   "function_name": "log_assert_failed"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821221517375
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 907327
                ,   "function_name": "config_parse_exec"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821221151049
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 541001
                ,   "function_name": "config_parse"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821221390980
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 780932
                ,   "function_name": "unit_load_dropin"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821221452920
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 842872
                ,   "function_name": "service_load.lto_priv.351"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821221584318
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 974270
                ,   "function_name": "unit_load"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821221552149
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 942101
                ,   "function_name": "manager_dispatch_load_queue"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821221558296
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 948248
                ,   "function_name": "manager_load_unit"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821220788974
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 178926
                ,   "function_name": "unit_add_dependency_by_name.constprop.77"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821220837112
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 227064
                ,   "function_name": "device_setup_unit"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821220837884
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 227836
                ,   "function_name": "device_process_new"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821220840859
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 230811
                ,   "function_name": "device_enumerate.lto_priv.434"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821221589044
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 978996
                ,   "function_name": "manager_enumerate"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821220749248
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 139200
                ,   "function_name": "manager_reload"
                ,   "file_name": "/usr/lib/systemd/systemd"
                }
              , {   "address": 139821220762342
                ,   "build_id": "05935516365caccae391f7257b85feba5190cf95"
                ,   "build_id_offset": 152294
                ,   "function_name": "main"
                ,   "file_name": "/usr/lib/systemd/systemd"
                } ]
        } ]
}

Comment 1 Igor Bukanov 2015-05-14 13:55:30 UTC
Apparently this reproducible. If I change /etc/systemd/system/sshd.service.d/local.conf from

[Service]
#ExecStart=""
#ExecStart=/usr/sbin/sshd -D -e

to

[Service]
ExecStart=""
ExecStart=/usr/sbin/sshd -D -e

then systemd crashes. Note the reason I tried to do that is that using

[Service]
ExecStart=/usr/sbin/sshd -D -e

resulted in the error about multiple values for ExecStart. Then I tried to reset the list using:

[Service]
ExecStart=
ExecStart=/usr/sbin/sshd -D -e

as the documentation states that list-like values can be reset with an empty value. But that still produced the error about multiple ExecStart. So I tried to use "" as the value to reset the list. But that lead to the crash.

Comment 2 Jan Synacek 2015-05-18 08:09:19 UTC
Reproduced in F22. I didn't manage to reproduce this in F21 and systemd git version.

Comment 5 Fedora Update System 2015-05-18 10:33:27 UTC
systemd-219-15.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/systemd-219-15.fc22

Comment 6 Fedora Update System 2015-05-18 19:03:35 UTC
Package systemd-219-15.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-219-15.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-8451/systemd-219-15.fc22
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2015-05-26 03:31:54 UTC
systemd-219-15.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.