[systemd-devel] Assertion 'fd == 3 + count' failed at activate.c:115

Peeters Simon peeters.simon at gmail.com
Sun Dec 8 07:03:57 PST 2013


2013/12/8 Peeters Simon <peeters.simon at gmail.com>:
> hej,
>
> when i try to run systemd-activate from the latest git i get an
> assertion failiure:
>
> [simon at troela server]$ /usr/lib/systemd/systemd-activate -l 9000 main.js
> Assertion 'fd == 3 + count' failed at src/activate/activate.c:115,
> function open_sockets(). Aborting.
> Aborted (core dumped)
>
> this is on archlinux with systemd-git from aur.
>
> i am not familiar with this code, so can anybody help me solving this?

sorry for the noise, after a bit debuging i found the problem:
slim appears to leak an fd into all of its children:
stat /proc/14004/fd/3  (14004 is the pid a random process in my session)
  File: '/proc/14004/fd/3' -> '/var/log/slim.log'

i now work around it by isuing exec 3<&- in bash before i run systemd-activate


More information about the systemd-devel mailing list