strange behaviour with cgi-script (runs out fo memory)
Posted: 2008-11-04T16:11:33-07:00
Hi all,
I have a problem that I can't resolve even with my fellow perlmonks.
The post on PM is this one
I wrote a script width some functions that uses PerlMagick and some not. The script works
nice, the problem appears when I start triying to disable the 'Perlmagick functions' of the script if the Image::Magick is not installed.
Test snippets like :
runs out of memory.
from the logs :
I dev on an XP, perl 5.10, IM 6.4.4-2-Q16-windows-dll_.exe.
Same effect on a clean debian virtual machine.
If anyone has a clue !?
Thanks.
Have a nice day.
I have a problem that I can't resolve even with my fellow perlmonks.
The post on PM is this one
I wrote a script width some functions that uses PerlMagick and some not. The script works
nice, the problem appears when I start triying to disable the 'Perlmagick functions' of the script if the Image::Magick is not installed.
Test snippets like :
Code: Select all
#!/usr/bin/perl -w
use strict;
use warnings;
eval { require Image::Magick };
my $is_Magick = $@ ? 0 : 1;
print "Content-type: text/html; charset=ISO-8859-1\n\n";
print "<h1>$is_Magick</h1>";
from the logs :
Code: Select all
Deep recursion on subroutine "Image::Magick::AUTOLOAD" at Image/Magick.pm line 42.
Same effect on a clean debian virtual machine.
If anyone has a clue !?
Thanks.
Have a nice day.