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

Disallow access to tree when file handle is closed #407

Merged
merged 7 commits into from
Dec 12, 2017

Conversation

drdavella
Copy link
Contributor

@drdavella drdavella commented Dec 11, 2017

This fixes #406. This also serves as a definitive answer to and closes #168. This seems like the safest approach in order to avoid inadvertently accessing memory mapped array data that is no longer available.

cc @Cadair

@drdavella drdavella added this to the v1.4.0 milestone Dec 11, 2017
@drdavella drdavella self-assigned this Dec 11, 2017
@drdavella drdavella requested a review from nden December 11, 2017 20:51
@stsci-bot
Copy link

stsci-bot bot commented Dec 11, 2017

Hi there @drdavella 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog. I help make sure that this pull request is milestoned and labeled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃.

Everything looks good from my point of view! 👍

If there are any issues with this message, please report them here.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.002%) to 95.145% when pulling e544a62 on drdavella:strict-context-handler into 01e14dd on spacetelescope:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.002%) to 95.145% when pulling 3be375d on drdavella:strict-context-handler into 01e14dd on spacetelescope:master.

Copy link
Contributor

@nden nden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense. Even if it breaks anything in jwst it's easy to fix.

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

Successfully merging this pull request may close these issues.

Accessing an Array outside of the context handler segmentation faults problem using with to read a file
3 participants