systemd abort
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Fedora) |
Won't Fix
|
High
|
|||
systemd (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
#######
sudo systemctl stop mariadb
# needs to be fast, do not sleep more than 1 sec
sudo systemctl start mariadb
# delay does not matter
sudo systemctl disable mariadb
# delay does not matter
sudo systemctl enable mariadb
# delay does not matter
sudo systemctl status mariadb
#######
Here the service starts showing the infamous
#######
● mariadb.service - MariaDB database server
Loaded: loaded (/lib/systemd/
preset: enabled)
Drop-In: /etc/systemd/
Active: inactive (dead) since Wed 2015-10-14 15:04:58 UTC; 58s ago
Main PID: 880 (mysqld)
Status: "Taking your SQL requests now..."
CGroup: /system.
└─880 /usr/sbin/mysqld
#######
If I then shut down the MariaDB server, e.g. via the shutdown command
(or just SIGTERM the process), I get
#######
Broadcast message from systemd-
2015-10-14 15:14:18 UTC):
systemd[1]: Caught <ABRT>, dumped core as pid 960.
Broadcast message from systemd-
2015-10-14 15:14:18 UTC):
systemd[1]: Freezing execution.
#######
systemd:
ii libpam-
amd64 system and service manager - PAM module
ii libsystemd0:amd64 219-7ubuntu3
amd64 systemd utility library
ii systemd 219-7ubuntu3
amd64 system and service manager
ii systemd-sysv 219-7ubuntu3
amd64 system and service manager - SysV links
with also occurs on Redhat - backtrace: https:/
Changed in systemd (Fedora): | |
importance: | Unknown → High |
status: | Unknown → Won't Fix |
Changed in systemd (Ubuntu): | |
status: | Confirmed → Won't Fix |
Description of problem:
rapidly stop / starting a service segfaults systemd. Result was rather limited system functionality
$ sudo reboot .systemd1 timed out
Failed to start reboot.target: Activation of org.freedesktop
Failed to open /dev/initctl: No such device or address
Failed to talk to init daemon.
Version-Release number of selected component (if applicable):
Name : systemd
Arch : x86_64
Epoch : 0
Version : 219
Release : 24.fc22
mariadb-server rpm (built from 10.1 branch - https:/ /github. com/MariaDB/ server/ tree/10. 1) - cmake . -DBUILD_ CONFIG= mysql_release -DRPM=fedora22 && make -j 8 package
Steps to Reproduce:
####### ####### ####### #######
sudo systemctl stop mariadb;sudo systemctl start mariadb
# needs to be fast, do not sleep more than 1 sec
# delay does not matter
sudo systemctl disable mariadb
# delay does not matter
sudo systemctl enable mariadb
# delay does not matter
sudo systemctl status mariadb
####### ####### ####### #######
Here the service starts showing the infamous
####### ####### ####### #######
● mariadb.service - MariaDB database server system/ mariadb. service; enabled; vendor system/ mariadb. service. d
└─ migrated- from-my. cnf-settings. conf slice/mariadb. service
Loaded: loaded (/lib/systemd/
preset: enabled)
Drop-In: /etc/systemd/
Active: inactive (dead) since Wed 2015-10-14 15:04:58 UTC; 58s ago
Main PID: 880 (mysqld)
Status: "Taking your SQL requests now..."
CGroup: /system.
└─880 /usr/sbin/mysqld
####### ####### ####### #######
If I then shut down the MariaDB server, e.g. via the shutdown command
(or just SIGTERM the process),
Actual results:
17:40 root@spaceman ~ # systemctl stop mariadb.service ; systemctl start mariadb.service
17:40 root@spaceman ~ # systemctl status -l mariadb.service systemd/ system/ mariadb. service; enabled; vendor preset: disabled) system/ mariadb. service. d
└─migrated- from-my. cnf-settings. conf /usr/bin/ sync (code=exited, status=0/SUCCESS) slice/mariadb. service
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/
Drop-In: /etc/systemd/
Active: active (running) since Wed 2015-10-14 17:40:30 CEST; 3s ago
Process: 8715 ExecStartPre=
Main PID: 8748 (mysqld)
Status: "Taking your SQL requests now..."
CGroup: /system.
└─8748 /usr/sbin/mysqld
Oct 14 17:40:28 spaceman systemd[1]: Starting MariaDB database server...
Oct 14 17:40:29 spaceman mysqld[8748]: 2015-10-14 17:40:29 139704082127040 [Note] /usr/sbin/mysqld (mysqld 10.1.8-MariaDB-log) starting as process 8748 ...
Oct 14 17:40:30 spaceman systemd[1]: Started MariaDB database server.
17:40 root@spaceman ~ # systemctl stop mariadb.service ; systemctl start mariadb.service
17:41 root@spaceman ~ # systemctl disable mariadb.service ; systemctl enable mariadb.service system/ mysqld. service. system/ multi-user. target. wants/mariadb. service. system/ mysql.service. system/ mysql.service to /usr/lib/ systemd/ system/ mariadb. service.
Removed symlink /etc/systemd/
Removed symlink /etc/systemd/
Removed symlink /etc/systemd/
Created symlink from /etc/systemd/
Created symlink from /etc/systemd/sys...