Page 1 of 1

Segmentation fault on MagickReadImage

Posted: 2017-08-15T02:49:24-07:00
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

Re: Segmentation fault on MagickReadImage

Posted: 2017-08-15T23:39:47-07:00
by Mistruster
add --disable-openmp to configure script command-line, build, and reinstall
The problem is solved .