Page 1 of 1

DestroyImageList: Assertion failed

Posted: 2013-02-06T17:45:44-07:00
by aeb
After giving the command "display img.jpg", flipping the image and quitting, I get
display: magick/list.c:447: DestroyImageList: Assertion `images->signature == 0xabacadabUL' failed.
Aborted (core dumped)

Looking what happens, I see that utilities/display.c calls MagickCommandGenesis(...,DisplayImageCommand,...)
and this never returns. Indeed, wand/display.c:DisplayImageCommand() calls DestroyImageList() on something that was
destroyed already and aborts. Of the Transform commands Crop, Chop, Flip, Flop, Rotate, ..., the first (Crop) calls
XCropImage(...,*image,...) and does not change the value of *image, but Flip, Flop, RotateLeft/Right do things
like *image=DestroyImage(*image); *image=flip_image; so that *image is destroyed. However, DisplayImageCommand()
remembered the old location of *image in image_list and tries to destroy it again.

Re: DestroyImageList: Assertion failed

Posted: 2013-02-07T05:05:36-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.2-6 Beta available by sometime tomorrow. Thanks.