Skip to content

Instantly share code, notes, and snippets.

@devdanzin
Last active July 17, 2026 17:04
Show Gist options
  • Select an option

  • Save devdanzin/6bd1bd3936235547e9c0abd8eb3cca18 to your computer and use it in GitHub Desktop.

Select an option

Save devdanzin/6bd1bd3936235547e9c0abd8eb3cca18 to your computer and use it in GitHub Desktop.
TSAN-0013: list: non-atomic item/size reads race list_resize's atomic publish on a shared list (Py_SIZE / bytes_join / marshal readers)

Data race: non-atomic list readers race list_resize's atomic publish on a shared list

On a free-threaded build, list.append/pop grow a list via list_resize, which publishes the new ob_item pointer and ob_size with atomic stores. But many list readers load those fields with plain, non-atomic access — Py_SIZE in tuple-unpack, PyList_GET_ITEM in b"".join, marshal.dumps, and others. Two threads doing read and append on the same shared list therefore race. It is value-benign on aligned hardware, but it is a genuine data race on the reader side of a documented-atomic contract.

AI Disclaimer: this report was drafted by Claude Code, which created and ran the reproducers; the maintainer reviewed it.

Tracked in the umbrella issue python/cpython#153852 — one of a batch of free-threading data races found with fusil --tsan.

This is the reader side of a documented, previously-fixed class

The write side of this class was fixed under gh-129069 ("Race in concurrent list mutation and item retrieval", PR gh-131882 and follow-ups): list_resize/append now publish ob_item/ob_size atomically, and the corresponding entries in Tools/tsan/suppressions_free_threading.txt were removed. The list thread-safety contract was then written down in gh-142519 (part of the sharing-built-in-types documentation umbrella gh-142518), which states that list reads are atomic reads of each item and are lock-free.

This finding is the residual: several readers still use plain PyList_GET_ITEM / Py_SIZE loads rather than the atomic access the writer and the documentation both assume, so they still race list_resize's atomic publish on current main. The fix is to bring those reader sites in line with the documented atomic-read contract.

Summary

list_resize (Objects/listobject.c:165) publishes the reallocated backing store atomically:

_Py_atomic_store_ptr_release(&self->ob_item, &array->ob_item);   /* new items array   */
self->allocated = new_allocated;
Py_SET_SIZE(self, newsize);                                      /* atomic ob_size store */

Readers, however, use the plain macros:

  • Py_SIZE / _Py_SIZE_impl (Include/object.h) — e.g. UNPACK_SEQUENCE's fast path reads the size non-atomically.
  • stringlib_bytes_join (Objects/stringlib/join.h:63) — b"".join(list) reads items via PySequence_Fast_GET_ITEM / PyList_GET_ITEM, a plain load of ob_item.
  • w_complex_object (Python/marshal.c, cataloged separately as TSAN-0010) — marshal.dumps(list) reads ob_item[i] plainly.

Any of these run concurrently with append/pop on the same shared list → an atomic-store-vs-plain-read data race on ob_item/ob_size.

Reproducers (both confirmed, exit 66)

  • repro_size.py — the Py_SIZE face: one thread unpacks (a, b, c = shared), another append/pops. Signature Include/object.h:_Py_SIZE_impl | … (see tsan_report_size.txt).
  • repro_join.py — the bytes_join face: one thread b"".join(shared), another append/pops. Signature …:_Py_atomic_store_ptr_release | Objects/stringlib/join.h:stringlib_bytes_join (see tsan_report_join.txt).
DEBUGINFOD_URLS= PYTHON_GIL=0 TSAN_OPTIONS="halt_on_error=1:symbolize=1:history_size=4" \
  setarch -R ./python repro_join.py     # -> WARNING: ThreadSanitizer: data race, exit 66

Root cause

The writer side of list was hardened for free-threading (atomic publish of ob_item/ob_size, per-object critical sections on the mutating methods), but the many reader call sites that use the raw PyList_GET_ITEM / Py_SIZE macros were not converted to the atomic accessors. So a reader can observe ob_item/ob_size mid-update. On x86-64/aarch64 an aligned word load/store won't tear, so the observed races are value-benign and crash-free — but they are C11 data races (UB), and the free-threading contract is that operations on builtin containers are data-race-free, so they are bugs to fix.

Impact / severity

Low individually (value-benign, no crash observed), but systemic — it is a whole class of reader call sites, not one bug, and it is trivially triggered by any program that reads a shared list from one thread while another mutates it (which the free-threading model is supposed to make safe).

Suggested fix

Convert the list read sites to the atomic accessors the writer already uses:

  • item reads → _PyList_GetItemRef (the QSBR-safe accessor) instead of raw PyList_GET_ITEM;
  • size reads on the fast paths → an atomic load of ob_size instead of plain Py_SIZE.

This is squarely within gh-116738 ("Audit all built-in modules for thread safety") — an audit of builtin-container reader sites for non-atomic access under free-threading.

Notes

Found by fusil --tsan. The Py_SIZE, bytes_join, and marshal (TSAN-0010) faces are the same underlying defect at different reader sites; TSAN-0014 (concurrent list.sort()) is the closely related mutate-vs-mutate variant. All are the reader-side residual of the gh-129069 / gh-142519 list thread-safety work.


Part of an upcoming umbrella issue tracking free-threading data races found by fusil --tsan. Ruled a bug by CPython; not yet individually filed.

"""Confirmed reproducer: bytes_join reading a shared list another thread is growing.
Same "concurrent unsynchronized access to a shared builtin" class as shared_list_race.py:
one thread appends to a shared list (list_resize publishes the new ob_item with an atomic
release store) while another thread b"".join()s it (bytes_join reads the items with a plain,
non-atomic PyList_GET_ITEM). TSan flags the atomic-store-vs-plain-read on the list's ob_item.
Run (free-threaded + TSan build):
DEBUGINFOD_URLS= setarch -R env PYTHON_GIL=0 \
TSAN_OPTIONS="halt_on_error=1 symbolize=1 history_size=4" \
./python bytes_join_race.py
Confirmed signature (CPython 3.16.0a0, --disable-gil --with-thread-sanitizer):
Atomic write: list_resize -> _Py_atomic_store_ptr_release (Objects/listobject.c:165)
Prev read : stringlib_bytes_join (Objects/stringlib/join.h:63)
-> Include/cpython/pyatomic_gcc.h:_Py_atomic_store_ptr_release | Objects/stringlib/join.h:stringlib_bytes_join
"""
import sys, threading
assert not sys._is_gil_enabled(), "run free-threaded: PYTHON_GIL=0 on a --disable-gil build"
shared = [b"x" * 8 for _ in range(64)]
N = 100_000
start = threading.Barrier(2)
def mutator():
start.wait()
for _ in range(N):
shared.append(b"y" * 8) # _PyList_AppendTakeRefListResize -> list_resize stores ob_item
shared.pop()
def joiner():
start.wait()
for _ in range(N):
try:
b"".join(shared) # bytes_join_impl -> stringlib_bytes_join reads the items
except (TypeError, ValueError):
pass
t1 = threading.Thread(target=mutator)
t2 = threading.Thread(target=joiner)
t1.start()
t2.start()
t1.join()
t2.join()
print("done, no crash (TSan reports the race above)")
# Concurrent unsynchronized access to a shared builtin `list` on a free-threaded build:
# one thread UNPACKs it (reads ob_size) while another appends/pops (stores ob_size).
# No user-level lock -> ThreadSanitizer reports a data race on the list's size word.
import sys, threading
assert not sys._is_gil_enabled(), "run free-threaded: PYTHON_GIL=0 on a --disable-gil build"
shared = [0, 1, 2]
N = 200_000
start = threading.Barrier(2)
def unpacker():
start.wait()
for _ in range(N):
try:
a, b, c = shared # UNPACK_SEQUENCE reads Py_SIZE(shared)
except ValueError:
pass # size changed under us; not what we're testing
def mutator():
start.wait()
for _ in range(N):
shared.append(0) # list_resize stores Py_SIZE(shared)
shared.pop()
t1 = threading.Thread(target=unpacker)
t2 = threading.Thread(target=mutator)
t1.start(); t2.start(); t1.join(); t2.join()
print("done, no crash (TSan reports the race above)")
WARNING: ThreadSanitizer: data race (pid=2057823)
Atomic write of size 8 at 0x7fffb66d6cf8 by thread T1:
#0 _Py_atomic_store_ptr_release /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/cpython/pyatomic_gcc.h:565:3 (python+0x305fc7) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#1 list_resize /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/listobject.c:165:6 (python+0x305fc7)
#2 _PyList_AppendTakeRefListResize /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/listobject.c:530:9 (python+0x305bee) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#3 _PyList_AppendTakeRef /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_list.h:53:12 (python+0x306472) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#4 list_append_impl /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/listobject.c:1235:9 (python+0x31557c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#5 list_append /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/clinic/listobject.c.h:122:20 (python+0x31557c)
#6 method_vectorcall_O /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/descrobject.c:476:24 (python+0x2b53ff) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#7 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x294b28) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#8 PyObject_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:327:12 (python+0x296660) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#9 _Py_VectorCallInstrumentation_StackRefSteal /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:768:11 (python+0x536b24) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#10 _PyEval_EvalFrameDefault /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/generated_cases.c.h:1906:35 (python+0x5662d0) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#11 _PyEval_EvalFrame /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_ceval.h:122:16 (python+0x53601c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#12 _PyEval_Vector /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:2171:12 (python+0x53601c)
#13 _PyFunction_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c (python+0x296ba6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#14 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x294b28) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#15 _PyObject_VectorcallPrepend /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:855:20 (python+0x298682) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#16 method_vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/classobject.c:55:12 (python+0x29b26a) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#17 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x5b472a) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#18 context_run /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/context.c:731:29 (python+0x5b472a)
#19 method_vectorcall_FASTCALL_KEYWORDS /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/descrobject.c:421:24 (python+0x2b4ff6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#20 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x294b28) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#21 PyObject_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:327:12 (python+0x296660) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#22 _Py_VectorCallInstrumentation_StackRefSteal /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:768:11 (python+0x536b24) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#23 _PyEval_EvalFrameDefault /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/generated_cases.c.h:1906:35 (python+0x5662d0) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#24 _PyEval_EvalFrame /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_ceval.h:122:16 (python+0x53601c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#25 _PyEval_Vector /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:2171:12 (python+0x53601c)
#26 _PyFunction_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c (python+0x296ba6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#27 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x294b28) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#28 _PyObject_VectorcallPrepend /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:855:20 (python+0x298682) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#29 method_vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/classobject.c:55:12 (python+0x29b26a) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#30 _PyVectorcall_Call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:273:16 (python+0x296512) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#31 _PyObject_Call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:348:16 (python+0x296785) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#32 PyObject_Call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:373:12 (python+0x2969a7) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#33 thread_run /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:388:21 (python+0x7e0778) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#34 pythread_wrapper /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/thread_pthread.h:234:5 (python+0x6cd55b) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
Previous read of size 8 at 0x7fffb66d6cf8 by thread T2:
#0 stringlib_bytes_join /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/stringlib/join.h:63:16 (python+0x28114e) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#1 bytes_join_impl /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/bytesobject.c:1997:12 (python+0x28b350) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#2 bytes_join /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/clinic/bytesobject.c.h:313:20 (python+0x28b350)
#3 _PyEval_EvalFrameDefault /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/generated_cases.c.h:4453:35 (python+0x560636) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#4 _PyEval_EvalFrame /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_ceval.h:122:16 (python+0x53601c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#5 _PyEval_Vector /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:2171:12 (python+0x53601c)
#6 _PyFunction_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c (python+0x296ba6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#7 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x294b28) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#8 _PyObject_VectorcallPrepend /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:855:20 (python+0x298682) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#9 method_vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/classobject.c:55:12 (python+0x29b26a) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#10 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x5b472a) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#11 context_run /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/context.c:731:29 (python+0x5b472a)
#12 method_vectorcall_FASTCALL_KEYWORDS /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/descrobject.c:421:24 (python+0x2b4ff6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#13 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x294b28) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#14 PyObject_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:327:12 (python+0x296660) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#15 _Py_VectorCallInstrumentation_StackRefSteal /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:768:11 (python+0x536b24) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#16 _PyEval_EvalFrameDefault /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/generated_cases.c.h:1906:35 (python+0x5662d0) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#17 _PyEval_EvalFrame /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_ceval.h:122:16 (python+0x53601c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#18 _PyEval_Vector /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:2171:12 (python+0x53601c)
#19 _PyFunction_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c (python+0x296ba6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#20 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x294b28) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#21 _PyObject_VectorcallPrepend /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:855:20 (python+0x298682) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#22 method_vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/classobject.c:55:12 (python+0x29b26a) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#23 _PyVectorcall_Call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:273:16 (python+0x296512) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#24 _PyObject_Call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:348:16 (python+0x296785) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#25 PyObject_Call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:373:12 (python+0x2969a7) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#26 thread_run /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:388:21 (python+0x7e0778) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#27 pythread_wrapper /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/thread_pthread.h:234:5 (python+0x6cd55b) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
Thread T1 'Thread-1 (mutat' (tid=2057830, running) created by main thread at:
#0 pthread_create <null> (python+0xfff0e) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#1 do_start_joinable_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/thread_pthread.h:281:14 (python+0x6cc22b) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#2 PyThread_start_joinable_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/thread_pthread.h:323:9 (python+0x6cc024) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#3 ThreadHandle_start /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:475:9 (python+0x7e0237) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#4 do_start_new_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:1919:9 (python+0x7e0237)
#5 thread_PyThread_start_joinable_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:2042:14 (python+0x7de480) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#6 cfunction_call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/methodobject.c:564:18 (python+0x370f23) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#7 _PyObject_MakeTpCall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:242:18 (python+0x29522c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#8 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:142:16 (python+0x294b69) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#9 PyObject_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:327:12 (python+0x296660) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#10 _Py_VectorCallInstrumentation_StackRefSteal /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:768:11 (python+0x536b24) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#11 _PyEval_EvalFrameDefault /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/generated_cases.c.h:3474:35 (python+0x562e75) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#12 _PyEval_EvalFrame /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_ceval.h:122:16 (python+0x53601c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#13 _PyEval_Vector /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:2171:12 (python+0x53601c)
#14 PyEval_EvalCode /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:679:21 (python+0x5358a1) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#15 run_eval_code_obj /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:1369:12 (python+0x69ef1f) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#16 run_mod /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:1472:19 (python+0x69eab2) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#17 pyrun_file /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:1296:15 (python+0x69a4e1) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#18 _PyRun_SimpleFileObject /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:518:13 (python+0x698aca) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#19 _PyRun_AnyFileObject /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:81:15 (python+0x6981a6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#20 pymain_run_file_obj /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:411:15 (python+0x6ee3ad) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#21 pymain_run_file /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:430:15 (python+0x6ee3ad)
#22 pymain_run_python /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:715:21 (python+0x6ed206) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#23 Py_RunMain /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:796:5 (python+0x6ed206)
#24 pymain_main /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:826:12 (python+0x6ed977) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#25 Py_BytesMain /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:850:12 (python+0x6eda24) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#26 main /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Programs/python.c:15:12 (python+0x184cc0) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
Thread T2 'Thread-2 (joine' (tid=2057831, running) created by main thread at:
#0 pthread_create <null> (python+0xfff0e) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#1 do_start_joinable_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/thread_pthread.h:281:14 (python+0x6cc22b) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#2 PyThread_start_joinable_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/thread_pthread.h:323:9 (python+0x6cc024) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#3 ThreadHandle_start /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:475:9 (python+0x7e0237) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#4 do_start_new_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:1919:9 (python+0x7e0237)
#5 thread_PyThread_start_joinable_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:2042:14 (python+0x7de480) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#6 cfunction_call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/methodobject.c:564:18 (python+0x370f23) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#7 _PyObject_MakeTpCall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:242:18 (python+0x29522c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#8 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:142:16 (python+0x294b69) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#9 PyObject_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:327:12 (python+0x296660) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#10 _Py_VectorCall_StackRefSteal /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:726:11 (python+0x53636b) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#11 _PyEval_EvalFrameDefault /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/generated_cases.c.h:3686:35 (python+0x54f032) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#12 _PyEval_EvalFrame /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_ceval.h:122:16 (python+0x53601c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#13 _PyEval_Vector /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:2171:12 (python+0x53601c)
#14 PyEval_EvalCode /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:679:21 (python+0x5358a1) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#15 run_eval_code_obj /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:1369:12 (python+0x69ef1f) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#16 run_mod /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:1472:19 (python+0x69eab2) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#17 pyrun_file /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:1296:15 (python+0x69a4e1) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#18 _PyRun_SimpleFileObject /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:518:13 (python+0x698aca) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#19 _PyRun_AnyFileObject /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:81:15 (python+0x6981a6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#20 pymain_run_file_obj /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:411:15 (python+0x6ee3ad) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#21 pymain_run_file /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:430:15 (python+0x6ee3ad)
#22 pymain_run_python /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:715:21 (python+0x6ed206) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#23 Py_RunMain /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:796:5 (python+0x6ed206)
#24 pymain_main /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:826:12 (python+0x6ed977) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#25 Py_BytesMain /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:850:12 (python+0x6eda24) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#26 main /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Programs/python.c:15:12 (python+0x184cc0) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
SUMMARY: ThreadSanitizer: data race /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/cpython/pyatomic_gcc.h:565:3 in _Py_atomic_store_ptr_release
WARNING: ThreadSanitizer: data race (pid=2057799)
Read of size 8 at 0x7fffb66d6cf0 by thread T1:
#0 _Py_SIZE_impl /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/object.h:243:36 (python+0x57ae08) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#1 _PyEval_UnpackIterableStackRef /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:2405:58 (python+0x57ae08)
#2 _PyEval_EvalFrameDefault /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/generated_cases.c.h:13436:27 (python+0x55d5a0) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#3 _PyEval_EvalFrame /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_ceval.h:122:16 (python+0x53601c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#4 _PyEval_Vector /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:2171:12 (python+0x53601c)
#5 _PyFunction_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c (python+0x296ba6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#6 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x294b28) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#7 _PyObject_VectorcallPrepend /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:855:20 (python+0x298682) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#8 method_vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/classobject.c:55:12 (python+0x29b26a) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#9 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x5b472a) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#10 context_run /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/context.c:731:29 (python+0x5b472a)
#11 method_vectorcall_FASTCALL_KEYWORDS /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/descrobject.c:421:24 (python+0x2b4ff6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#12 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x294b28) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#13 PyObject_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:327:12 (python+0x296660) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#14 _Py_VectorCallInstrumentation_StackRefSteal /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:768:11 (python+0x536b24) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#15 _PyEval_EvalFrameDefault /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/generated_cases.c.h:1906:35 (python+0x5662d0) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#16 _PyEval_EvalFrame /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_ceval.h:122:16 (python+0x53601c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#17 _PyEval_Vector /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:2171:12 (python+0x53601c)
#18 _PyFunction_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c (python+0x296ba6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#19 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x294b28) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#20 _PyObject_VectorcallPrepend /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:855:20 (python+0x298682) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#21 method_vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/classobject.c:55:12 (python+0x29b26a) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#22 _PyVectorcall_Call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:273:16 (python+0x296512) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#23 _PyObject_Call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:348:16 (python+0x296785) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#24 PyObject_Call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:373:12 (python+0x2969a7) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#25 thread_run /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:388:21 (python+0x7e0778) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#26 pythread_wrapper /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/thread_pthread.h:234:5 (python+0x6cd55b) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
Previous atomic write of size 8 at 0x7fffb66d6cf0 by thread T2:
#0 _Py_atomic_store_ssize_relaxed /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/cpython/pyatomic_gcc.h:513:3 (python+0x5750fd) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#1 _Py_SET_SIZE_impl /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/object.h:258:5 (python+0x5750fd)
#2 _PyList_AppendTakeRef /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_list.h:50:9 (python+0x5750fd)
#3 _PyEval_EvalFrameDefault /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/generated_cases.c.h:3981:27 (python+0x55c42c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#4 _PyEval_EvalFrame /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_ceval.h:122:16 (python+0x53601c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#5 _PyEval_Vector /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:2171:12 (python+0x53601c)
#6 _PyFunction_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c (python+0x296ba6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#7 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x294b28) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#8 _PyObject_VectorcallPrepend /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:855:20 (python+0x298682) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#9 method_vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/classobject.c:55:12 (python+0x29b26a) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#10 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x5b472a) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#11 context_run /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/context.c:731:29 (python+0x5b472a)
#12 method_vectorcall_FASTCALL_KEYWORDS /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/descrobject.c:421:24 (python+0x2b4ff6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#13 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x294b28) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#14 PyObject_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:327:12 (python+0x296660) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#15 _Py_VectorCallInstrumentation_StackRefSteal /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:768:11 (python+0x536b24) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#16 _PyEval_EvalFrameDefault /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/generated_cases.c.h:1906:35 (python+0x5662d0) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#17 _PyEval_EvalFrame /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_ceval.h:122:16 (python+0x53601c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#18 _PyEval_Vector /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:2171:12 (python+0x53601c)
#19 _PyFunction_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c (python+0x296ba6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#20 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:144:11 (python+0x294b28) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#21 _PyObject_VectorcallPrepend /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:855:20 (python+0x298682) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#22 method_vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/classobject.c:55:12 (python+0x29b26a) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#23 _PyVectorcall_Call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:273:16 (python+0x296512) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#24 _PyObject_Call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:348:16 (python+0x296785) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#25 PyObject_Call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:373:12 (python+0x2969a7) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#26 thread_run /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:388:21 (python+0x7e0778) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#27 pythread_wrapper /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/thread_pthread.h:234:5 (python+0x6cd55b) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
Thread T1 'Thread-1 (unpac' (tid=2057819, running) created by main thread at:
#0 pthread_create <null> (python+0xfff0e) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#1 do_start_joinable_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/thread_pthread.h:281:14 (python+0x6cc22b) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#2 PyThread_start_joinable_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/thread_pthread.h:323:9 (python+0x6cc024) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#3 ThreadHandle_start /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:475:9 (python+0x7e0237) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#4 do_start_new_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:1919:9 (python+0x7e0237)
#5 thread_PyThread_start_joinable_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:2042:14 (python+0x7de480) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#6 cfunction_call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/methodobject.c:564:18 (python+0x370f23) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#7 _PyObject_MakeTpCall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:242:18 (python+0x29522c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#8 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:142:16 (python+0x294b69) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#9 PyObject_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:327:12 (python+0x296660) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#10 _Py_VectorCallInstrumentation_StackRefSteal /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:768:11 (python+0x536b24) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#11 _PyEval_EvalFrameDefault /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/generated_cases.c.h:3474:35 (python+0x562e75) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#12 _PyEval_EvalFrame /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_ceval.h:122:16 (python+0x53601c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#13 _PyEval_Vector /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:2171:12 (python+0x53601c)
#14 PyEval_EvalCode /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:679:21 (python+0x5358a1) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#15 run_eval_code_obj /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:1369:12 (python+0x69ef1f) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#16 run_mod /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:1472:19 (python+0x69eab2) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#17 pyrun_file /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:1296:15 (python+0x69a4e1) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#18 _PyRun_SimpleFileObject /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:518:13 (python+0x698aca) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#19 _PyRun_AnyFileObject /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:81:15 (python+0x6981a6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#20 pymain_run_file_obj /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:411:15 (python+0x6ee3ad) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#21 pymain_run_file /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:430:15 (python+0x6ee3ad)
#22 pymain_run_python /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:715:21 (python+0x6ed206) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#23 Py_RunMain /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:796:5 (python+0x6ed206)
#24 pymain_main /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:826:12 (python+0x6ed977) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#25 Py_BytesMain /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:850:12 (python+0x6eda24) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#26 main /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Programs/python.c:15:12 (python+0x184cc0) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
Thread T2 'Thread-2 (mutat' (tid=2057820, running) created by main thread at:
#0 pthread_create <null> (python+0xfff0e) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#1 do_start_joinable_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/thread_pthread.h:281:14 (python+0x6cc22b) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#2 PyThread_start_joinable_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/thread_pthread.h:323:9 (python+0x6cc024) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#3 ThreadHandle_start /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:475:9 (python+0x7e0237) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#4 do_start_new_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:1919:9 (python+0x7e0237)
#5 thread_PyThread_start_joinable_thread /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Modules/_threadmodule.c:2042:14 (python+0x7de480) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#6 cfunction_call /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/methodobject.c:564:18 (python+0x370f23) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#7 _PyObject_MakeTpCall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:242:18 (python+0x29522c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#8 _PyObject_VectorcallTstate /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_call.h:142:16 (python+0x294b69) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#9 PyObject_Vectorcall /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Objects/call.c:327:12 (python+0x296660) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#10 _Py_VectorCall_StackRefSteal /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:726:11 (python+0x53636b) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#11 _PyEval_EvalFrameDefault /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/generated_cases.c.h:3686:35 (python+0x54f032) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#12 _PyEval_EvalFrame /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/internal/pycore_ceval.h:122:16 (python+0x53601c) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#13 _PyEval_Vector /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:2171:12 (python+0x53601c)
#14 PyEval_EvalCode /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/ceval.c:679:21 (python+0x5358a1) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#15 run_eval_code_obj /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:1369:12 (python+0x69ef1f) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#16 run_mod /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:1472:19 (python+0x69eab2) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#17 pyrun_file /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:1296:15 (python+0x69a4e1) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#18 _PyRun_SimpleFileObject /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:518:13 (python+0x698aca) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#19 _PyRun_AnyFileObject /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Python/pythonrun.c:81:15 (python+0x6981a6) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#20 pymain_run_file_obj /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:411:15 (python+0x6ee3ad) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#21 pymain_run_file /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:430:15 (python+0x6ee3ad)
#22 pymain_run_python /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:715:21 (python+0x6ed206) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#23 Py_RunMain /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:796:5 (python+0x6ed206)
#24 pymain_main /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:826:12 (python+0x6ed977) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#25 Py_BytesMain /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/Modules/main.c:850:12 (python+0x6eda24) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
#26 main /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Programs/python.c:15:12 (python+0x184cc0) (BuildId: 210f4dee1678f3b37d4df3e6b4d2f870b5f45e9c)
SUMMARY: ThreadSanitizer: data race /home/danzin/projects/python_build_matrix/builds/debug-ft-nojit-tsan/./Include/object.h:243:36 in _Py_SIZE_impl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment