Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageMagick core dumped #12

Open
automata opened this issue Mar 30, 2015 · 4 comments
Open

ImageMagick core dumped #12

automata opened this issue Mar 30, 2015 · 4 comments

Comments

@automata
Copy link

While using sharp to resize a GIF file, it uses ImageMagick that unexpectedly breaks with a Illegal instruction (core dumped) while trying to read the GIF and extract metadata.

We debugged and the backtrace is available here.

It seems the bundled ImageMagick uses AVX instructions that aren't available at Heroku cedar-14. We will try to rebuild ImageMagick without AVX support.

@automata
Copy link
Author

It's possible to reproduce the same error just using ImageMagick's convert:

~ $ ./vendor/vips/bin/convert foo.gif
Illegal instruction (core dumped)

@automata
Copy link
Author

We rebuilt ImageMagick without AVX support (./configure --prefix=$OUTPUT_PATH --with-gcc-arch) and both convert and sharp works.

@alex88
Copy link
Owner

alex88 commented Mar 31, 2015

Thanks a lot for this, I'm going to rebuild our image with that flag so it works fine on cedar 14 ;)

@alex88
Copy link
Owner

alex88 commented Mar 31, 2015

@automata can you please provide a sample app in which convert is broken? I've tried to use my latest buildpack version (the last tag) and it works fine, no core dump

jcupitt pushed a commit to jcupitt/heroku-buildpack-vips that referenced this issue Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants