Skip to content

Fix Segfault during finalization#615

Merged
stevengj merged 2 commits intoJuliaPy:masterfrom
JobJob:fix-finalizer-segfault
Nov 15, 2018
Merged

Fix Segfault during finalization#615
stevengj merged 2 commits intoJuliaPy:masterfrom
JobJob:fix-finalizer-segfault

Conversation

@JobJob
Copy link
Copy Markdown
Contributor

@JobJob JobJob commented Nov 15, 2018

Incorporates change introduced in #603

Basically icorporates changes introduced in JuliaPy#603
@JobJob
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants