[New-bugs-announce] [issue43747] Can't create new interpreter in multi thread

Kun He report at bugs.python.org
Tue Apr 6 08:22:14 EDT 2021


New submission from Kun He <hekun19890913 at gmail.com>:

Hello,

I'm working a C extension interface of Python. I want to create a new interpreter by using the function Py_NewInterpreter() in a new thread, which is created by pthread_create (my test files are in attachment), but there are always errors when calling Py_NewInterpreter() such as "failed: object already tracked by the garbage collector". 

I suppose that it may be a bug of Python source code? I would like to ask how to solve the problem and create a new interpreter in multi thread in Python C extension?

Sincerely,
Kun

----------
components: C API
files: newinter.tar.xz
messages: 390322
nosy: hekun19890913
priority: normal
severity: normal
status: open
title: Can't create new interpreter in multi thread
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49936/newinter.tar.xz

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43747>
_______________________________________


More information about the New-bugs-announce mailing list