Bug 1478808

Summary: [abrt] cups-filters: std::_Rb_tree<QPDFObjGen, std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> > >, std::_Select1st<std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>...
Product: [Fedora] Fedora Reporter: Bojan Jovanovic <bojov>
Component: cups-filtersAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: bojov, gtwilliams, jpopelka, kluksa, riototype, twaugh, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/c553bc2cd0b61848064172b511209d51f93c9654
Whiteboard: abrt_hash:642c3e12a52f9d98af3ba602835d489a31048678;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-09 15:59:28 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:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: cpuinfo
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Bojan Jovanovic 2017-08-07 07:18:10 UTC
Description of problem:
Printing file from LibreOffice calc on network printer with default driver for Samsung ML-2850.

Version-Release number of selected component:
cups-filters-1.13.4-2.fc26

Additional info:
reporter:       libreport-2.9.1
backtrace_rating: 4
cmdline:        ML-2850 5 bojov RN VIA LOG 1 InputSlot=Auto PageSize=A4 job-uuid=urn:uuid:5172e78a-bf7d-3612-74a8-a3923eff8afc job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1502089755 time-at-processing=1502089755 document-name-supplied=lPiLNv /var/spool/cups/d00005-001
crash_function: std::_Rb_tree<QPDFObjGen, std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> > >, std::_Select1st<std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> > > >, std::less<QPDFObjGen>, std::allocator<std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> > > > >::_M_erase
executable:     /usr/lib/cups/filter/pdftopdf
journald_cursor: s=a7a8e4b4644c4704a2b6ff86b8e7099d;i=efb0;b=4c3adebf1fe24613b6d71cd15ef83eb8;m=17e4fc31;t=556248648b54b;x=b111de89f2776b0e
kernel:         4.11.11-300.fc26.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            4

Truncated backtrace:
Thread no. 1 (9 frames)
 #0 std::_Rb_tree<QPDFObjGen, std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> > >, std::_Select1st<std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> > > >, std::less<QPDFObjGen>, std::allocator<std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> > > > >::_M_erase at /usr/include/c++/7/bits/stl_tree.h:1856
 #2 std::_Rb_tree<QPDFObjGen, std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> > >, std::_Select1st<std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> > > >, std::less<QPDFObjGen>, std::allocator<std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> > > > >::~_Rb_tree at /usr/include/c++/7/bits/stl_tree.h:949
 #3 std::map<QPDFObjGen, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> >, std::less<QPDFObjGen>, std::allocator<std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> > > > >::~map at /usr/include/c++/7/bits/stl_map.h:294
 #4 QPDF::~QPDF at libqpdf/QPDF.cc:102
 #5 std::default_delete<QPDF>::operator() at /usr/include/c++/7/bits/unique_ptr.h:78
 #6 std::unique_ptr<QPDF, std::default_delete<QPDF> >::~unique_ptr at /usr/include/c++/7/bits/unique_ptr.h:268
 #7 QPDF_PDFTOPDF_Processor::~QPDF_PDFTOPDF_Processor at filter/pdftopdf/qpdf_pdftopdf_processor.h:35
 #9 std::default_delete<PDFTOPDF_Processor>::operator() at /usr/include/c++/7/bits/unique_ptr.h:78
 #10 std::unique_ptr<PDFTOPDF_Processor, std::default_delete<PDFTOPDF_Processor> >::~unique_ptr at /usr/include/c++/7/bits/unique_ptr.h:268

Comment 1 Bojan Jovanovic 2017-08-07 07:18:17 UTC
Created attachment 1309932 [details]
File: backtrace

Comment 2 Bojan Jovanovic 2017-08-07 07:18:19 UTC
Created attachment 1309933 [details]
File: cgroup

Comment 3 Bojan Jovanovic 2017-08-07 07:18:20 UTC
Created attachment 1309934 [details]
File: core_backtrace

Comment 4 Bojan Jovanovic 2017-08-07 07:18:22 UTC
Created attachment 1309935 [details]
File: cpuinfo

Comment 5 Bojan Jovanovic 2017-08-07 07:18:23 UTC
Created attachment 1309936 [details]
File: dso_list

Comment 6 Bojan Jovanovic 2017-08-07 07:18:25 UTC
Created attachment 1309937 [details]
File: environ

Comment 7 Bojan Jovanovic 2017-08-07 07:18:26 UTC
Created attachment 1309938 [details]
File: exploitable

Comment 8 Bojan Jovanovic 2017-08-07 07:18:28 UTC
Created attachment 1309939 [details]
File: limits

Comment 9 Bojan Jovanovic 2017-08-07 07:18:30 UTC
Created attachment 1309940 [details]
File: maps

Comment 10 Bojan Jovanovic 2017-08-07 07:18:31 UTC
Created attachment 1309941 [details]
File: open_fds

Comment 11 Bojan Jovanovic 2017-08-07 07:18:32 UTC
Created attachment 1309942 [details]
File: proc_pid_status

Comment 12 Bojan Jovanovic 2017-08-07 07:18:34 UTC
Created attachment 1309943 [details]
File: var_log_messages

Comment 13 Zdenek Dohnal 2017-08-07 08:06:01 UTC
Hi,

thank you for reporting this issue, this issue seems to occurre because of qpdf update. Would you mind trying to downgrade qpdf/qpdf-libs? (to 6.0.0-5)?

Comment 14 Fedora Update System 2017-08-07 08:55:45 UTC
qpdf-6.0.0-7.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8aef53994c

Comment 15 Bojan Jovanovic 2017-08-07 23:18:29 UTC
(In reply to Zdenek Dohnal from comment #13)
> Hi,
> 
> thank you for reporting this issue, this issue seems to occurre because of
> qpdf update. Would you mind trying to downgrade qpdf/qpdf-libs? (to 6.0.0-5)?

Hello Zdenek,
On my computer has been installed only qpdf-libs.
With downgraded qpdf-libs printing of the same file in Libre Calc was been without any error.

Comment 16 Fedora Update System 2017-08-08 01:24:02 UTC
qpdf-6.0.0-7.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8aef53994c

Comment 17 Garry T. Williams 2017-08-08 19:38:23 UTC
Similar problem has been detected:

Crash happened when I printed a PDF document from okular.

The document was created from the command:

    pandoc -s -o hc.pdf hc.md

reporter:       libreport-2.9.1
backtrace_rating: 4
cmdline:        cannon-6265 33 garry hc.pdf 1 Collate finishings=3 fit-to-page job-billing media=Letter number-up=1 number-up-layout=lrtb outputorder=normal page-bottom=12 page-left=12 page-right=12 page-top=12 portrait sides=two-sided-long-edge job-uuid=urn:uuid:4b1b942e-8df5-3f35-4d21-0cf4e13c8979 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1502220461 time-at-processing=1502220461 document-name-supplied=okular_M24984.ps Duplex=DuplexNoTumble PageSize=Letter
crash_function: std::_Rb_tree<QPDFObjGen, std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> > >, std::_Select1st<std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> > > >, std::less<QPDFObjGen>, std::allocator<std::pair<QPDFObjGen const, std::set<QPDF::ObjUser, std::less<QPDF::ObjUser>, std::allocator<QPDF::ObjUser> > > > >::_M_erase
executable:     /usr/lib/cups/filter/pdftopdf
journald_cursor: s=b40aa8d2877e458093d74606967dd12f;i=241d1;b=9889e04e38cb49f3ac4e9544ee152b2d;m=11ed6639382;t=55642f507fdf8;x=bae428adcc14b666
kernel:         4.11.11-300.fc26.x86_64
package:        cups-filters-1.13.4-2.fc26
reason:         pdftopdf killed by signal 11
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            4

Comment 18 Fedora Update System 2017-08-09 15:59:28 UTC
qpdf-6.0.0-7.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 19 Zdenek Dohnal 2017-08-11 13:48:00 UTC
Hi everyone,

would you mind testing this update https://bodhi.fedoraproject.org/updates/cups-filters-1.13.4-3.fc26%20qpdf-6.0.0-8.fc26 ? This update puts back patches for CVEs in qpdf, which were in qpdf-libs-6.0.0-6.fc26 version, but it created binary incompatibility, which caused segfaults in cups-filters. It should be solved by rebuild of cups-filters against new qpdf-libs release (cups-filters rebuild is part of update). I didn't set auto-push to stable on this update, because I want to push it manually after I get positive feedback about its functionality.

Comment 20 Garry T. Williams 2017-08-11 17:33:10 UTC
> would you mind testing this update
> https://bodhi.fedoraproject.org/updates/cups-filters-1.13.4-3.fc26%20qpdf-6.0.0-8.fc26 ? 

Works for me.

I installed

    qpdf-libs-6.0.0-8.fc26.x86_64.rpm
    cups-filters-1.13.4-3.fc26.x86_64.rpm
    cups-filters-libs-1.13.4-3.fc26.x86_64.rpm

I next loaded a pdf document (the one that originally failed for me) and printed it without any errors.(In reply to Zdenek Dohnal from comment #19)