Bug 10103

Summary: systemd-reboot: systemd 2.29 takes 90s longer than it should on shutdown if a corefile is created
Product: [Runtime] General Runtime Reporter: David Turgeon <david.turgeon>
Component: General RuntimeAssignee: Armin Kuster <akuster>
Status: RESOLVED OBSOLETE QA Contact:
Severity: normal    
Priority: Medium CC: richard.purdie
Version: 2.1   
Target Milestone: 2.1.3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description David Turgeon 2016-08-09 14:48:54 UTC
If a process segfaults on exit, systemd seems to delay 90s longer than it needs to (if a shutdown command triggers a core file).
The issue was initially reported here:
https://github.com/systemd/systemd/issues/2691

One can workaround by disabling systemd's handling of core files or by applying Lennart's patch:
https://github.com/poettering/systemd/commit/3e7a1f50e473a374e1657d2051237e2db04c4db2
which was merged to head in this commit:

commit 3e7a1f50e473a374e1657d2051237e2db04c4db2
Author: Lennart Poettering <lennart@poettering.net>
Date:   Thu Apr 28 17:09:50 2016 +0200

    core: make sure to close connection fd when we fail to activate a per-connection service
    
    Fixes: #2993 #2691

Trying this patch in krogoth fixed the issue for me.
Comment 1 Saul Wold 2016-08-10 17:24:12 UTC
Please investigate if this is fixed in master and if so please take the appropriate backport actions.
Comment 2 Richard Purdie 2017-07-06 15:28:28 UTC
No response on the bug or any patch backport request on the list for this so closing as obsolete as krogoth is getting old at this point.
Comment 3 Richard Purdie 2017-07-06 15:28:49 UTC
(issue would be fixed in master after upgrades)