Subject: pkg/25841: xscreensaver leaks X connections
To: None <>
From: Martin Husemann <>
List: pkgsrc-bugs
Date: 06/06/2004 10:35:48
>Number:         25841
>Category:       pkg
>Synopsis:       xscreensaver leaks X connections
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 06 08:37:00 UTC 2004
>Originator:     Martin Husemann
>Release:        NetBSD 2.0F
System: NetBSD 2.0F NetBSD 2.0F (REVEL) #1: Wed Jun 2 21:46:10 CEST 2004 i386
Architecture: i386
Machine: i386

I have xscreensaver-4.16 installed from pkgsrc. I don't want it, but
gnome installs and enables it automatically.

After leaving the machine running unattended, but loged in, I noticed
I could not open any new windows:

Xlib: connection to ":0.0" refused by server
Xlib: Maximum number of clients reached
rxvt: can't open display :0.0

netstat shows one network X11 connection and 55 /tmp/.X11-unix/X0 uses.
fstat shows tons of screen safer programs, like

USER     CMD          PID   FD MOUNT       INUM MODE         SZ|DV R/W
martin   hypercube   3997    3* unix stream c16df300 <-> c16df680
martin   sonar       3632    3* unix stream c16f8040 <-> c16df140
martin   spotlight   2489    3* unix stream c16de580 <-> c16df980

IMHO xscreensaver should be disabled in the default install anyway.

Leave your machine running over night with xscreensaver active