Bug 1892426

Summary: Crash:free(): invalid pointer in cups backend
Product: [Fedora] Fedora Reporter: Jeremy Nickurak <redhat-bugs>
Component: cupsAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: pzhukov, twaugh, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cups-2.3.3-18.fc33 cups-2.3.3-18.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-13 03:47:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
F33: Add (modified) fix for invalid-free none

Description Jeremy Nickurak 2020-10-28 18:23:58 UTC
Created attachment 1724886 [details]
F33: Add (modified) fix for invalid-free

Getting this error whenever I try to print:

$ journalctl -u cups --grep free --since yesterday
-- Logs begin at Thu 2020-10-22 17:59:34 MDT, end at Wed 2020-10-28 12:19:00 MDT. --
Oct 27 17:07:01 bhtpc cupsd[1143]: free(): invalid pointer


The same issue was reported to debian here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=961345

Attaching my (minor) variation on the patch from that debian bug to get it to apply to Fedora packaging, which does solve the issue for me.

I've been having this issue for a couple fedora releases at least, so this may be worth backporting.

Comment 1 Zdenek Dohnal 2020-11-09 08:50:49 UTC
Hi Jeremy,

thank you for reporting the issue and porting it to Fedora!

I passed Bernhard's PR to OpenPrinting/cups as https://github.com/OpenPrinting/cups/pull/43 , where the CUPS development is more active than in apple/cups.

Comment 2 Fedora Update System 2020-11-10 14:11:18 UTC
FEDORA-2020-18d1d07994 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-18d1d07994

Comment 3 Fedora Update System 2020-11-10 14:20:34 UTC
FEDORA-2020-010e067be1 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-010e067be1

Comment 4 Fedora Update System 2020-11-11 02:18:46 UTC
FEDORA-2020-010e067be1 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-010e067be1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-010e067be1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2020-11-11 02:20:00 UTC
FEDORA-2020-18d1d07994 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-18d1d07994`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-18d1d07994

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2020-11-13 03:47:03 UTC
FEDORA-2020-18d1d07994 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2020-11-19 01:30:50 UTC
FEDORA-2020-010e067be1 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.