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

SIGSEGV when call mainthread.Terminate() #11

Open
disktnk opened this issue Dec 14, 2016 · 0 comments
Open

SIGSEGV when call mainthread.Terminate() #11

disktnk opened this issue Dec 14, 2016 · 0 comments

Comments

@disktnk
Copy link
Member

disktnk commented Dec 14, 2016

When call mainthread.Terminate(), start finalizing written in mainthread/init.go and C.Py_Finalize() is called after releasing GIL state.

C.Py_Finalize()

simple repro code

C.Py_Initialize()
C.PyEval_InitThreads()
// .. process is done and start finalizing ...
C.PyEval_ReleaseThread(C.PyGILState_GetThisThreadState())
C.Py_Finalize() // -> SIGSEGV
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

No branches or pull requests

1 participant