[issue46070] broken subinterpreters

2021-12-14 Thread graysky


New submission from graysky :

Seems as though cpython is broken when working with subinterpreters. The 
problematic change could be (d0d29655ff) affecting import.c.[1] Reverting this 
commit and rebuilding python fixes the issues on my system with some scripts 
that import sqlite, for example, the Kodi plugin YouTube[2] and the IMDB 
Trailers plugin. Others have reported similar breakage with other python 
code[3].

Example output when the bug manifests:

ERROR : Traceback (most recent call last):
ERROR :   File "/usr/lib/python3.10/sqlite3/dbapi2.py", line 83, in 
register_adapters_and_converters
ERROR : 
ERROR : register_converter("timestamp", convert_timestamp)
ERROR : 
ERROR : KeyError
ERROR : : 
ERROR : 'timepart_full'
ERROR :  
ERROR : Exception ignored deletion of interned string failed
ERROR : :


References:
1. 
https://github.com/python/cpython/commit/d0d29655ffc43d426ad68542d8de8304f7f1346a
2. https://github.com/anxdpanic/plugin.video.youtube/issues/255
3. https://bbs.archlinux.org/viewtopic.php?id=272121

--
components: Interpreter Core
messages: 408520
nosy: graysky
priority: normal
severity: normal
status: open
title: broken subinterpreters
versions: Python 3.10

___
Python tracker 
<https://bugs.python.org/issue46070>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46070] broken subinterpreters

2021-12-14 Thread graysky


graysky  added the comment:

@Eric - I have not seen this on 3.8 or 3.9.  No data before 3.8.

--

___
Python tracker 
<https://bugs.python.org/issue46070>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46070] broken subinterpreters

2021-12-14 Thread graysky


graysky  added the comment:

While this is being evaluated, can someone give an opinion about the sanity of 
simply reverting https://hg.python.org/lookup/d0d29655ff for now in order to 
use 3.10.1?  Thanks.

--

___
Python tracker 
<https://bugs.python.org/issue46070>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46070] _PyImport_FixupExtensionObject() regression causing a crash in subintepreters

2022-01-03 Thread graysky


graysky  added the comment:

In reply to the first comment here https://bugs.python.org/issue46070#msg408520 
which affects several Kodi plugins, it seems that commenting out lines 80-84 in 
/usr/lib/python3.10/sqlite3/dbapi2.py "fixes" the bug in python 3.10.1.  I do 
not know if that helps diagnose this future or not.

--

___
Python tracker 
<https://bugs.python.org/issue46070>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com