ImageMagick on armhf fails to read labels or captions from file

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
ajfclark
Posts: 9
Joined: 2016-05-20T23:47:23-07:00
Authentication code: 1151

Re: ImageMagick on armhf fails to read labels or captions from file

Post by ajfclark »

fmw42 wrote:This is just telling you where your policy.xml file reside, not what is in it. What do you get from

cat /etc/ImageMagick-6/policy.xml
It was copied from one machine to the other via scp and they both have the same md5sum so they are identical.

The only non comment lines in the policy map is:

Code: Select all

<policymap>
   <policy domain="cache" name="shared-secret" value="passphrase"/>
</policymap>
fmw42 wrote:And did you remove the policy.xml file you created at ~/.config/ImageMagick/policy.xml?
Yes.
fmw42 wrote:Do both systems work with the command from a text file, e.g. using @filename.txt rather than from a pipe to standard in?
Yes.
fmw42 wrote:If so, then snibgo may be correct. It would then be a system issue, not Imagemagick.
I guess so. I wonder what's different in the arm side of things.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ImageMagick on armhf fails to read labels or captions from file

Post by fmw42 »

Fred: in XML, <!-- ... --> denote comments, which should be ignored.
Yes, my mistake. I have corrected my earlier post. I hope that is correct though may not be the issue.
ajfclark
Posts: 9
Joined: 2016-05-20T23:47:23-07:00
Authentication code: 1151

Re: ImageMagick on armhf fails to read labels or captions from file

Post by ajfclark »

Interesting. I went back and downloaded the source tarball that the armhf deb package was built from. If I compile that, caption:@- operates as expected:

Code: Select all

pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $ ./utilities/convert -background lightblue -fill blue -pointsize 12 -size 320x caption:@- caption_file.gif
Test
pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $
After a make install to /usr/local/bin/ the previous weird no prompt behaviour returns:

Code: Select all

pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $ /usr/local/bin/convert -background lightblue -fill blue -pointsize 12 -size 320x caption:@- caption_file.gif
pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $
Digging a bit, the system version of the libs is being used. Setting LD_LIBRARY_PATH so that the libraries in /usr/local/lib/ are used and correct behaviour returns, even when using the system version of convert:

Code: Select all

pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $ export LD_LIBRARY_PATH=/usr/local/lib
pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $ /usr/local/bin/convert -background lightblue -fill blue -pointsize 12 -size 320x caption:@- caption_file.gif
This is a test
pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $ /usr/bin/convert -background lightblue -fill blue -pointsize 12 -size 320x caption:@- caption_file.gif
This is a test
pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $ 
So the issue is coming from a library. Removing libMagickCore-6.Q16.so.2 so that the system version starts getting used again and the problem resurfaces.

Does it sound like this is most likely a bug introduced by the Debian or Raspian team then?
Post Reply