Bug#862124: systemd: systemctl {stop|start} nis ypbind... errors with "out of memory"

Michael Biebl biebl at debian.org
Mon May 8 23:17:08 BST 2017


Am 08.05.2017 um 22:11 schrieb Stephen Dowdy (resonance):
> Package: systemd
> Version: 215-17+deb8u7
> Severity: normal
> 
> Dear Maintainer,
> 
> Freshly updated Debian Jessie 8.8 and rebooted (different machines than reporting machine, but verified on multiple systems, and should be same package versions)
> 
> It appears that attempting to {stop|start} 'nis' together with 'ypbind' yields an "Out of memory" error.
> 
>     # systemctl stop nis ypbind
>     Out of memory.
>     # echo $?
>     1
> 
> 
> Durh, just figured that out... There is no 'ypbind' unit, it appears to be an implicit unit by nature of the LSB "Provides" directive in the /etc/init.d/nis.
> (running 'systemctl status ypbind' successfully led me to an incorrect assumption)
> 
> $ diff <(systemctl status nis) <(systemctl status ypbind)
> $
> 
> So, i guess this needs to be a "feature" request, instead (sorry, didn't fully debug until i was composing message) perhaps that systemd should either notify user that an implicit LSB Provides unit is the same as the parenting LSB init script "unit" and/or remove the replica implicit instance units from the command line.
> 
>     # systemctl stop lm-sensors lm-sensors
>     Out of memory.
>     #
> 
> So, it's not just LSB, it's specifying the same unit multiple times. (whether explicit LSB, Systemd, whatever units, or LSB implicit Provides units)
> 
> It would be far better to report that or automatically cull duplicates than to just report "Out of memory" as an error.

Thanks for the details bug report, Stephen.
This looks like a duplicate of
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=831894
which is fixed in newer version of systemd.

Since you are the second person reporting this issue, I wonder whether
you'd be willing to find out the commit which fixed this issue so we can
decide whether this commit would be suitable for a backport or not.

Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20170509/67ce5686/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list