On Mon, 29 Aug 2016 10:31:22 +0200 =?UTF-8?B?VWRvIFDDvHR6?= <udo.pu...@muon.de> wrote: > On Sat, 27 Aug 2016 21:41:26 +0200 "Tommie Van Mechgelen" <m...@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