Bug#696417: pdfopt: crash on some input PDF file
control: forwarded -1 http://bugs.ghostscript.com/show_bug.cgi?id=693522
control: tags -1 + upstream
thanks
On Sun, Dec 30, 2012 at 10:24 PM, Bastien ROUCARIES
<roucaries.bastien@gmail.com> wrote:
> Could you report upstream ?
>
> Thanks
>
> On Sat, Dec 29, 2012 at 12:01 PM, Mathieu Malaterre <malat@debian.org> wrote:
>> Confirmed:
>>
>> $ apt-cache policy ghostscript
>> ghostscript:
>> Installed: 9.05~dfsg-6.3
>> Candidate: 9.05~dfsg-6.3
>> Version table:
>> *** 9.05~dfsg-6.3 0
>> 500 http://ftp.fr.debian.org/debian/ sid/main amd64 Packages
>> 100 /var/lib/dpkg/status
>>
>> $ pdftop test.pdf bla.pdf
>> **** Error reading a content stream. The page may be incomplete.
>> Error: /typecheck in --setfileposition--
>> Operand stack:
>> --nostringval-- 13 0 9047 13 9047 343 17
>> --nostringval-- --nostringval--
>> Execution stack:
>> %interp_exit .runexec2 --nostringval-- --nostringval--
>> --nostringval-- 2 %stopped_push --nostringval--
>> --nostringval-- --nostringval-- false 1 %stopped_push 1910
>> 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3
>> %oparray_pop 1787 1 3 %oparray_pop --nostringval--
>> %errorexec_pop .runexec2 --nostringval-- --nostringval--
>> --nostringval-- 2 %stopped_push --nostringval--
>> --nostringval-- --nostringval-- --nostringval-- --nostringval--
>> 8680 --nostringval-- --nostringval-- %array_continue
>> --nostringval-- --nostringval-- %array_continue --nostringval--
>> Dictionary stack:
>> --dict:1163/1684(ro)(G)-- --dict:1/20(G)-- --dict:116/200(L)--
>> --dict:76/200(G)-- --dict:291/300(ro)(G)-- --dict:20/31(L)--
>> --dict:37/40(L)--
>> Current allocation mode is local
>> Last OS error: No such file or directory
>> Current file position is 38334
>> GPL Ghostscript 9.05: Unrecoverable error, exit code 1
>>
>>
>> Thanks
>>
>> On Fri, Dec 21, 2012 at 12:54 PM, Bastien ROUCARIES
>> <roucaries.bastien@gmail.com> wrote:
>>> Could you try to reproduce with unstable version?
>>>
>>> Le 20 déc. 2012 16:18, "Mathieu Malaterre" <malat@debian.org> a écrit :
>>>>
>>>> Package: ghostscript
>>>> Version: 8.71~dfsg2-9
>>>> Severity: important
>>>> File: /usr/bin/pdfopt
>>>>
>>>> I was trying to compress a PDF file generated from my HP/Scanner. The file
>>>> is reported as:
>>>>
>>>> $ pdfinfo
>>>> Title: /tmp/simple-scan-J7U3PW.pdf
>>>> Producer: ImageMagick 6.6.0-4 2012-05-02 Q16
>>>> http://www.imagemagick.org
>>>> CreationDate: Thu Dec 20 15:36:45 2012
>>>> ModDate: Thu Dec 20 15:36:45 2012
>>>> Tagged: no
>>>> Pages: 1
>>>> Encrypted: no
>>>> Page size: 611.76 x 841.44 pts
>>>> File size: 1715008 bytes
>>>> Optimized: no
>>>> PDF version: 1.3
>>>>
>>>> This PDF makes pdfopt crashes with:
>>>>
>>>> Error: /typecheck in --setfileposition--
>>>> Operand stack:
>>>> --nostringval-- 13 0 1714253 13 1714253 77 3348
>>>> --nostringval-- --nostringval--
>>>> Execution stack:
>>>> %interp_exit .runexec2 --nostringval-- --nostringval--
>>>> --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
>>>> --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop
>>>> 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop 1787 1 3
>>>> %oparray_pop --nostringval-- %errorexec_pop .runexec2
>>>> --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
>>>> --nostringval-- --nostringval-- --nostringval-- --nostringval--
>>>> --nostringval-- 1711312 --nostringval-- --nostringval--
>>>> %array_continue --nostringval-- --nostringval-- %array_continue
>>>> --nostringval--
>>>> Dictionary stack:
>>>> --dict:1163/1684(ro)(G)-- --dict:1/20(G)-- --dict:116/200(L)--
>>>> --dict:76/200(G)-- --dict:291/300(ro)(G)-- --dict:20/31(L)--
>>>> --dict:37/40(L)--
>>>> Current allocation mode is local
>>>> Last OS error: No such file or directory
>>>> Current file position is 38334
>>>> GPL Ghostscript 9.05: Unrecoverable error, exit code 1
>>>>
>>>>
>>>> There is one easy way to reproduce with any PDF generated by imagemagick:
>>>>
>>>> $ sudo apt-get install imagemagick
>>>> $ convert -size 611x841 xc:white test.pdf
>>>>
>>>> I am attaching test.pdf to this bug report, just in case.
>>>>
>>>> Thanks
>>>>
>>>>
>>>> -- System Information:
>>>> Debian Release: 6.0.6
>>>> APT prefers stable-updates
>>>> APT policy: (500, 'stable-updates'), (500, 'stable'), (200, 'testing'),
>>>> (100, 'unstable')
>>>> Architecture: amd64 (x86_64)
>>>>
>>>> Kernel: Linux 3.2.0-0.bpo.3-amd64 (SMP w/8 CPU cores)
>>>> Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
>>>> Shell: /bin/sh linked to /bin/dash
>>>>
>>>> Versions of packages ghostscript depends on:
>>>> ii debconf [de 1.5.36.1 Debian configuration
>>>> management sy
>>>> ii debianutils 3.4 Miscellaneous utilities
>>>> specific t
>>>> ii gsfonts 1:8.11+urwcyr1.0.7~pre44-4.2 Fonts for the Ghostscript
>>>> interpre
>>>> ii libc6 2.11.3-4 Embedded GNU C Library:
>>>> Shared lib
>>>> ii libgs8 8.71~dfsg2-9 The Ghostscript
>>>> PostScript/PDF int
>>>>
>>>> ghostscript recommends no packages.
>>>>
>>>> ghostscript suggests no packages.
>>>>
>>>> -- debconf-show failed
>>
Reply to: