This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xxm
Recipients lukasz.langa, xxm
Date 2022-01-24.05:40:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643002843.91.0.251135181613.issue45860@roundup.psfhosted.org>
In-reply-to
Content
A simpler example to reproduce it:
test.py
========================================
import threading
import ctypes
from test import test_code

def test_free_different_thread():
    f = test_code.CoExtra().get_func()

    class ThreadTest(threading.Thread):
        def __init__(CoExtra, f, test):
            f.test = f

    test_code.SetExtra(f.__code__, test_code.FREE_INDEX, ctypes.c_voidp(500))
    tt = ThreadTest(f, f)
    test_code.CoExtra().assertEqual(test_code.LAST_FREED, 500)

test_free_different_thread()
========================================

Just run test.py on Ubuntu 18.04 and you can observe the crash.
version of Python: Python3.11.0a4
History
Date User Action Args
2022-01-24 05:40:43xxmsetrecipients: + xxm, lukasz.langa
2022-01-24 05:40:43xxmsetmessageid: <1643002843.91.0.251135181613.issue45860@roundup.psfhosted.org>
2022-01-24 05:40:43xxmlinkissue45860 messages
2022-01-24 05:40:43xxmcreate