[Pkg-gmagick-im-team] Bug#835488: Bug#835488: imagemagick: Regression after security update to 8:6.8.9.9-5+deb8u4, unable to convert PDF files in PHP

Udo Pütz udo.puetz at muon.de
Mon Aug 29 09:35:41 UTC 2016


On Mon, 29 Aug 2016 10:31:22 +0200 =?UTF-8?B?VWRvIFDDvHR6?=
<udo.puetz at muon.de> wrote:
> On Sat, 27 Aug 2016 21:41:26 +0200 "Tommie Van Mechgelen" <me at tommie.it>
> wrote:
> > 
> > Hi,
> 
> Hi,
> 
> > The issue exists with all PDF-files that I have tried.
> > 
> > I tried both commands, and the result is the same for both.  So working previous the security update.
> > identify bug.pdf
> > Identify -ping bug.pdf
> > 
> > Â 8:6.8.9.9-5+deb8u4:
> > identify: unable to read image data `/tmp/magick-4028M_5kB2MxtwSv1' @ error/pnm.c/ReadPNMImage/617.
> 
> I strace'd the php call and saw that the file in question is there (in
> the example above /tmp/magick-4028M_5kB2MxtwSv1), being opened and read
> and then unlinked. But it also tries to unlink
> /tmp/magick-4028M_5kB2MxtwSv1.cache (name + ".cache") - which doesn't
> exist. I think the bug comes from that.

>From the strace. The /tmp/magick-8360Zq2saDcjr5Vf1 was mentioned in the
error message but, as can be seen, was there and unlinked

8360  unlink("/tmp/magick-8360Zq2saDcjr5Vf1.cache") = -1 ENOENT (No such
file or directory)
8360  unlink("/tmp/magick-8360Zq2saDcjr5Vf1") = 0
8360  munmap(0x7f42fa1fb000, 790528)    = 0
8360  brk(0x1b2c000)                    = 0x1b2c000
8360  open("/var/www/files/htdocs/system/logs/error.log",
O_WRONLY|O_CREAT|O_APPEND, 0644) = 6
8360  write(6, "[29-Aug-2016 10:07:38 Europe/Ber"..., 737) = 737
8360  close(6)                          = 0
8360  write(1, "<br><strong>Fatal error</strong>"..., 682) = 682



More information about the Pkg-gmagick-im-team mailing list