Skip to content

Instantly share code, notes, and snippets.

@mpage
Created April 25, 2024 18:36
Show Gist options
  • Select an option

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

Select an option

Save mpage/b53b5c22a2f923bf1571b887bb31ef88 to your computer and use it in GitHub Desktop.
WARNING: ThreadSanitizer: data race (pid=59576)
Write of size 1 at 0x7fedc0ce21db by thread T241:
#0 _PyObject_GC_TRACK /home/mpage/local/cpython/./Include/internal/pycore_object.h:308:20 (python+0x66cba7) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#1 insert_to_emptydict /home/mpage/local/cpython/Objects/dictobject.c:1796:5 (python+0x66cba7)
#2 setitem_take2_lock_held /home/mpage/local/cpython/Objects/dictobject.c:2397:16 (python+0x66c0a8) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#3 _PyDict_SetItem_Take2 /home/mpage/local/cpython/Objects/dictobject.c:2408:11 (python+0x66c3a1) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#4 PyDict_SetItem /home/mpage/local/cpython/Objects/dictobject.c:2428:12 (python+0x66c3a1)
#5 dict_ass_sub /home/mpage/local/cpython/Objects/dictobject.c:3247:16 (python+0x683cde) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#6 PyObject_SetItem /home/mpage/local/cpython/Objects/abstract.c:232:19 (python+0x5b7ee9) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#7 _PyEval_EvalFrameDefault /home/mpage/local/cpython/Python/generated_cases.c.h:5569:27 (python+0x82d8c9) (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+0x5f80cb) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#12 method_vectorcall /home/mpage/local/cpython/Objects/classobject.c:70:20 (python+0x5f6912) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#13 _PyObject_VectorcallTstate /home/mpage/local/cpython/./Include/internal/pycore_call.h:168:11 (python+0x5f0dab) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#14 PyObject_CallNoArgs /home/mpage/local/cpython/Objects/call.c:106:12 (python+0x5f0cdd) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#15 _PyEval_EvalFrameDefault /home/mpage/local/cpython/Python/generated_cases.c.h:89:19 (python+0x7fa7dd) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#16 _PyEval_EvalFrame /home/mpage/local/cpython/./Include/internal/pycore_ceval.h:114:16 (python+0x7f997f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#17 _PyEval_Vector /home/mpage/local/cpython/Python/ceval.c:1807:12 (python+0x7f997f)
#18 _PyFunction_Vectorcall /home/mpage/local/cpython/Objects/call.c (python+0x5f2b09) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#19 _PyObject_VectorcallTstate /home/mpage/local/cpython/./Include/internal/pycore_call.h:168:11 (python+0x5f80cb) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#20 method_vectorcall /home/mpage/local/cpython/Objects/classobject.c:70:20 (python+0x5f6912) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#21 _PyVectorcall_Call /home/mpage/local/cpython/Objects/call.c:273:16 (python+0x5f2547) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#22 _PyObject_Call /home/mpage/local/cpython/Objects/call.c:348:16 (python+0x5f273b) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#23 PyObject_Call /home/mpage/local/cpython/Objects/call.c:373:12 (python+0x5f2937) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#24 thread_run /home/mpage/local/cpython/./Modules/_threadmodule.c:337:21 (python+0x9f5be8) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#25 pythread_wrapper /home/mpage/local/cpython/Python/thread_pthread.h:241:5 (python+0x93b05b) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
Previous read of size 1 at 0x7fedc0ce21db by thread T242:
#0 _PyObject_GC_IS_SHARED /home/mpage/local/cpython/./Include/internal/pycore_gc.h:82:17 (python+0x669d23) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#1 ensure_shared_on_read /home/mpage/local/cpython/Objects/dictobject.c:1243:57 (python+0x669d23)
#2 _Py_dict_lookup_threadsafe /home/mpage/local/cpython/Objects/dictobject.c:1401:5 (python+0x669d23)
#3 dict_subscript /home/mpage/local/cpython/Objects/dictobject.c:3218:10 (python+0x683b64) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#4 PyObject_GetItem /home/mpage/local/cpython/Objects/abstract.c:158:26 (python+0x5b7548) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#5 _PyEval_EvalFrameDefault /home/mpage/local/cpython/Python/generated_cases.c.h:446:23 (python+0x7fccd7) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#6 _PyEval_EvalFrame /home/mpage/local/cpython/./Include/internal/pycore_ceval.h:114:16 (python+0x7f997f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#7 _PyEval_Vector /home/mpage/local/cpython/Python/ceval.c:1807:12 (python+0x7f997f)
#8 _PyFunction_Vectorcall /home/mpage/local/cpython/Objects/call.c (python+0x5f2b09) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#9 _PyObject_VectorcallTstate /home/mpage/local/cpython/./Include/internal/pycore_call.h:168:11 (python+0x5f80cb) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#10 method_vectorcall /home/mpage/local/cpython/Objects/classobject.c:70:20 (python+0x5f6912) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#11 _PyObject_VectorcallTstate /home/mpage/local/cpython/./Include/internal/pycore_call.h:168:11 (python+0x5f0dab) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#12 PyObject_CallNoArgs /home/mpage/local/cpython/Objects/call.c:106:12 (python+0x5f0cdd) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#13 _PyEval_EvalFrameDefault /home/mpage/local/cpython/Python/generated_cases.c.h:89:19 (python+0x7fa7dd) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#14 _PyEval_EvalFrame /home/mpage/local/cpython/./Include/internal/pycore_ceval.h:114:16 (python+0x7f997f) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#15 _PyEval_Vector /home/mpage/local/cpython/Python/ceval.c:1807:12 (python+0x7f997f)
#16 _PyFunction_Vectorcall /home/mpage/local/cpython/Objects/call.c (python+0x5f2b09) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#17 _PyObject_VectorcallTstate /home/mpage/local/cpython/./Include/internal/pycore_call.h:168:11 (python+0x5f80cb) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#18 method_vectorcall /home/mpage/local/cpython/Objects/classobject.c:70:20 (python+0x5f6912) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#19 _PyVectorcall_Call /home/mpage/local/cpython/Objects/call.c:273:16 (python+0x5f2547) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#20 _PyObject_Call /home/mpage/local/cpython/Objects/call.c:348:16 (python+0x5f273b) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#21 PyObject_Call /home/mpage/local/cpython/Objects/call.c:373:12 (python+0x5f2937) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#22 thread_run /home/mpage/local/cpython/./Modules/_threadmodule.c:337:21 (python+0x9f5be8) (BuildId: 9588fb538ed3d5378ea405f5ceb83364b0483a09)
#23 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