systemd dumps core on starting service: Assertion 'u->instance' failed at src/core/load-fragment.c:4798
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd |
Fix Released
|
Unknown
|
|||
systemd (Ubuntu) |
Fix Released
|
Medium
|
Dan Streetman | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Dan Streetman | ||
Groovy |
Fix Released
|
Medium
|
Dan Streetman | ||
Hirsute |
Fix Released
|
Medium
|
Dan Streetman |
Bug Description
[impact]
if a non-template service file is created as a symlink to a template service file outside the normal unit file paths, systemd will fail assertion and crash
[test case]
su -
cat <<EOF > /crashsystemd@
[Unit]
Description=
[Service]
ExecStart=/bin/true
EOF
cd /etc/systemd/system
ln -s /crashsystemd@
systemctl daemon-reload
systemctl start crashsystemd
[regression potential]
any regression would likely cause a failed assertion and crash, or failure to properly parse and/or load a service file that is a symlink
[scope]
this is needed in f/g/h
this is fixed upstream by commit 3aa57658434e7a9
this was introduced by the changes in commit e8630e69523 which was first included in v243, so this bug doesn't exist in b or earlier
[original description]
On an Ubuntu 20.04 server, when I started a newly installed systemd service 'systemctl start testemail2jira.
Jul 16 13:49:12 pangolin-jiraconf systemd[1]: Assertion 'u->instance' failed at src/core/
Jul 16 13:49:13 pangolin-jiraconf systemd[1]: Caught <ABRT>, dumped core as pid 2906637.
Jul 16 13:49:13 pangolin-jiraconf systemd[1]: Freezing execution.
apport generates a core dump which I trust is attached.
The server still works, but my terminal keeps showing:
Failed to get properties: Failed to activate service 'org.freedeskto
and pauses for 25s after each command.
In case it's relevant, the <service> i was trying to start had just been symlinked into /etc/systemd/
root@pangolin-
lrwxrwxrwx 1 root root 82 Jul 16 13:48 /etc/systemd/
File contents:
[Unit]
Description=Check that email to %i JIRA works
[Service]
#Type=oneshot
# Note: I keep the config file, testemail2jira.
# If you want testemail2jira.
WorkingDirector
ExecStart=
User=root
[Install]
WantedBy=
Perhaps the problem is that my service file is a template (testemail2jira
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: systemd 245.4-4ubuntu3.1
ProcVersionSign
Uname: Linux 5.4.0-39-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
CasperMD5CheckR
Date: Thu Jul 16 14:13:06 2020
InstallationDate: Installed on 2020-05-27 (49 days ago)
InstallationMedia: Ubuntu-Server 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
Lsusb: Error: command ['lsusb'] failed with exit code 1:
Lsusb-t:
Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 1:
MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
SystemdFailedUnits: Error: command ['systemctl', 'status', '--full', 'Error:'] failed with exit code 1: Failed to get properties: Failed to activate service 'org.freedeskto
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/01/2014
dmi.bios.vendor: SeaBIOS
dmi.bios.version: rel-1.12.
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.
dmi.modalias: dmi:bvnSeaBIOS:
dmi.product.name: Standard PC (Q35 + ICH9, 2009)
dmi.product.
dmi.sys.vendor: QEMU
Changed in systemd: | |
status: | Unknown → New |
Changed in systemd: | |
status: | New → Fix Released |
description: | updated |
Changed in systemd (Ubuntu Hirsute): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Groovy): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Hirsute): | |
status: | Confirmed → In Progress |
Changed in systemd (Ubuntu Groovy): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Focal): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in systemd (Ubuntu Hirsute): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Groovy): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Focal): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Bionic): | |
assignee: | nobody → Dan Streetman (ddstreet) |
Changed in systemd (Ubuntu Xenial): | |
assignee: | nobody → Dan Streetman (ddstreet) |
description: | updated |
Changed in systemd (Ubuntu Xenial): | |
status: | In Progress → Invalid |
Changed in systemd (Ubuntu Bionic): | |
status: | In Progress → Invalid |
assignee: | Dan Streetman (ddstreet) → nobody |
Changed in systemd (Ubuntu Xenial): | |
assignee: | Dan Streetman (ddstreet) → nobody |
Changed in systemd (Ubuntu Bionic): | |
importance: | Medium → Undecided |
Changed in systemd (Ubuntu Xenial): | |
importance: | Medium → Undecided |
> apport generates a core dump which I trust is attached.
unfortunately i don't see it attached; could you manually attach it please?