in reply to segfault on writing an image?

A segfault is not going to give a reason. The problem is likely in the Image::Magick module since that is a complex XS module. And I am going to guess that the smaller script is not using CGI or DBI. If the smaller script isn't just testing the image routing, I would suggest writing a test for just the function that is crashing.

It could be a build problem: what version of Perl are you using? What version of Image::Magick? What version of ImageMagick library? Was the module compiled for this version of Perl and ImageMagick library? Did you compile the module or is it a distributed package? Are you using the most recent versions?

Replies are listed 'Best First'.
Re^2: segfault on writing an image?
by geektron (Curate) on Jul 15, 2004 at 22:12 UTC
    actually, the smaller, run-via-cron script does use DBI ...

    i don't know whic versions without trying to check each one individually, and even then, i couldn't tell you if the previous person built them from RPM or from source ...

    i found another possible reason for the crashing -- trying to resize a non-existent image. the person who wrote one component fetched the images from a remote site via  system( "wget" ... blah blah ) which doesn't really have much status to check.

    i added an existence check on the attempted image, and that seemed to make the bug go away. just got *more* defensive.