DestroyMagickWand / DestroyDrawingWand segfaulting apache

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
hankr

DestroyMagickWand / DestroyDrawingWand segfaulting apache

Post by hankr »

I have code that works great on older Magick libs, however, after updating to the latest magick, calls to DestroyMagickWand result in "[notice] child pid 19863 exit signal Segmentation fault (11)" and calls to DestroyDrawingWand result in "*** glibc detected *** /usr/sbin/httpd: free(): invalid pointer: 0x0000555573f57830 ***"

CentOS 5.1 x86_64
httpd-2.2.3-11.el5_1.centos.3
php-5.1.6-15.el5
$ Wand-config --version
6.3.9 Q16 (from ImageMagick-6.3.9-1.src.rpm )
MagickWand 1.0.7 (from tarball, hand built)

Any ideas?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: DestroyMagickWand / DestroyDrawingWand segfaulting apache

Post by magick »

Ideally you would post code that we can download to reproduce the problem. Less desirable but useful is a stack trace. ImageMagick includes regression tests against MagickWand and they run without complaint.
hankr

Re: DestroyMagickWand / DestroyDrawingWand segfaulting apache

Post by hankr »

Using your avatar:

Code: Select all

<?php
    $magickWand = NewMagickWand();
    MagickReadImage( $magickWand, '2_1196458341.png' );
    DestroyMagickWand( $magickWand );
?>
[Wed Mar 19 22:06:16 2008] [notice] child pid 19858 exit signal Segmentation fault (11)

If I remove all the destroys, all code works. Hrm, restarting apache has that code not segfaulting - i'll check some more.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: DestroyMagickWand / DestroyDrawingWand segfaulting apache

Post by magick »

Your script works for us. We're using ImageMagick 6.3.9-9 and MagickWand for PHP 1.0.7.
Post Reply