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

Fix Segfault during finalization #615

Merged
merged 2 commits into from Nov 15, 2018

Conversation

JobJob
Copy link
Contributor

@JobJob JobJob commented Nov 15, 2018

Incorporates change introduced in #603

Basically icorporates changes introduced in JuliaPy#603
@JobJob
Copy link
Contributor Author

JobJob commented Nov 15, 2018

@tkf does this make sense? I didn't really pay attention, just copied what was done for pydecref_(::Union{PyPtr, PyObject}) in #603 and it fixed the segfault locally on 0.7

@tkf
Copy link
Member

tkf commented Nov 15, 2018

Awesome! Thanks a lot for tracking down the issue super quickly. Yes, it looks like the right thing to do. Once CPython runtime is finalized, we can't call any CPython API.

I guess this the only function that is touched in #487 and could be called via finalizer?

@JobJob
Copy link
Contributor Author

JobJob commented Nov 15, 2018

I guess this the only function that is touched in #487 and could be called via finalizer?

Yeah I think so.

Btw, took the liberty to fix a typo I noticed while checking.

@stevengj
Copy link
Member

LGTM; AppVeyor failure is an unrelated network glitch.

@stevengj stevengj merged commit 1e0dce1 into JuliaPy:master Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants