-
Notifications
You must be signed in to change notification settings - Fork 169
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
[tx] glyphs rendered by -pdf (and -ps) are incorrect #1760
Comments
I suspect this is something I've seen before and relates to compiler optimization. If you're in a position to you might be able to confirm this by building e.g.
The compiled executables would then be in Unfortunately when I saw this I looked at the code and didn't find any self-evident undefined behavior so it's not clear what the fix would be. |
Well, on the one hand blaming one's compiler is almost always a recipe for getting egg on one's face. But on the other hand it sure seems like almost everything is pointing in that direction. The test suite doesn't pass when this problem gets compiled in so we have a pretty good idea of when it happens, and so far I've only seen it on Arch (and therefore on the bleeding edge of gcc releases). When I first saw this and looked into the code I tentatively decided it was probably a compiler problem (because there really didn't seem to be anything in the ballpark of UB) that would quickly go away because someone would run into some form of it in a more flashy context and it would quickly get fixed. But it's been months now, so I guess we need to do something about it. I guess try to make a small repeatable case. Still, very weird to run into this in this way. It makes me wonder what I'm missing. |
Would you be willing to add a note to AUR pointing to this issue and suggesting a different build strategy for the time being? (Presumably either debug or a different compiler ...) |
Might be worth seeing if |
No problem, done: https://aur.archlinux.org/packages/afdko#comment-998167 |
A build as follows still produced the incorrect output:
|
Thank you for that note and the check! That's interesting -- so it's not the most obvious example from the gcc issue queue. I guess isolating a reproducible case is the way to go. |
Here's a small reproducible case. |
New GCC bugzilla accounts are restricted right now so I'm waiting on an email request. |
See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117546 . Looks like the cause of the problem has already been fixed but the fix is still percolating outward. |
Thanks for investigating! |
This started happening in the 4.0 release I think. It was previously fine, now the outlines of the glyphs in many fonts are incorrect. E.g.
Info
Host: Arch Linux x86_64
afdko: 4.0.2 built from source via AUR
example.pdf
The text was updated successfully, but these errors were encountered: