FWIW, I was testing with this image: https://stocksnap.io/photo/0HFF1UYS9S
Script:
Code: Select all
<?php
$magickWand = NewMagickWand();
MagickReadImage( $magickWand, "/tmp/0HFF1UYS9S.jpg" );
// this call causes segfault on exit.
MagickResizeImage( $magickWand, 100, 78, MW_BesselFilter, 1.00 );
MagickWriteImage( $magickWand, "/tmp/thumb.jpg" );
DestroyMagickWand( $magickWand );
?>
Code: Select all
[apache@vice tmp]$ php /tmp/debug.php
Segmentation fault (core dumped)
(gdb) bt
#0 0x00007f87f68e205c in ?? ()
#1 0x00007f87f68e10a0 in ?? ()
#2 0x00007f87ebce6db8 in ?? ()
#3 0x0000000000000000 in ?? ()
CentOS 6.6 with remi RPMs. http://blog.famillecollet.com
ImageMagick-last-6.9.1.4-1.el6.remi.x86_64
php-magickwand-1.0.9.2-9.el6.remi.5.6.x86_64
php-cli-5.6.10-1.el6.remi.x86_64