Bug 529838 - cups-lpd creates non-unique files
Summary: cups-lpd creates non-unique files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-20 11:48 UTC by Jiri Popelka
Modified: 2009-12-02 04:48 UTC (History)
2 users (show)

Fixed In Version: 1.3.11-2.fc10
Clone Of: 523152
Environment:
Last Closed: 2009-12-01 04:18:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch (1.85 KB, patch)
2009-10-20 11:48 UTC, Jiri Popelka
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
CUPS Bugs and Features 3382 0 None None None Never

Description Jiri Popelka 2009-10-20 11:48:19 UTC
Created attachment 365330 [details]
Patch

Description of problem:
On a heavily loaded server some print jobs are lost and the error "cups-lpd[19827]: Unable to open temporary data file "/tmp/4a8e53a3e8baf" - File exists" appears in /var/log/messages (with different /tmp filenames).

This would appear to be caused by the way in which temporary files are created in the cupsTempFd() function in cups/tempfile.c - filenames are based on the current time. This explains why we see the error during high load, when multiple jobs are submitted at once

Version-Release number of selected component (if applicable):
cups-1.3.10 and cups-1.4.1

How reproducible:
not always(only on a heavily loaded server)

Steps to Reproduce:
1) configure the cups print queue 
2) configured the cups-lpd
3) The only way to reproduce the problem is to submit hundreds of simultaneous
print jobs to a CUPS server using the LPD protocol

Actual results:
some print jobs are lost and the error as above in logs

Expected results:
all document printed without loss 

Additional info:
This would appear to be caused by the way in which
temporary files are created in the cupsTempFd() function in cups/tempfile.c -
filenames are based on the current time, this explain why we see the error
during high load, when multiple jobs are submitted at once.

Comment 1 Fedora Update System 2009-10-27 16:39:09 UTC
cups-1.4.1-7.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/cups-1.4.1-7.fc11

Comment 2 Fedora Update System 2009-10-29 03:02:17 UTC
cups-1.4.1-7.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update cups'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10891

Comment 3 Fedora Update System 2009-11-04 12:39:09 UTC
cups-1.4.1-8.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update cups'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10891

Comment 4 Fedora Update System 2009-11-05 12:08:28 UTC
cups-1.3.11-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/cups-1.3.11-1.fc10

Comment 5 Fedora Update System 2009-11-06 00:09:45 UTC
cups-1.3.11-1.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update cups'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-11062

Comment 6 Fedora Update System 2009-11-11 14:56:53 UTC
cups-1.3.11-2.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update cups'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-11062

Comment 7 Fedora Update System 2009-11-11 15:01:28 UTC
cups-1.4.2-1.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update cups'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10891

Comment 8 Bug Zapper 2009-11-18 12:17:54 UTC
This message is a reminder that Fedora 10 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 10.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '10'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 10's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 10 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 9 Fedora Update System 2009-11-18 14:14:52 UTC
cups-1.4.2-5.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update cups'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10891

Comment 10 Fedora Update System 2009-11-20 05:23:17 UTC
cups-1.4.2-7.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update cups'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10891

Comment 11 Fedora Update System 2009-12-01 04:17:21 UTC
cups-1.4.2-7.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2009-12-02 04:48:39 UTC
cups-1.3.11-2.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.