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

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Tue Dec 10 18:56:33 PST 2013


On Sun, Dec 08, 2013 at 04:03:57PM +0100, Peeters Simon wrote:
> 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
This should now be unnecessary in git. systemd-activate will close
all unknown fds.

Zbyszek


More information about the systemd-devel mailing list