imagick_readimage() crashes Apache process

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

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

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             
           Image manipulation programs
ii  libmagick9              
           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

Site Timeline