Bug 742989

Summary: Strange PPDs cache handling issue
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: cupsAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cups-1.5.0-16.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-19 04:42:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim Waugh 2011-10-03 14:14:05 UTC
Description of problem:
Some printer drivers are not visible due to a CUPS issue with handling the PPDs cache.

Version-Release number of selected component (if applicable):
cups-1.5.0-10.fc16.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Install hpijs
2.lpinfo -m | grep f2200

Actual results:
Only one entry (for hpcups).

Expected results:
One entry for hpcups, another entry for hpijs.

Additional info:
It's some sort of memory handling issue.

valgrind /usr/lib/cups/daemon/cups-driverd list 1 0 ''
(as root) shows the problem in general:

==19027== Memcheck, a memory error detector
==19027== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==19027== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==19027== Command: /usr/lib/cups/daemon/cups-driverd list 1 0 
==19027== 
==19027== Invalid read of size 1
==19027==    at 0x4E847A0: _cups_strcasecmp (string.c:613)
==19027==    by 0x10D6A6: compare_ppds(ppd_info_t const*, ppd_info_t const*)
(cups-driverd.cxx:748)
==19027==    by 0x4E58B5C: cups_array_find (array.c:1265)
==19027==    by 0x4E59CFC: cupsArrayRemove (array.c:900)
==19027==    by 0x10DAFD: list_ppds(int, int, char const*)
(cups-driverd.cxx:934)
==19027==    by 0x79AB62C: (below main) (libc-start.c:226)
==19027==  Address 0x9dcfac0 is 6,368 bytes inside a block of size 7,008 free'd
==19027==    at 0x4A0662E: free (vg_replace_malloc.c:366)
==19027==    by 0x10DB05: list_ppds(int, int, char const*)
(cups-driverd.cxx:935)
==19027==    by 0x79AB62C: (below main) (libc-start.c:226)
(etc)

Haven't determined the cause yet.

Found while diagnosing bug #581656.

Comment 1 Tim Waugh 2011-10-04 15:31:54 UTC
Reported upstream.

Work-around added in cups-1.5.0-13.fc16: don't load ppds.dat.

Comment 2 Fedora Update System 2011-10-05 17:54:01 UTC
cups-1.5.0-14.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/FEDORA-2011-13168

Comment 3 Fedora Update System 2011-10-06 21:21:42 UTC
Package cups-1.5.0-14.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cups-1.5.0-14.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-13168
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-10-08 23:34:29 UTC
Package cups-1.5.0-15.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cups-1.5.0-15.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-13168
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-10-12 16:49:07 UTC
Package cups-1.5.0-16.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cups-1.5.0-16.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-13168
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2011-10-19 04:42:43 UTC
cups-1.5.0-16.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.