Bug 10103 - systemd-reboot: systemd 2.29 takes 90s longer than it should on shutdown if a corefile is created
Summary: systemd-reboot: systemd 2.29 takes 90s longer than it should on shutdown if a...
Status: RESOLVED OBSOLETE
Alias: None
Product: General Runtime
Classification: Runtime
Component: General Runtime (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.1.3
Assignee: Armin Kuster
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-08-09 14:48 UTC by David Turgeon
Modified: 2017-07-06 15:28 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)