Segmentation fault on MagickReadImage

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
Mistruster
Posts: 2
Joined: 2017-08-15T00:36:12-07:00
Authentication code: 1151

Segmentation fault on MagickReadImage

Post by Mistruster »

When I deal the PNG file, it often causes stackoverflow ( PHP Version 5.6.30 / ImageMagick v6.6.9 )
Here is the test script:

Code: Select all

$png    = base64_decode("iVBORw0KGgoAAAANSUhEUgAAAK4AAACuAQMAAACVwqStAAAABlBMVEX///8AAABVwtN+AAAAzklEQVRIie2WUQrEMAhEhRwgR8rVc6QcIOCOmkLILux+OfuRobT29UccrRG5uvpNauoIZrVo8rA9a5+1475eWbgqWBkNGJnSsUib/4GnBWzspvn3dy9TcTSy5fihv1PxUj1BPvbUvJGtTo2IUadg6GWkScTFTdNhjaOjEbHb1YAt2KzLx0jQTLNe1pgtFg6hSGVI2UqVj5/FaEtgGywCjh8eUjPfsAqI2JeA+mIs22GBhaNOkLBxDLecx5Zc7Kat6/QyFa/F+GwDIr66+qYXnsTkOpWVj1EAAAAASUVORK5CYII=");

$mw = NewMagickWand();
$im = MagickReadImageBlob($mw, $png);
print_r($im);
echo "\n\n\n";


Return:

Code: Select all

Segmentation fault (core dumped)


Maybe this line on magick/constitute.c
image=GetImageDecoder(magick_info)(read_info,exception);


Only x64 version return Segmentation fault
Mistruster
Posts: 2
Joined: 2017-08-15T00:36:12-07:00
Authentication code: 1151

Re: Segmentation fault on MagickReadImage

Post by Mistruster »

add --disable-openmp to configure script command-line, build, and reinstall
The problem is solved .
Post Reply