Bug 85244

Summary: [pdftops] Segfault in PSOutputDev.cc:3576
Product: poppler Reporter: MH <ravdune+bugzilla>
Component: utilsAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: fdo-bugs
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: segfault-PSOutputDev.cc:3576.pdf
85-unfuzzed.pdf

Description MH 2014-10-20 14:51:25 UTC
Created attachment 108120 [details]
segfault-PSOutputDev.cc:3576.pdf

OS: Fedora 20 (running in virtualbox)
Dependencies installed with: yum-builddep poppler
Version: GIT Master
Command line: master/utils/pdftops <attached.pdf> /dev/null

###############################################################################
GDB output:

Reading symbols from /home/foobar/poppler/utils/.libs/lt-pdftops...done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Syntax Error: Top-level pages object is wrong type (null)
Syntax Warning: Object (1 65535) is not a pageDict
Syntax Warning: Failed parsing page 2 using hint tables
Syntax Error: Top-level pages object is wrong type (null)
Syntax Error: Failed writing resources for page 2
Syntax Warning: Object (3 0) is not a pageDict
Syntax Warning: Failed parsing page 3 using hint tables
Syntax Error: Top-level pages object is wrong type (null)
Syntax Error: Failed writing resources for page 3
Syntax Warning: Object (5 0) is not a pageDict
Syntax Warning: Failed parsing page 4 using hint tables
Syntax Error: Top-level pages object is wrong type (null)
Syntax Error: Failed writing resources for page 4
Syntax Error: Top-level pages object is wrong type (null)
Syntax Error: Top-level pages object is wrong type (null)

Program received signal SIGSEGV, Segmentation fault.
PSOutputDev::startPage (this=0x642ff0, pageNum=1, state=0x645400, xrefA=<optimized out>) at PSOutputDev.cc:3576
3576      Page *page;
Comment 1 MH 2014-10-21 13:46:12 UTC
Created attachment 108182 [details]
85-unfuzzed.pdf

Attached unfuzzed file as per request.
Comment 2 Albert Astals Cid 2015-01-08 16:58:06 UTC
I don't get any segmentation fault with current master. Plese try again and if you can still reproduce ost the whole backtrace, not just the last line

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.