Skip to content

Instantly share code, notes, and snippets.

@mpage
Created April 17, 2024 04:28
Show Gist options
  • Select an option

  • Save mpage/132db5ea9d33fc0d24f6f150e1c2d172 to your computer and use it in GitHub Desktop.

Select an option

Save mpage/132db5ea9d33fc0d24f6f150e1c2d172 to your computer and use it in GitHub Desktop.
WARNING: ThreadSanitizer: data race (pid=59576)
Read of size 4 at 0x000000cec444 by thread T957:
#0 _PySeqLock_AbandonWrite /home/mpage/local/cpython/Python/lock.c:495:33 (python+0x8c0e19) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#1 update_cache_gil_disabled /home/mpage/local/cpython/Objects/typeobject.c:4994:9 (python+0x6f863d) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#2 _PyType_Lookup /home/mpage/local/cpython/Objects/typeobject.c:5102:9 (python+0x6f863d)
#3 _PyObject_GenericGetAttrWithDict /home/mpage/local/cpython/Objects/object.c:1570:13 (python+0x6a4144) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#4 PyObject_GenericGetAttr /home/mpage/local/cpython/Objects/object.c:1659:12 (python+0x6a3fc4) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#5 PyObject_GetAttr /home/mpage/local/cpython/Objects/object.c:1173:18 (python+0x6a35c1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#6 _PyEval_EvalFrameDefault /home/mpage/local/cpython/Python/generated_cases.c.h:3579:28 (python+0x82207f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#7 _PyEval_EvalFrame /home/mpage/local/cpython/./Include/internal/pycore_ceval.h:114:16 (python+0x7f997f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#8 _PyEval_Vector /home/mpage/local/cpython/Python/ceval.c:1807:12 (python+0x7f997f)
#9 _PyFunction_Vectorcall /home/mpage/local/cpython/Objects/call.c (python+0x5f2b09) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#10 _PyObject_VectorcallTstate /home/mpage/local/cpython/./Include/internal/pycore_call.h:168:11 (python+0x5f0dab) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#11 PyObject_CallOneArg /home/mpage/local/cpython/Objects/call.c:395:12 (python+0x5f2a14) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#12 property_descr_get /home/mpage/local/cpython/Objects/descrobject.c:1690:12 (python+0x609bb1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#13 _PyObject_GenericGetAttrWithDict /home/mpage/local/cpython/Objects/object.c:1577:19 (python+0x6a424f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#14 PyObject_GenericGetAttr /home/mpage/local/cpython/Objects/object.c:1659:12 (python+0x6a3fc4) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#15 PyObject_GetAttr /home/mpage/local/cpython/Objects/object.c:1173:18 (python+0x6a35c1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#16 _PyEval_EvalFrameDefault /home/mpage/local/cpython/Python/generated_cases.c.h:3579:28 (python+0x82207f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#17 _PyEval_EvalFrame /home/mpage/local/cpython/./Include/internal/pycore_ceval.h:114:16 (python+0x7f997f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#18 _PyEval_Vector /home/mpage/local/cpython/Python/ceval.c:1807:12 (python+0x7f997f)
#19 _PyFunction_Vectorcall /home/mpage/local/cpython/Objects/call.c (python+0x5f2b09) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#20 _PyObject_VectorcallTstate /home/mpage/local/cpython/./Include/internal/pycore_call.h:168:11 (python+0x5f0dab) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#21 PyObject_CallOneArg /home/mpage/local/cpython/Objects/call.c:395:12 (python+0x5f2a14) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#22 property_descr_get /home/mpage/local/cpython/Objects/descrobject.c:1690:12 (python+0x609bb1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#23 _PyObject_GenericGetAttrWithDict /home/mpage/local/cpython/Objects/object.c:1577:19 (python+0x6a424f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#24 PyObject_GenericGetAttr /home/mpage/local/cpython/Objects/object.c:1659:12 (python+0x6a3fc4) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#25 PyObject_GetAttr /home/mpage/local/cpython/Objects/object.c:1173:18 (python+0x6a35c1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#26 _PyEval_EvalFrameDefault /home/mpage/local/cpython/Python/generated_cases.c.h:3579:28 (python+0x82207f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#27 _PyEval_EvalFrame /home/mpage/local/cpython/./Include/internal/pycore_ceval.h:114:16 (python+0x7f997f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#28 _PyEval_Vector /home/mpage/local/cpython/Python/ceval.c:1807:12 (python+0x7f997f)
#29 _PyFunction_Vectorcall /home/mpage/local/cpython/Objects/call.c (python+0x5f2b09) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#30 _PyObject_VectorcallTstate /home/mpage/local/cpython/./Include/internal/pycore_call.h:168:11 (python+0x5f0dab) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#31 PyObject_CallOneArg /home/mpage/local/cpython/Objects/call.c:395:12 (python+0x5f2a14) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#32 property_descr_get /home/mpage/local/cpython/Objects/descrobject.c:1690:12 (python+0x609bb1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#33 _PyObject_GenericGetAttrWithDict /home/mpage/local/cpython/Objects/object.c:1577:19 (python+0x6a424f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#34 PyObject_GenericGetAttr /home/mpage/local/cpython/Objects/object.c:1659:12 (python+0x6a3fc4) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#35 PyObject_GetAttr /home/mpage/local/cpython/Objects/object.c:1173:18 (python+0x6a35c1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#36 _PyEval_EvalFrameDefault /home/mpage/local/cpython/Python/generated_cases.c.h:3579:28 (python+0x82207f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#37 _PyEval_EvalFrame /home/mpage/local/cpython/./Include/internal/pycore_ceval.h:114:16 (python+0x7f997f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#38 _PyEval_Vector /home/mpage/local/cpython/Python/ceval.c:1807:12 (python+0x7f997f)
#39 _PyFunction_Vectorcall /home/mpage/local/cpython/Objects/call.c (python+0x5f2b09) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#40 _PyObject_VectorcallTstate /home/mpage/local/cpython/./Include/internal/pycore_call.h:168:11 (python+0x5f80cb) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#41 method_vectorcall /home/mpage/local/cpython/Objects/classobject.c:70:20 (python+0x5f6912) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#42 _PyVectorcall_Call /home/mpage/local/cpython/Objects/call.c:273:16 (python+0x5f2547) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#43 _PyObject_Call /home/mpage/local/cpython/Objects/call.c:348:16 (python+0x5f273b) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#44 PyObject_Call /home/mpage/local/cpython/Objects/call.c:373:12 (python+0x5f2937) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#45 thread_run /home/mpage/local/cpython/./Modules/_threadmodule.c:337:21 (python+0x9f5be8) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#46 pythread_wrapper /home/mpage/local/cpython/Python/thread_pthread.h:241:5 (python+0x93b05b) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
Previous atomic write of size 4 at 0x000000cec444 by thread T950:
#0 _Py_atomic_compare_exchange_uint32 /home/mpage/local/cpython/./Include/cpython/pyatomic_gcc.h:115:10 (python+0x8c0dd3) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#1 _PySeqLock_LockWrite /home/mpage/local/cpython/Python/lock.c:483:18 (python+0x8c0dd3)
#2 update_cache_gil_disabled /home/mpage/local/cpython/Objects/typeobject.c:4987:5 (python+0x6f85ef) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#3 _PyType_Lookup /home/mpage/local/cpython/Objects/typeobject.c:5102:9 (python+0x6f85ef)
#4 _PyObject_GenericGetAttrWithDict /home/mpage/local/cpython/Objects/object.c:1570:13 (python+0x6a4144) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#5 PyObject_GenericGetAttr /home/mpage/local/cpython/Objects/object.c:1659:12 (python+0x6a3fc4) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#6 PyObject_GetAttr /home/mpage/local/cpython/Objects/object.c:1173:18 (python+0x6a35c1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#7 _PyEval_EvalFrameDefault /home/mpage/local/cpython/Python/generated_cases.c.h:3579:28 (python+0x82207f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#8 _PyEval_EvalFrame /home/mpage/local/cpython/./Include/internal/pycore_ceval.h:114:16 (python+0x7f997f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#9 _PyEval_Vector /home/mpage/local/cpython/Python/ceval.c:1807:12 (python+0x7f997f)
#10 _PyFunction_Vectorcall /home/mpage/local/cpython/Objects/call.c (python+0x5f2b09) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#11 _PyObject_VectorcallTstate /home/mpage/local/cpython/./Include/internal/pycore_call.h:168:11 (python+0x5f0dab) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#12 PyObject_CallOneArg /home/mpage/local/cpython/Objects/call.c:395:12 (python+0x5f2a14) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#13 property_descr_get /home/mpage/local/cpython/Objects/descrobject.c:1690:12 (python+0x609bb1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#14 _PyObject_GenericGetAttrWithDict /home/mpage/local/cpython/Objects/object.c:1577:19 (python+0x6a424f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#15 PyObject_GenericGetAttr /home/mpage/local/cpython/Objects/object.c:1659:12 (python+0x6a3fc4) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#16 PyObject_GetAttr /home/mpage/local/cpython/Objects/object.c:1173:18 (python+0x6a35c1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#17 _PyEval_EvalFrameDefault /home/mpage/local/cpython/Python/generated_cases.c.h:3579:28 (python+0x82207f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#18 _PyEval_EvalFrame /home/mpage/local/cpython/./Include/internal/pycore_ceval.h:114:16 (python+0x7f997f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#19 _PyEval_Vector /home/mpage/local/cpython/Python/ceval.c:1807:12 (python+0x7f997f)
#20 _PyFunction_Vectorcall /home/mpage/local/cpython/Objects/call.c (python+0x5f2b09) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#21 _PyObject_VectorcallTstate /home/mpage/local/cpython/./Include/internal/pycore_call.h:168:11 (python+0x5f0dab) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#22 PyObject_CallOneArg /home/mpage/local/cpython/Objects/call.c:395:12 (python+0x5f2a14) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#23 property_descr_get /home/mpage/local/cpython/Objects/descrobject.c:1690:12 (python+0x609bb1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#24 _PyObject_GenericGetAttrWithDict /home/mpage/local/cpython/Objects/object.c:1577:19 (python+0x6a424f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#25 PyObject_GenericGetAttr /home/mpage/local/cpython/Objects/object.c:1659:12 (python+0x6a3fc4) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#26 PyObject_GetAttr /home/mpage/local/cpython/Objects/object.c:1173:18 (python+0x6a35c1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#27 _PyEval_EvalFrameDefault /home/mpage/local/cpython/Python/generated_cases.c.h:3579:28 (python+0x82207f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#28 _PyEval_EvalFrame /home/mpage/local/cpython/./Include/internal/pycore_ceval.h:114:16 (python+0x7f997f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#29 _PyEval_Vector /home/mpage/local/cpython/Python/ceval.c:1807:12 (python+0x7f997f)
#30 _PyFunction_Vectorcall /home/mpage/local/cpython/Objects/call.c (python+0x5f2b09) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#31 _PyObject_VectorcallTstate /home/mpage/local/cpython/./Include/internal/pycore_call.h:168:11 (python+0x5f0dab) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#32 PyObject_CallOneArg /home/mpage/local/cpython/Objects/call.c:395:12 (python+0x5f2a14) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#33 property_descr_get /home/mpage/local/cpython/Objects/descrobject.c:1690:12 (python+0x609bb1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#34 _PyObject_GenericGetAttrWithDict /home/mpage/local/cpython/Objects/object.c:1577:19 (python+0x6a424f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#35 PyObject_GenericGetAttr /home/mpage/local/cpython/Objects/object.c:1659:12 (python+0x6a3fc4) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#36 PyObject_GetAttr /home/mpage/local/cpython/Objects/object.c:1173:18 (python+0x6a35c1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#37 _PyEval_EvalFrameDefault /home/mpage/local/cpython/Python/generated_cases.c.h:3579:28 (python+0x82207f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#38 _PyEval_EvalFrame /home/mpage/local/cpython/./Include/internal/pycore_ceval.h:114:16 (python+0x7f997f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#39 _PyEval_Vector /home/mpage/local/cpython/Python/ceval.c:1807:12 (python+0x7f997f)
#40 _PyFunction_Vectorcall /home/mpage/local/cpython/Objects/call.c (python+0x5f2b09) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#41 _PyObject_VectorcallTstate /home/mpage/local/cpython/./Include/internal/pycore_call.h:168:11 (python+0x5f80cb) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#42 method_vectorcall /home/mpage/local/cpython/Objects/classobject.c:70:20 (python+0x5f6912) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#43 _PyVectorcall_Call /home/mpage/local/cpython/Objects/call.c:273:16 (python+0x5f2547) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#44 _PyObject_Call /home/mpage/local/cpython/Objects/call.c:348:16 (python+0x5f273b) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#45 PyObject_Call /home/mpage/local/cpython/Objects/call.c:373:12 (python+0x5f2937) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#46 thread_run /home/mpage/local/cpython/./Modules/_threadmodule.c:337:21 (python+0x9f5be8) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#47 pythread_wrapper /home/mpage/local/cpython/Python/thread_pthread.h:241:5 (python+0x93b05b) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment