Open CMogilko opened 6 years ago
Much appreciated for including all the necessary details as well as a great repro. I was able to reproduce this as well on ImageMagick 6.9.9-35 using go 1.11 on ubuntu 16. However, this does not crash when tested against the oldest v2 version we support, 6.9.0-2. This means its entirely related to some kind of ImageMagick bug and not the Go imagick bindings. Maybe you could try this against one of the most recent 6.9.x releases to see if it is fixed? Or you can try a slightly older 6.9.x
@justinfx I get crash with "gopkg.in/gographics/imagick.v1
and 6.7.8.9-15 (centos7). And with 6.8.9.9 (ubuntu xenial).
I tried to free memory manually with Destroy instead of finalizers. It decreased frequency of crashes a lot, but it still can happen.
Well like I said, it didn't crash with 6.9.0-2 so the variable seems to be the version of ImageMagick
@justinfx I was able to reproduce panic at 6.9.0-2. I ran docker container ubuntu xenial, downloaded sources from https://launchpad.net/imagemagick/main/6.9.0-2/+download/ImageMagick-6.9.0-2.tar.gz, built it and after 1000+ iterations (outer k
loop from example). I think that with 6.9.0-2 it is less frequent, but still possible.
I can take another look at this when I have some time. But I wonder, can you reproduce this for other formats besides gif?
Hi, I've got panic by SIGABRT while making
ThumbnailImage()
withCoalesceImages()
and gif-files.It seems that image blob was corrupted.
My environment: OS:
fedora 28
Go:go version go1.10.3 linux/amd64
ImageMagick:ImageMagick-6.9.9.38-1.fc28.x86_64
Panic stacktrace:
Test tool for reproducing, it may be required to run tool up to 10 times to get panic. Gif is attached to issue.