DestroyImageList: Assertion failed

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
aeb
Posts: 15
Joined: 2013-01-07T13:45:19-07:00
Authentication code: 6789

DestroyImageList: Assertion failed

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: DestroyImageList: Assertion failed

Post 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.
Post Reply