[MOD] STR #4049: cupsd creahses on corrupted /var/cache/cups/* files
Till Kamppeter <[email protected]>
| Newsgroups | gmane.comp.printing.cups.bugs |
|---|---|
| Message-ID | <[email protected]> |
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] See https://bugs.launchpad.net/ubuntu/+source/cups/+bug/957023 A user reports that his cupsd is crashing and as soon as he removes all files in /var/cache/cups/ before restarting cupsd cupsd keeps running for him again. There is a stack trace attached to the bug report: https://bugs.launchpad.net/ubuntu/+source/cups/+bug/957023/+attachment/2881277/+files/Stacktrace.txt This leads to the idea that most probably with the attached patch thecrash gets prevented, but I am not sure whether this is the correct solution. I cannot test as I cannot reproduce the bug. Link: http://www.cups.org/str.php?L4049 Version: 1.5.2 _______________________________________________ cups-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/cups-bugs
ppd-cache-fix-crash-lp957023.patch
(text/plain, 457 B)
--- cups/ppd-cache.c~ 2012-03-14 14:00:09.141835372 +0100
+++ cups/ppd-cache.c 2012-03-17 15:12:05.974310990 +0100
@@ -755,6 +755,8 @@
pwg_media = _pwgMediaForSize(_PWG_FROMPTS(ppd_size->width),
_PWG_FROMPTS(ppd_size->length));
+ if (pwg_media == NULL)
+ continue;
new_width = pwg_media->width;
new_length = pwg_media->length;
new_left = _PWG_FROMPTS(ppd_size->left);