New submission from Kun He <hekun19890...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue43747>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to