[Magick-bugs] PerlMagick: Failing to load Magick.so in eval block brings down machine
Michael Kröll
pepl at cpan.org
Wed Oct 15 08:15:48 PDT 2008
Hi,
Problem Description:
In situations there the image magick shared libraries are not found any
longer, e.g. because of an outdated ls.so.cache, Image::Magick::AUTOLOAD
causes an endless loop eating up all memory and CPU if Image::Magick is
require'd at runtime via an string eval block. Endless loop will be
triggered at exit of the program at latest when the END block calls the
XS UNLOAD() function which is in this case not defined.
Systems Affected:
At least Solaris and Linux with current stable kernels
Fix:
Check if Image::Magick::constant is defined in AUTOLOAD() function.
Patch against 6.4.4 attached.
Regards,
Michael Kröll
--
063A F25E B064 A98F A479 1690 78CD D023 5E2A 6688
http://zis.uibk.ac.at/.m/uibk.ac.at_pgp_pubkey.asc
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Magick.pm.in-noendlessloop.patch
Url: http://studio.imagemagick.org/pipermail/magick-bugs/attachments/20081015/02bfbb1e/attachment.ksh
More information about the Magick-bugs
mailing list