Skip to content

SIGSEGV when call mainthread.Terminate() #11

@disktnk

Description

@disktnk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions