-
Notifications
You must be signed in to change notification settings - Fork 58
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
segfault when loading array #884
Comments
I think we can do better than a segfault here, but Let's keep this issue open so that we remember to replace the segfault with a reasonable exception. |
The case is handled when it's not a view.
So handling the case where it is view is the issue it seems? |
One of the astropy maintainers pointed out a technique they use for safely closing mmaps: Maybe useful for asdf? |
Fixed in 3.1.0 with #1668 |
The following code causes a segfault on my machine:
I'm on Python 3.8, Numpy 1.19.4, asdf 2.7.1 from pip (fresh conda env). Also fails out of asdf master. The segfault happens on the last line, but only when trying to force a non-lazy load with
[:]
.I'm probably abusing asdf with this syntax! I was experimenting to see if I could use
[:]
as shorthand forlazy_load=False
,copy_arrays=True
. But I think callingcopy()
achieves the same thing (possibly at the minor expense of a temporary, extra copy?). Or I should stop being lazy and just use the proper arguments!The text was updated successfully, but these errors were encountered: