Comment 30 for bug 1652489

Revision history for this message
Timo Mihaljov (a-timo) wrote :

It seems that cinnamon-screensaver is leaking file descriptors and crashes when
it hits the hard ulimit.

Here's my screensaver process:

    timomi@melanthos ~> ps 2592
      PID TTY STAT TIME COMMAND
     2592 ? Sl 0:32 cinnamon-screensaver

It has loads of open eventfd file descriptors (797 in fact):

    timomi@melanthos ~> lsof -p 2592 | grep eventfd | head -10
    cinnamon- 2592 timomi 4u a_inode 0,11 0 8064 [eventfd]
    cinnamon- 2592 timomi 6u a_inode 0,11 0 8064 [eventfd]
    cinnamon- 2592 timomi 7u a_inode 0,11 0 8064 [eventfd]
    cinnamon- 2592 timomi 9u a_inode 0,11 0 8064 [eventfd]
    cinnamon- 2592 timomi 10u a_inode 0,11 0 8064 [eventfd]
    cinnamon- 2592 timomi 19u a_inode 0,11 0 8064 [eventfd]
    cinnamon- 2592 timomi 20u a_inode 0,11 0 8064 [eventfd]
    cinnamon- 2592 timomi 21u a_inode 0,11 0 8064 [eventfd]
    cinnamon- 2592 timomi 22u a_inode 0,11 0 8064 [eventfd]
    cinnamon- 2592 timomi 24u a_inode 0,11 0 8064 [eventfd]

    timomi@melanthos ~> lsof -p 2592 | grep eventfd | wc -l
    797

After locking the screen (with Ctrl+Alt+L) for a minute or so, the amount of
FDs grows has grown to 835.

    timomi@melanthos ~> lsof -p 2592 | grep eventfd | wc -l
    835

The number of open FDs doesn't seem to grow when the screen is unlocked.

I restarted the screensaver with the hard ulimit for file handles set to 250,
locked the screen and waited for a couple of minutes. The screen unlocked on
the first event (I think I moved the mouse) with no password prompt and crashed
when I tried to lock the screen again.