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

Laurent Bonnaud L.Bonnaud at laposte.net
Tue Mar 31 13:39:32 BST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 31/03/2015 11:24, Michael Biebl wrote:

> Works fine here with systemd 215-14.
> Can you please try to reproduce the bug with this version?

On this system I use experimental so systemd is now at version 219-5.

But similar crashes still exists.  Here is a valgrind run:

root at irancy:~# valgrind systemctl disable rpcbind
==16303== Memcheck, a memory error detector
==16303== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==16303== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==16303== Command: systemctl disable rpcbind
==16303== 
Synchronizing state for rpcbind.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d rpcbind defaults
insserv: warning: current start runlevel(s) (empty) of script `rpcbind' overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (0 1 6 S) of script `rpcbind' overrides LSB defaults (0 1 6).
insserv: FATAL: service rpcbind is missed in the runlevels S to use service nfs-common
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
==16303== Invalid free() / delete / delete[] / realloc()
==16303==    at 0x482C3A8: free (vg_replace_malloc.c:473)
==16303==    by 0x1589FB: enable_sysv_units.lto_priv.389 (in /bin/systemctl)
==16303==    by 0x119758: enable_unit.lto_priv.360 (in /bin/systemctl)
==16303==    by 0x1126AE: main (in /bin/systemctl)
==16303==  Address 0x4c72348 is 0 bytes inside a block of size 39 free'd
==16303==    at 0x482C3A8: free (vg_replace_malloc.c:473)
==16303==    by 0x15877B: enable_sysv_units.lto_priv.389 (in /bin/systemctl)
==16303==    by 0x119758: enable_unit.lto_priv.360 (in /bin/systemctl)
==16303==    by 0x1126AE: main (in /bin/systemctl)
==16303== 
==16303== 
==16303== HEAP SUMMARY:
==16303==     in use at exit: 0 bytes in 0 blocks
==16303==   total heap usage: 466 allocs, 467 frees, 59,214 bytes allocated
==16303== 
==16303== All heap blocks were freed -- no leaks are possible
==16303== 
==16303== For counts of detected and suppressed errors, rerun with: -v
==16303== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

Note that on this system many packages are installed therefore the dependency graph is bigger than on a typical system.

- -- 
Laurent.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlUalYQACgkQfwbDDdi14+JeNwCfTG62rtn57U0ePsUXZ4QeZXZp
aY0AoNAmywWwJQNLa0vfsFwcf4SxGE9R
=wi0k
-----END PGP SIGNATURE-----




More information about the Pkg-systemd-maintainers mailing list