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
1.1.1: Testing astropy.wcs fails with Python-3.5 and wcslib-5.12 #4460
Comments
Probably related to #4441. I doubt this is particular to v1.1.1, which did not contain any significant changes to WCS code at the C level. That is, it probably is not a regression compared to v1.1, just to be clear. |
I can confirm the issue with Fedora. We are working on wcslib update there. Builds with wcslib 4.25.1 don't show this issue.
Full build log at https://copr-be.cloud.fedoraproject.org/results/lupinix/wcslib5-test/fedora-rawhide-x86_64/00153269-python-astropy/build.log.gz |
@embray I tested both versions 1.1 and 1.1.1 in an identical environment (including wcslib 5.12) astropy-1.1 does not have this issue, but astropy-1.1.1 has. |
I could track this down to commit 6d4552e: After reverting this patch, all tests succeed (on x86_64). I agree that this is strange; however I doublechecked it. |
How strange. Have you managed to get a stack trace for the error? I almost wonder if something is awry with the |
Though I'll also need to go through that commit with a fine-toothed comb and make sure it's not doing anything materially different from the previous code. It looked right to me before but maybe there's a subtle mistake in it somewhere. |
@olebole - could you also try and simplify the regular expression to see if the error goes away? |
Yeah looking at it again I see several areas where it could be simplified (not that it's that complex in the first place). |
Here's a simpler equivalent regexp:
|
See also this note: 6d4552e#commitcomment-15453711 That might also be related--I'm not sure if it's properly deleting all the SIP keywords because of this. |
I just made a test build with both the simplified regexp and the |
I can confirm: Builds fine now: https://copr.fedoraproject.org/coprs/lupinix/wcslib5-test/build/153475/ |
Regex optimization by Erik Bray <erik.m.bray@gmail.com> See also: issue astropy#4460 (comments) Signed-off: Kacper Kowalik <xarthisius.kk@gmail.com>
I can confirm that the |
Regex optimization by Erik Bray <erik.m.bray@gmail.com> See also: issue #4460 (comments) Signed-off: Kacper Kowalik <xarthisius.kk@gmail.com>
@olebole - so just to be clear, we can close this? |
Yep. |
Regex optimization by Erik Bray <erik.m.bray@gmail.com> See also: issue astropy#4460 (comments) Signed-off: Kacper Kowalik <xarthisius.kk@gmail.com>
On Debian, the
astropy.wcs
tests fails reproducible with some corrupted memory:I wonder whether this is connected with #4441. wcslib is compiled here with flex-2.5.39 (the current version in Debian).
Version 1.1 compiles without this problem, so this is a regression.
The text was updated successfully, but these errors were encountered: