imagick_readimage() crashes Apache process



Hi folks.

I currently have a problem with imagick_readimage() - it crashes the
whole Apache/PHP process when trying to read a PDF image.
This is a valid (viewable) PDF with a form, probably made with
Acrobat 8. Identify from the imagick package already blows errors,
see below.

# file bad.pdf
bad.pdf: PDF document, version 1.6

# identify bad.pdf
Error: /undefined in --get--
Operand stack:
--dict:15/15(L)-- 1.0 --dict:15/15(L)-- 1
MyriadPro-Regular 10 --dict:9/9(L)-- --dict:9/9(L)-- 7916
--dict:9/9(L)-- locatable --dict:8/13(L)-- loca
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval--
--nostringval-- --nostringval-- false 1 %stopped_push 1
3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop
--nostringval-- --nostringval-- 2 1 1 --nostringval--
%for_pos_int_continue --nostringval-- --nostringval--
--nostringval-- %array_continue --nostringval--
--nostringval-- --nostringval-- --nostringval--
--nostringval-- 5 11 %oparray_pop --nostringval-- false
1 %stopped_push 5 11 %oparray_pop --nostringval--
(gstatetype) --dict:0/0(L)-- --nostringval-- false 1
%stopped_push --nostringval-- %loop_continue --nostringval--
--nostringval-- --nostringval-- --nostringval--
--nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1127/1686(ro)(G)-- --dict:2/20(G)-- --dict:75/200(L)--
--dict:75/200(L)-- --dict:105/127(ro)(G)--
--dict:253/347(ro)(G)-- --dict:21/24(L)-- --dict:4/6(L)--
--dict:26/32(L)-- --dict:19/21(L)-- --dict:5/5(L)--
--dict:10/13(L)-- --dict:38/50(ro)(G)-- --dict:18/40(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.54: Unrecoverable error, exit code 1
identify: Postscript delegate failed `bad.pdf'.

We are running PHP4/Apache2 on a Debian/Etch system, version list
attached.

I could live with PHP not opening the file and handle the error
manually but as said, the whole Apache/PHP process dies and therfore
I cannot establish any workarounds whatsoever :-(

# tail log/error.log
GPL Ghostscript 8.54: Unrecoverable error, exit code 1
[Fri Mar 07 16:41:54 2008] [notice] child pid 13177 exit signal
Segmentation fault (11)

Any hints?

TIA, Sprooove


ii imagemagick 6.2.4.5.dfsg1-0.14
Image manipulation programs
ii libmagick9 6.2.4.5.dfsg1-0.14
Image manipulation library
ii php4-imagick 0.9.11+1-4.1
ImageMagick module for php4
ii libapache2-mod-php4 4.4.4-8+etch4
server-side, HTML-embedded scripting languag
ii gs-common 0.3.11
Common files for different Ghostscript relea
ii gs-gpl 8.54.dfsg.1-5etch1
The GPL Ghostscript PostScript interpreter
.



Relevant Pages

  • dvipdf failure...pls help
    ... I am struggling hard to get a pdf from .eps file ... Tex file include diagram.eps, so i could not use latexpdf. ... I tried converting tex to dvi using latex & then convert dvi to pdf, ... Execution stack: ...
    (comp.text.tex)
  • Re: Beat Toudai
    ... of empty pdf pages. ... KPDF got empty little, and empty big, pages. ... But still it and evince ... Execution stack: ...
    (sci.lang.japan)
  • Problem with Certain PDF files.
    ... I have a pdf file which loads in gs on HPux, but fails to load on Linux and ... This pdf has a couple of embedded fonts, ... the only piece that fails to convert ... Execution stack: ...
    (comp.lang.postscript)
  • Re: Ghostscript error
    ... I use imagemagick and ghostscript to convert pdf to jpg. ... Execution stack: ... Unrecoverable error, ...
    (comp.lang.postscript)
  • Ghostscript: Splitting a PDF causes "pdfmak destination page" error
    ... Library Reference PDF into 2 smaller, ... "GPL Ghostscript 8.62: ERROR: A pdfmark destination page 1203 points ...
    (comp.lang.postscript)