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

Silent ABI break in 6.9.10-11 on i386 #31

Closed
2 of 3 tasks
rbalint opened this issue Dec 18, 2018 · 1 comment
Closed
2 of 3 tasks

Silent ABI break in 6.9.10-11 on i386 #31

rbalint opened this issue Dec 18, 2018 · 1 comment

Comments

@rbalint
Copy link

rbalint commented Dec 18, 2018

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am using the latest version of ImageMagick
  • I have searched open and closed issues to ensure it has not already been reported

Description

Commit 94a86b3 changed sizeof(MagickDoubleType) on i386 and made the low level ABI break for programs accessing some public structs via pointers.

Steps to Reproduce

test.c:
#include <magick/MagickCore.h>
#include <stddef.h>
int main(){
printf("%d %d\n", offsetof(DrawInfo, text), sizeof(MagickDoubleType));
return 0;
}

# compiled with 6.9.10-8
$ ./a.out
280 12

# compiled with 6.9.10-14
$ ./a.out
272 8

System Configuration

  • ImageMagick version: 6.9.10-14
  • Environment (Operating system, version and so on): Ubuntu 19.04 i386
@urban-warrior
Copy link
Member

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants