Bug 1478920

Summary: pdftopdf crashes on malloc()
Product: [Fedora] Fedora Reporter: Milan Kerslager <milan.kerslager>
Component: cups-filtersAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: jpopelka, twaugh, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-07 13:44:21 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:

Description Milan Kerslager 2017-08-07 13:39:17 UTC
Unable to pring PDF (gmail.com & Chrome). The system is up-to-date.

srp 07 15:21:51 velkej.pslib.cz cupsd[1827]: Printer found with device ID: MFG:Samsung;CMD:GDI;MDL:ML-1510_700;CLS:PRINTER;MODE:GDI;STATUS:IDLE;CODE:10001; Device URI: usb://Samsung/ML-1510_700?serial=2R21BABX202523L0
srp 07 15:21:51 velkej.pslib.cz cupsd[1827]: Device protocol: 2
srp 07 15:21:51 velkej.pslib.cz cupsd[1827]: Sending data to printer.
srp 07 15:21:51 velkej.pslib.cz cupsd[1827]: Set job-printer-state-message to "Sending data to printer.", current level=INFO
srp 07 15:21:51 velkej.pslib.cz cupsd[1827]: Cannot process \"<STDIN>\": Unknown filetype.
srp 07 15:21:51 velkej.pslib.cz cupsd[1827]: Process is dying with \"Could not print file <STDIN>
srp 07 15:21:51 velkej.pslib.cz cupsd[1827]: \", exit stat 2
srp 07 15:21:51 velkej.pslib.cz cupsd[1827]: Cleaning up...
srp 07 15:21:51 velkej.pslib.cz cupsd[1827]: PID 6242 (/usr/lib/cups/filter/pdftopdf) crashed on signal 11.
srp 07 15:21:51 velkej.pslib.cz cupsd[1827]: Hint: Try setting the LogLevel to "debug" to find out more.
srp 07 15:21:51 velkej.pslib.cz cupsd[1827]: Sent 0 bytes...
srp 07 15:21:51 velkej.pslib.cz cupsd[1827]: Waiting for read thread to exit...
srp 07 15:21:51 velkej.pslib.cz cupsd[1827]: PID 6243 (/usr/lib/cups/filter/foomatic-rip) stopped with status 2.
srp 07 15:21:51 velkej.pslib.cz cupsd[1827]: Hint: Try setting the LogLevel to "debug" to find out more.
srp 07 15:21:51 velkej.pslib.cz systemd-coredump[6248]: Process 6242 (pdftopdf) of user 4 dumped core.
                                                        
                                                        Stack trace of thread 6242:
                                                        #0  0x00007ff96a86d19f _int_malloc (libc.so.6)
                                                        #1  0x00007ff96a8709b8 malloc (libc.so.6)
                                                        #2  0x00007ff96a8560dd __fopen_internal (libc.so.6)
                                                        #3  0x00007ff96d04dc80 _ZN5QUtil10safe_fopenEPKcS1_ (libqpdf.so.17)
                                                        #4  0x00007ff96cfe6452 _ZN15FileInputSource11setFilenameEPKc (libqpdf.so.17)
                                                        #5  0x00007ff96cffc013 _ZN4QPDF11processFileEPKcS1_ (libqpdf.so.17)
                                                        #6  0x0000557b6f9d0cd8 _ZN23QPDF_PDFTOPDF_Processor12loadFilenameEPKc (pdftopdf)
                                                        #7  0x0000557b6f9c75f4 main (pdftopdf)
                                                        #8  0x00007ff96a8044da __libc_start_main (libc.so.6)
                                                        #9  0x0000557b6f9c782a _start (pdftopdf)
srp 07 15:21:51 velkej.pslib.cz audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@2-6245-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
srp 07 15:21:52 velkej.pslib.cz abrt-server[6256]: Deleting problem directory ccpp-2017-08-07-15:21:51.870565-768 (dup of ccpp-2017-08-07-15:19:21.870647-768)
srp 07 15:21:52 velkej.pslib.cz abrt-notification[6295]: Process 5846 (pdftopdf) crashed in malloc()
srp 07 15:21:58 velkej.pslib.cz cupsd[1827]: Read thread still active, aborting the pending read...

Comment 1 Zdenek Dohnal 2017-08-07 13:44:21 UTC
Hi,

thank you for reporting this issue, it was created by patching other issue. It has already opened issue #1478537. Downgrading qpdf-lib solve the problem.

*** This bug has been marked as a duplicate of bug 1478537 ***