-
Notifications
You must be signed in to change notification settings - Fork 608
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
OpenEXRCore.testHUF
fails on armv7
#1135
Comments
…er size Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
@cary-ilm thanks for your patch. With this patch applied, I get a new error, though:
So, it seems that more fixes are needed. |
@kdt3rd, looks like sizeof(HufDec) on arm7 is 16, not 12. How much havoc does that wreak? |
oh, drat. To confirm, it should be 12 on arm7 (32-bit), where it's 16 on a 64-bit, not the other way round, right? sorry - my pi w/ the arm 7 is currently not booting, so I can't test this, so solving blindly. And I missed that HufDec has a pointer in it. And no, it does not cause issues to have different sizes. Those checks are mostly there to know if something unexpected changes since it's pre-allocating blocks to reduce malloc contention (so you want to make sure you are allocating enough). So these checks are there to ensure that, as well to ensure the api is fully exercised from a code-coverage standpoint. |
so if we change that * 16 to a * (sizeof(void *) + 4 + 4), that will work |
Yeah, sorry I had it backwards: the 16 in the test corresponds to sizeof(HufDec), which must be 12 on arm7. Might as well call it sizeof(uint32_t*) , since that's what it is. |
Closing, this should be fixed by #1138. |
I confirm this is now fixed. Thanks! |
…er size (AcademySoftwareFoundation#1136) Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
With version 3.1.1,
OpenEXRCore.testHUF
fails on armv7 with:The text was updated successfully, but these errors were encountered: