[systemd-devel] systemd-logind bug in systemd v35

Lennart Poettering lennart at poettering.net
Wed Oct 5 05:48:24 PDT 2011


On Wed, 05.10.11 10:56, Albert Strasheim (fullung at gmail.com) wrote:

> 
> Hello
> 
> On Wed, Oct 5, 2011 at 1:40 AM, Lennart Poettering
> <lennart at poettering.net> wrote:
> > On Tue, 04.10.11 15:40, Albert Strasheim (fullung at gmail.com) wrote:
> >> Hello all
> >> I think we've found a bug in systemd-logind with systemd v35
> >> (specifically, systemd-35-1.fc16.x86_64.rpm).
> >> After a few thousand ssh logins, we start seeing stuff like this in
> >> /var/log/secure:
> > After a few thousand parallel ssh logins or one after the other?
> > This really looks as if we are leaking file descriptors in some way.
> >
> > What's the contents of /proc/$(pidof systemd-logind)/fd/ if this
> > happens?
> 
> There's 1023 entries in that directory.
> 
> > What is the contents of /run/systemd/sessions/?
> 
> There's about 2000 files in that directory. Filenames with numbers and
> the same number.ref.
> 
> This is even when no-one is logged into the system.

That looks as if somehow the sessions are leaked there. Can you do a
fuser -v on the .ref fifos as root? That should tell us if those fds are
still referenced.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list