Bug#761899: systemd: crash (free(): invalid pointer) while disabling a service

Laurent Bonnaud L.Bonnaud at laposte.net
Fri May 1 09:40:25 BST 2015


Hi,

this bug looks very much like this one:

  https://bugs.launchpad.net/debian/+source/systemd/+bug/1426588

I tried the test case in a jessie system and systemctl crashes:

# cat > /etc/init.d/broken
#!/bin/sh
### BEGIN INIT INFO
# Provides: unknownservice
# Required-Start: localfs
# Required-Stop: localfs
# Default-Start: 2 3 4
# Default-Stop: 0 6
# Short-Description: unknown service
### END INIT INFO
true

# chmod 755 /etc/init.d/broken

# systemctl enable broken.service
Synchronizing state for broken.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d broken defaults
insserv: Service localfs has to be enabled to start service unknownservice
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
*** Error in `systemctl': double free or corruption (fasttop): 0x00007f91940e79e0 ***
Aborted


The crash also occurs in experimental with this systemd version:

Package: systemd
Version: 219-7

-- 
Laurent.



More information about the Pkg-systemd-maintainers mailing list