[Pkg-cups-devel] Bug#489045: cups: infinite loop, 100%CPU use, while trying to print with HPJetDirect

Andreas Mohr andi at lisas.de
Tue Nov 11 18:33:02 UTC 2008


Hi,

On Tue, Nov 11, 2008 at 02:46:55PM +0100, Samuel Thibault wrote:
> Right but here the issue is on the input side: device_fd got to EOF,
> thus select() returning it and read() on it returning 0. The attached
> patch at least prevents select from returning, avoiding 100% CPU usage.

Very nice, and fast reaction, too!

I wanted to verify this patch to succeed versus the unpatched version
to still fail with the very same test setup each,
but I failed during package build
(via fakeroot dpkg-buildpackage in the apt-get source'd cups-1.3.8/ directory):

.
.
.
lsb/usr/cups-included/Zebra/zebra.ppd Zebra ZPL Label Printer, 1.3
zebra.ppd Zebra ZPL Label Printer, 1.3
    PASSED

Test Summary

PASS: Printer 'Test1' correctly produced 55 page(s).
PASS: Printer 'Test2' correctly produced 23 page(s).
PASS: 154 requests processed.
PASS: 0 emergency messages.
PASS: 0 alert messages.
PASS: 0 critical messages.
FAIL: 0 error messages, expected 9.
PASS: 0 warning messages.
PASS: 0 notice messages.
PASS: 1 info messages.
FAIL: 0 debug messages, expected more than 0.
PASS: 0 debug2 messages.

2 tests failed.
Log files can be found in /tmp/cups-root/log.
A HTML report was created in /tmp/cups-root/cups-str-1.3-2008-11-11-root.html.

Copies of the error_log and cups-str-1.3-2008-11-11-root.html files are in
/usr/src/system/cups-1.3.8/test.

make[1]: *** [check] Error 1
make[1]: Leaving directory `/usr/src/system/cups-1.3.8'
make: *** [debian/stamp-makefile-check] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
birgit:/usr/src/system/cups-1.3.8#




Or, simply stated, how to disable the test suite to get a successful
.deb package build?
(maybe I shouldn't ignore a failing test run though; then what?)

Or could you tell me what the usual way is to do this cups .deb package build?

Thanks a lot,

Andreas Mohr





More information about the Pkg-cups-devel mailing list