cups in Hardy leaks file descriptors: "too many open files"

Bug #484872 reported by Matthias Kretz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: cupsys

Description: Ubuntu 8.04.3 LTS
Release: 8.04

cupsys:
  Installed: 1.3.7-1ubuntu3.6
  Candidate: 1.3.7-1ubuntu3.6
  Version table:
 *** 1.3.7-1ubuntu3.6 0
        500 http://de.archive.ubuntu.com hardy-updates/main Packages
        500 http://security.ubuntu.com hardy-security/main Packages
        100 /var/lib/dpkg/status
     1.3.7-1ubuntu3 0
        500 http://de.archive.ubuntu.com hardy/main Packages

I have a cups server on one machine, connected to the printer via USB, and print jobs are always sent from other Linux computers in the network. This works for some time and then just stops until I restart CUPS like with:
% sudo /etc/init.d/cupsys restart
Often the document is then printed twice.

Today I investigated the error a bit and the CUPS error log shows:
D [18/Nov/2009:17:08:43 +0100] [Job 1615] job-sheets=none,none
D [18/Nov/2009:17:08:43 +0100] [Job 1615] banner_page = 0
D [18/Nov/2009:17:08:43 +0100] [Job 1615] argv[0]="Lexi"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] argv[1]="1615"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] argv[2]="mkretz"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] argv[4]="1"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] argv[5]="noCollate job-uuid=urn:uuid:dfa694b9-c90b-3989-7929-819576fe01f9 media=A4 number-up=2 outputorder=normal portrait sides=one-sided"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] argv[6]="/var/spool/cups/d01615-001"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[8]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[9]="<email address hidden>"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[10]="SOFTWARE=CUPS/1.3.7"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[11]="TMPDIR=/var/spool/cups/tmp"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[12]="TZ=Europe/Berlin"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[13]="USER=root"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[16]="IPP_PORT=631"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[17]="CHARSET=utf-8"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[18]="LANG=en_US.UTF8"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[19]="PPD=/etc/cups/ppd/Lexi.ppd"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[20]="RIP_MAX_CACHE=8m"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[21]="CONTENT_TYPE=application/postscript"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[22]="DEVICE_URI=usb://Lexmark/Optra%20E310"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[23]="PRINTER=Lexi"
D [18/Nov/2009:17:08:43 +0100] [Job 1615] envp[24]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript"
E [18/Nov/2009:17:08:43 +0100] [Job 1615] Unable to create job status pipes - Too many open files.

"Too many open files." The output of "sudo lsof | grep cups" is attached.

The problem started about 3-6 months ago. I assume it is a regression introduced with some update.

Revision history for this message
Matthias Kretz (mkretz) wrote :
Revision history for this message
Phillip Susi (psusi) wrote :

Hardy has reached end of life, and this package is not present in later releases. Closing all related bugs.

Changed in cupsys (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.