From 7140a22a8fc6a85ccac4630810c3d2429a1bfc2d Mon Sep 17 00:00:00 2001 From: tonghuaroot Date: Sun, 5 Jul 2026 13:07:56 +0800 Subject: [PATCH 1/6] gh-153062: Fix a crash iterating itertools.tee on the free-threaded build itertools.tee branches share a linked list of teedataobject cells. On the free-threaded build, iterating one branch from multiple threads, or iterating sibling branches concurrently, raced on the shared cells and each branch's position, corrupting refcounts and crashing. Lock each teedataobject while reading, extending, or clearing it, and snapshot each branch's position under the tee object's own lock, revalidating before advancing, so the two locks are never nested. Concurrent iteration of one tee is undefined and may raise RuntimeError as documented, but no longer crashes. --- .../test_itertools_tee_race.py | 58 + ...-07-05-14-30-00.gh-issue-153062.teeFT1.rst | 2 + Modules/itertoolsmodule.c | 75 +- a.out | 1 + c1.out | 1217 +++++++++++++++++ c2.out | 202 +++ d1.out | 1 + d2.out | 1 + f1.out | 1 + h.out | 1 + heavy.py | 13 + iso_count.out | 1 + iso_count.py | 21 + iso_cycle.out | 1 + iso_cycle.py | 21 + iso_tee2m.out | 1 + iso_tee2m.py | 21 + itt.out | 1098 +++++++++++++++ itt_race.py | 45 + reentrant.py | 22 + sd2.out | 1 + sd_race.py | 31 + sd_race2.py | 21 + t5.out | 5 + tee_cross.py | 17 + tee_same.py | 11 + ts.out | 1 + ts2.out | 1 + tt.out | 526 +++++++ x.out | 1 + xb.out | 254 ++++ xb.py | 13 + xb2.out | 40 + 33 files changed, 3711 insertions(+), 14 deletions(-) create mode 100644 Lib/test/test_free_threading/test_itertools_tee_race.py create mode 100644 Misc/NEWS.d/next/Library/2026-07-05-14-30-00.gh-issue-153062.teeFT1.rst create mode 100644 a.out create mode 100644 c1.out create mode 100644 c2.out create mode 100644 d1.out create mode 100644 d2.out create mode 100644 f1.out create mode 100644 h.out create mode 100644 heavy.py create mode 100644 iso_count.out create mode 100644 iso_count.py create mode 100644 iso_cycle.out create mode 100644 iso_cycle.py create mode 100644 iso_tee2m.out create mode 100644 iso_tee2m.py create mode 100644 itt.out create mode 100644 itt_race.py create mode 100644 reentrant.py create mode 100644 sd2.out create mode 100644 sd_race.py create mode 100644 sd_race2.py create mode 100644 t5.out create mode 100644 tee_cross.py create mode 100644 tee_same.py create mode 100644 ts.out create mode 100644 ts2.out create mode 100644 tt.out create mode 100644 x.out create mode 100644 xb.out create mode 100644 xb.py create mode 100644 xb2.out diff --git a/Lib/test/test_free_threading/test_itertools_tee_race.py b/Lib/test/test_free_threading/test_itertools_tee_race.py new file mode 100644 index 000000000000000..eb8ceb86d65f2af --- /dev/null +++ b/Lib/test/test_free_threading/test_itertools_tee_race.py @@ -0,0 +1,58 @@ +import itertools +import unittest + +from test.support import threading_helper + + +@threading_helper.requires_working_threading() +class TestTeeConcurrent(unittest.TestCase): + # itertools.tee branches share a linked list of internal data cells. + # Concurrent iteration must not corrupt that shared state or crash the + # free-threaded build. A crash shows up as the interpreter dying (not as a + # caught exception); tee is documented as not thread-safe, so a + # ``RuntimeError`` from the re-entrancy guard is an allowed outcome and is + # tolerated here. + + def test_same_branch(self): + # Many threads consume the same tee branch. + errors = [] + + def consume(it): + try: + for _ in it: + pass + except RuntimeError: + pass + except Exception as e: + errors.append(e) + + for _ in range(100): + a, _ = itertools.tee(iter(range(2000)), 2) + threading_helper.run_concurrently(consume, nthreads=8, args=(a,)) + + self.assertEqual(errors, [], msg=f"unexpected errors: {errors}") + + def test_sibling_branches(self): + # Each thread consumes a different sibling branch of the same tee. + errors = [] + + def make_worker(it): + def consume(): + try: + for _ in it: + pass + except RuntimeError: + pass + except Exception as e: + errors.append(e) + return consume + + for _ in range(100): + branches = itertools.tee(iter(range(4000)), 8) + threading_helper.run_concurrently([make_worker(it) for it in branches]) + + self.assertEqual(errors, [], msg=f"unexpected errors: {errors}") + + +if __name__ == "__main__": + unittest.main() diff --git a/Misc/NEWS.d/next/Library/2026-07-05-14-30-00.gh-issue-153062.teeFT1.rst b/Misc/NEWS.d/next/Library/2026-07-05-14-30-00.gh-issue-153062.teeFT1.rst new file mode 100644 index 000000000000000..ed1aaa15d37bd9c --- /dev/null +++ b/Misc/NEWS.d/next/Library/2026-07-05-14-30-00.gh-issue-153062.teeFT1.rst @@ -0,0 +1,2 @@ +Fix a crash when concurrently iterating an :func:`itertools.tee` iterator on +the free-threaded build. diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index 0dd31dfbc5a3469..7e3dc48d3922ec1 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -768,13 +768,17 @@ teedataobject_newinternal(itertools_state *state, PyObject *it) static PyObject * teedataobject_jumplink(itertools_state *state, teedataobject *tdo) { + PyObject *link; + Py_BEGIN_CRITICAL_SECTION(tdo); if (tdo->nextlink == NULL) tdo->nextlink = teedataobject_newinternal(state, tdo->it); - return Py_XNewRef(tdo->nextlink); + link = Py_XNewRef(tdo->nextlink); + Py_END_CRITICAL_SECTION(); + return link; } static PyObject * -teedataobject_getitem(teedataobject *tdo, int i) +teedataobject_getitem_lock_held(teedataobject *tdo, int i) { PyObject *value; @@ -800,6 +804,16 @@ teedataobject_getitem(teedataobject *tdo, int i) return Py_NewRef(value); } +static PyObject * +teedataobject_getitem(teedataobject *tdo, int i) +{ + PyObject *result; + Py_BEGIN_CRITICAL_SECTION(tdo); + result = teedataobject_getitem_lock_held(tdo, i); + Py_END_CRITICAL_SECTION(); + return result; +} + static int teedataobject_traverse(PyObject *op, visitproc visit, void * arg) { @@ -819,8 +833,11 @@ teedataobject_safe_decref(PyObject *obj) { while (obj && _PyObject_IsUniquelyReferenced(obj)) { teedataobject *tmp = teedataobject_CAST(obj); - PyObject *nextlink = tmp->nextlink; + PyObject *nextlink; + Py_BEGIN_CRITICAL_SECTION(obj); + nextlink = tmp->nextlink; tmp->nextlink = NULL; + Py_END_CRITICAL_SECTION(); Py_SETREF(obj, nextlink); } Py_XDECREF(obj); @@ -833,11 +850,13 @@ teedataobject_clear(PyObject *op) PyObject *tmp; teedataobject *tdo = teedataobject_CAST(op); + Py_BEGIN_CRITICAL_SECTION(op); Py_CLEAR(tdo->it); for (i=0 ; inumread ; i++) Py_CLEAR(tdo->values[i]); tmp = tdo->nextlink; tdo->nextlink = NULL; + Py_END_CRITICAL_SECTION(); teedataobject_safe_decref(tmp); return 0; } @@ -930,20 +949,48 @@ static PyObject * tee_next(PyObject *op) { teeobject *to = teeobject_CAST(op); - PyObject *value, *link; + PyObject *value; - if (to->index >= LINKCELLS) { - link = teedataobject_jumplink(to->state, to->dataobj); - if (link == NULL) + for (;;) { + teedataobject *dataobj; + int index; + + /* Snapshot the branch position (strong ref to the shared data object) + under the tee lock; the data object is locked separately, not nested, + then the advance is revalidated. */ + Py_BEGIN_CRITICAL_SECTION(op); + dataobj = (teedataobject *)Py_NewRef((PyObject *)to->dataobj); + index = to->index; + Py_END_CRITICAL_SECTION(); + + if (index < LINKCELLS) { + value = teedataobject_getitem(dataobj, index); + if (value != NULL) { + Py_BEGIN_CRITICAL_SECTION(op); + if (to->dataobj == dataobj && to->index == index) { + to->index = index + 1; + } + Py_END_CRITICAL_SECTION(); + } + Py_DECREF(dataobj); + return value; + } + + PyObject *link = teedataobject_jumplink(to->state, dataobj); + if (link == NULL) { + Py_DECREF(dataobj); return NULL; - Py_SETREF(to->dataobj, (teedataobject *)link); - to->index = 0; + } + Py_BEGIN_CRITICAL_SECTION(op); + if (to->dataobj == dataobj) { + Py_SETREF(to->dataobj, (teedataobject *)link); + to->index = 0; + link = NULL; + } + Py_END_CRITICAL_SECTION(); + Py_XDECREF(link); + Py_DECREF(dataobj); } - value = teedataobject_getitem(to->dataobj, to->index); - if (value == NULL) - return NULL; - to->index++; - return value; } static int diff --git a/a.out b/a.out new file mode 100644 index 000000000000000..322695b7778fc5c --- /dev/null +++ b/a.out @@ -0,0 +1 @@ +ThreadSanitizer:DEADLYSIGNAL diff --git a/c1.out b/c1.out new file mode 100644 index 000000000000000..516d5710c89cb11 --- /dev/null +++ b/c1.out @@ -0,0 +1,1217 @@ +================== +WARNING: ThreadSanitizer: data race (pid=91334) + Read of size 8 at 0x00010ee349e0 by thread T4: + #0 tee_next itertoolsmodule.c:957 (python.exe:arm64+0x10042fafc) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous write of size 8 at 0x00010ee349e0 by thread T6: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fd94) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T4 (tid=24844925, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) + #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #27 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T6 (tid=24844927, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) + #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #27 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:957 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=91334) + Read of size 4 at 0x000124170228 by thread T5: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fe20) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous write of size 4 at 0x000124170228 by thread T6: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042ff00) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T5 (tid=24844926, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) + #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #27 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T6 (tid=24844927, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) + #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #27 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=91334) + Read of size 8 at 0x0001241714b0 by thread T4: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fe38) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous write of size 8 at 0x0001241714b0 by thread T3: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042ff10) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T4 (tid=24844925, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) + #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #27 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T3 (tid=24844924, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) + #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #27 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=91334) + Read of size 8 at 0x00010ee34f60 by thread T8: + #0 tee_next itertoolsmodule.c:957 (python.exe:arm64+0x10042fafc) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous write of size 8 at 0x00010ee34f60 by thread T12: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fd94) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T8 (tid=24845003, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T12 (tid=24845007, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:957 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=91334) + Read of size 4 at 0x0001201c0228 by thread T7: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fe20) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous write of size 4 at 0x0001201c0228 by thread T12: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042ff00) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T7 (tid=24845002, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T12 (tid=24845007, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=91334) + Write of size 8 at 0x0001180c2ba8 by thread T10: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042ff10) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous write of size 8 at 0x0001180c2ba8 by thread T11: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042ff10) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T10 (tid=24845005, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T11 (tid=24845006, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=91334) + Read of size 8 at 0x00011c063458 by thread T7: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fe38) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous write of size 8 at 0x00011c063458 by thread T12: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042ff10) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T7 (tid=24845002, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T12 (tid=24845007, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=91334) + Write of size 8 at 0x0001100c7a30 by thread T11: + #0 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x1004304ac) + #1 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x100430154) + #2 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013cd7c) + #3 _Py_brc_merge_refcounts brc.c:131 (python.exe:arm64+0x10028bfac) + #4 _Py_HandlePending ceval_gil.c:1388 (python.exe:arm64+0x10030dfc4) + #5 _PyEval_EvalFrameDefault generated_cases.c.h (python.exe:arm64+0x100296360) + #6 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #7 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #8 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #9 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #10 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #11 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #12 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #13 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #14 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #15 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #16 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #17 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #18 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #19 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous read of size 8 at 0x0001100c7a30 by thread T8: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fc44) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T11 (tid=24845006, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T8 (tid=24845003, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:841 in teedataobject_clear +================== +================== +WARNING: ThreadSanitizer: data race (pid=91334) + Write of size 8 at 0x00011c069430 by thread T10: + #0 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x1004304ac) + #1 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x100430154) + #2 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013cd7c) + #3 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013cf64) + #4 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x100430568) + #5 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x100430154) + #6 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013cd7c) + #7 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013cf64) + #8 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x100430568) + #9 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x100430154) + #10 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013cd7c) + #11 _Py_brc_merge_refcounts brc.c:131 (python.exe:arm64+0x10028bfac) + #12 _Py_HandlePending ceval_gil.c:1388 (python.exe:arm64+0x10030dfc4) + #13 _PyEval_EvalFrameDefault generated_cases.c.h (python.exe:arm64+0x100296360) + #14 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #15 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #16 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #17 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #18 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #19 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #20 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #21 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #22 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #23 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #24 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #25 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #26 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #27 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous read of size 8 at 0x00011c069430 by thread T11: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fc44) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T10 (tid=24845005, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T11 (tid=24845006, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:841 in teedataobject_clear +================== +================== +WARNING: ThreadSanitizer: data race (pid=91334) + Read of size 8 at 0x0001180c0e30 by thread T9: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fc44) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous write of size 8 at 0x0001180c0e30 by thread T10: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fd2c) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T9 (tid=24845004, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T10 (tid=24845005, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=91334) + Write of size 4 at 0x0001201cbc2c by thread T9: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fec4) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous write of size 4 at 0x0001201cbc2c by thread T10: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fee8) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T9 (tid=24845004, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T10 (tid=24845005, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=91334) + Read of size 4 at 0x00011405622c by thread T30: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fe8c) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous write of size 4 at 0x00011405622c by thread T25: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fec4) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T30 (tid=24845042, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T25 (tid=24845037, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next +================== +ThreadSanitizer:DEADLYSIGNAL +==91334==ERROR: ThreadSanitizer: SEGV on unknown address 0x00000000000c (pc 0x000101dfcc50 bp 0x00016ff5e340 sp 0x00016ff5e310 T24845037) +==91334==The signal is caused by a READ memory access. +==91334==Hint: address points to the zero page. + #0 __tsan_atomic32_load (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x58c50) + #1 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fe48) + #2 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #3 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #4 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #5 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #6 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #7 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #8 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #9 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #10 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #11 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #12 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #13 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #14 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #15 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #16 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + #17 __tsan_thread_start_func (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f678) + #18 _pthread_start (libsystem_pthread.dylib:arm64e+0x6c04) + #19 thread_start (libsystem_pthread.dylib:arm64e+0x1ba4) + +==91334==Register values: + x[0] = 0x0000000101da0000 x[1] = 0x0000100000000010 x[2] = 0x00000000e8322ff0 x[3] = 0x0000000000000004 + x[4] = 0x0000000000000003 x[5] = 0x0000000000000000 x[6] = 0x0000000000000005 x[7] = 0x0000000000000000 + x[8] = 0x0000000101da0034 x[9] = 0x000000000000002f x[10] = 0x00000000c0000000 x[11] = 0x0000000000000000 +x[12] = 0x00000001524154a8 x[13] = 0x0000100000000010 x[14] = 0x0000000000000002 x[15] = 0x0000000000004010 +x[16] = 0x0000000000000000 x[17] = 0x0000000101e4c9f8 x[18] = 0x0000000000000000 x[19] = 0x000000000000000c +x[20] = 0x0000000101da0000 x[21] = 0x0000000101363e4c x[22] = 0x0000000000000000 x[23] = 0x000000010e2aaa00 +x[24] = 0x0000000000000000 x[25] = 0x0000000103ef0240 x[26] = 0x000000010ee34400 x[27] = 0x0000000103ef02b8 +x[28] = 0x0000000000000003 fp = 0x000000016ff5e340 lr = 0x0000000101dfcc44 sp = 0x000000016ff5e310 +ThreadSanitizer can not provide additional info. +SUMMARY: ThreadSanitizer: SEGV itertoolsmodule.c:958 in tee_next +==91334==ABORTING diff --git a/c2.out b/c2.out new file mode 100644 index 000000000000000..3dc00e6eced67f2 --- /dev/null +++ b/c2.out @@ -0,0 +1,202 @@ +================== +WARNING: ThreadSanitizer: data race (pid=91352) + Write of size 8 at 0x000302db4a20 by thread T8: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fd94) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous read of size 8 at 0x000302db4a20 by thread T2: + #0 tee_next itertoolsmodule.c:957 (python.exe:arm64+0x10042fafc) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T8 (tid=24845082, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) + #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #27 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T2 (tid=24845076, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) + #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #27 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=91352) + Read of size 8 at 0x000302db4aa0 by thread T10: + #0 tee_next itertoolsmodule.c:957 (python.exe:arm64+0x10042fafc) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous write of size 8 at 0x000302db4aa0 by thread T16: + #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fd94) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T10 (tid=24845153, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T16 (tid=24845161, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:957 in tee_next +================== +SAME_DONE errors= 0 [] +ThreadSanitizer: reported 2 warnings diff --git a/d1.out b/d1.out new file mode 100644 index 000000000000000..9c28e14383c1a4b --- /dev/null +++ b/d1.out @@ -0,0 +1 @@ +XB_DONE errors= 0 [] diff --git a/d2.out b/d2.out new file mode 100644 index 000000000000000..53d8f320bc8221a --- /dev/null +++ b/d2.out @@ -0,0 +1 @@ +SAME_DONE errors= 0 [] diff --git a/f1.out b/f1.out new file mode 100644 index 000000000000000..322695b7778fc5c --- /dev/null +++ b/f1.out @@ -0,0 +1 @@ +ThreadSanitizer:DEADLYSIGNAL diff --git a/h.out b/h.out new file mode 100644 index 000000000000000..44a5217ad3b71e1 --- /dev/null +++ b/h.out @@ -0,0 +1 @@ +HEAVY_DONE errors= 0 [] diff --git a/heavy.py b/heavy.py new file mode 100644 index 000000000000000..7f5e3c1a143b464 --- /dev/null +++ b/heavy.py @@ -0,0 +1,13 @@ +import itertools +from test.support import threading_helper +errs=[] +for r in range(40): + a,b,c = itertools.tee(iter(range(80_000)), 3) + br=[a,b,c]; cnt=[0] + def w(): + i=cnt[0]; cnt[0]+=1 + try: + for _ in br[i%3]: pass + except Exception as e: errs.append(repr(e)) + threading_helper.run_concurrently(w, nthreads=16) +print("HEAVY_DONE errors=",len(errs),errs[:3],flush=True) diff --git a/iso_count.out b/iso_count.out new file mode 100644 index 000000000000000..d9197fb3fbd9cc1 --- /dev/null +++ b/iso_count.out @@ -0,0 +1 @@ +count DONE diff --git a/iso_count.py b/iso_count.py new file mode 100644 index 000000000000000..0441dd58e9ec27a --- /dev/null +++ b/iso_count.py @@ -0,0 +1,21 @@ +import itertools +from test.support import threading_helper +errs=[] +def w_count(): + c=g + for _ in range(20000): + next(c) +def w_cycle(): + for _ in range(20000): next(cy) +def w_tee(): + for _ in a: pass +if "count"=="count": + g=itertools.count() + threading_helper.run_concurrently(w_count, nthreads=8) +elif "count"=="cycle": + cy=itertools.cycle([1,2,3,4,5]) + threading_helper.run_concurrently(w_cycle, nthreads=8) +else: + a,b=itertools.tee(iter(range(2_000_000)),2) + threading_helper.run_concurrently(w_tee, nthreads=8) +print("count DONE", flush=True) diff --git a/iso_cycle.out b/iso_cycle.out new file mode 100644 index 000000000000000..d71ada2490687b0 --- /dev/null +++ b/iso_cycle.out @@ -0,0 +1 @@ +cycle DONE diff --git a/iso_cycle.py b/iso_cycle.py new file mode 100644 index 000000000000000..11d111baed674a4 --- /dev/null +++ b/iso_cycle.py @@ -0,0 +1,21 @@ +import itertools +from test.support import threading_helper +errs=[] +def w_count(): + c=g + for _ in range(20000): + next(c) +def w_cycle(): + for _ in range(20000): next(cy) +def w_tee(): + for _ in a: pass +if "cycle"=="count": + g=itertools.count() + threading_helper.run_concurrently(w_count, nthreads=8) +elif "cycle"=="cycle": + cy=itertools.cycle([1,2,3,4,5]) + threading_helper.run_concurrently(w_cycle, nthreads=8) +else: + a,b=itertools.tee(iter(range(2_000_000)),2) + threading_helper.run_concurrently(w_tee, nthreads=8) +print("cycle DONE", flush=True) diff --git a/iso_tee2m.out b/iso_tee2m.out new file mode 100644 index 000000000000000..0778dcae9d749b0 --- /dev/null +++ b/iso_tee2m.out @@ -0,0 +1 @@ +tee2m DONE diff --git a/iso_tee2m.py b/iso_tee2m.py new file mode 100644 index 000000000000000..560be82043d6414 --- /dev/null +++ b/iso_tee2m.py @@ -0,0 +1,21 @@ +import itertools +from test.support import threading_helper +errs=[] +def w_count(): + c=g + for _ in range(20000): + next(c) +def w_cycle(): + for _ in range(20000): next(cy) +def w_tee(): + for _ in a: pass +if "tee2m"=="count": + g=itertools.count() + threading_helper.run_concurrently(w_count, nthreads=8) +elif "tee2m"=="cycle": + cy=itertools.cycle([1,2,3,4,5]) + threading_helper.run_concurrently(w_cycle, nthreads=8) +else: + a,b=itertools.tee(iter(range(2_000_000)),2) + threading_helper.run_concurrently(w_tee, nthreads=8) +print("tee2m DONE", flush=True) diff --git a/itt.out b/itt.out new file mode 100644 index 000000000000000..99abf077a005ee8 --- /dev/null +++ b/itt.out @@ -0,0 +1,1098 @@ +================== +WARNING: ThreadSanitizer: data race (pid=80422) + Read of size 4 at 0x0003101401a8 by thread T23: + #0 tee_next itertoolsmodule.c:935 (python.exe:arm64+0x10042f460) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Previous write of size 4 at 0x0003101401a8 by thread T24: + #0 tee_next itertoolsmodule.c:945 (python.exe:arm64+0x10042f78c) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Thread T23 (tid=24777592, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T24 (tid=24777593, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:935 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=80422) + Read of size 8 at 0x000322070220 by thread T21: + #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f710) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Previous write of size 8 at 0x000322070220 by thread T24: + #0 tee_next itertoolsmodule.c:936 (python.exe:arm64+0x10042f554) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Thread T21 (tid=24777590, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T24 (tid=24777593, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:942 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=80422) + Read of size 8 at 0x0003101401a0 by thread T19: + #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f650) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Previous write of size 8 at 0x0003101401a0 by thread T24: + #0 tee_next itertoolsmodule.c:939 (python.exe:arm64+0x10042f5d0) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Thread T19 (tid=24777588, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T24 (tid=24777593, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:942 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=80422) + Read of size 8 at 0x0003220702e0 by thread T19: + #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f674) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Previous write of size 8 at 0x0003220702e0 by thread T21: + #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f74c) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Thread T19 (tid=24777588, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T21 (tid=24777590, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:942 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=80422) + Write of size 8 at 0x00030292a230 by thread T18: + #0 tee_next itertoolsmodule.c:936 (python.exe:arm64+0x10042f568) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Previous read of size 8 at 0x00030292a230 by thread T24: + #0 tee_next itertoolsmodule.c:936 (python.exe:arm64+0x10042f480) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Thread T18 (tid=24777587, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T24 (tid=24777593, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:936 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=80422) + Write of size 4 at 0x0003101401a8 by thread T19: + #0 tee_next itertoolsmodule.c:945 (python.exe:arm64+0x10042f78c) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Previous write of size 4 at 0x0003101401a8 by thread T24: + #0 tee_next itertoolsmodule.c:945 (python.exe:arm64+0x10042f78c) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Thread T19 (tid=24777588, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T24 (tid=24777593, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:945 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=80422) + Read of size 4 at 0x000322070228 by thread T20: + #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f65c) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Previous write of size 4 at 0x000322070228 by thread T24: + #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f73c) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Thread T20 (tid=24777589, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T24 (tid=24777593, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:942 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=80422) + Write of size 4 at 0x0003101401a8 by thread T24: + #0 tee_next itertoolsmodule.c:945 (python.exe:arm64+0x10042f78c) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Previous write of size 4 at 0x0003101401a8 by thread T18: + #0 tee_next itertoolsmodule.c:940 (python.exe:arm64+0x10042f640) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Thread T24 (tid=24777593, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T18 (tid=24777587, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:945 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=80422) + Read of size 4 at 0x0003141b0c2c by thread T20: + #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f6c8) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Previous write of size 4 at 0x0003141b0c2c by thread T18: + #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f700) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Thread T20 (tid=24777589, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T18 (tid=24777587, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:942 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=80422) + Write of size 4 at 0x0003141b0c2c by thread T24: + #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f700) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Previous write of size 4 at 0x0003141b0c2c by thread T18: + #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f724) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Thread T24 (tid=24777593, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T18 (tid=24777587, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:942 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=80422) + Write of size 4 at 0x0003141b0c28 by thread T20: + #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f73c) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Previous write of size 4 at 0x0003141b0c28 by thread T24: + #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f73c) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) + + Thread T20 (tid=24777589, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T24 (tid=24777593, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) + #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #24 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:942 in tee_next +================== +ThreadSanitizer:DEADLYSIGNAL +==80422==ERROR: ThreadSanitizer: SEGV on unknown address 0x00000000000b (pc 0x0001012a8c50 bp 0x00016fb69800 sp 0x00016fb697d0 T24777466) +==80422==The signal is caused by a READ memory access. +==80422==Hint: address points to the zero page. + #0 __tsan_atomic32_load (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x58c50) + #1 teedataobject_clear itertoolsmodule.c:838 (python.exe:arm64+0x10042fb88) + #2 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x10042f8fc) + #3 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) + #4 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013c8a8) + #5 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x10042fd10) + #6 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x10042f8fc) + #7 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) + #8 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013c8a8) + #9 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x10042fd10) + #10 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x10042f8fc) + #11 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) + #12 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013c8a8) + #13 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x10042fd10) + #14 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x10042f8fc) + #15 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) + #16 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013c8a8) + #17 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x10042fd10) + #18 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x10042f8fc) + #19 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) + #20 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013c8a8) + #21 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x10042fd10) + #22 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x10042f8fc) + #23 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) + #24 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013c8a8) + #25 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x10042fd10) + #26 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x10042f8fc) + #27 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) + #28 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013c8a8) + #29 tee_dealloc itertoolsmodule.c:1047 (python.exe:arm64+0x10042f274) + #30 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) + #31 _Py_MergeZeroLocalRefcount object.c (python.exe:arm64+0x10013c940) + #32 _PyFrame_ClearLocals frame.c:101 (python.exe:arm64+0x1002fc970) + #33 _PyFrame_ClearExceptCode frame.c:126 (python.exe:arm64+0x1002fd3d0) + #34 _PyEval_FrameClearAndPop ceval.c:2014 (python.exe:arm64+0x1002aa080) + #35 _PyEval_EvalFrameDefault generated_cases.c.h (python.exe:arm64+0x1002a4e1c) + #36 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) + #37 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) + #38 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) + #39 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) + #40 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) + #41 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) + #42 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) + #43 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) + #44 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) + #45 main python.c:15 (python.exe:arm64+0x100000a04) + #46 (0x00019fbc9d50) + +==80422==Register values: + x[0] = 0x000000010273d180 x[1] = 0x0000100000000010 x[2] = 0x00000000c2526578 x[3] = 0x0000000000000004 + x[4] = 0x0000000000000003 x[5] = 0x0000000000000000 x[6] = 0x0000000000000005 x[7] = 0x00000001009c8b10 + x[8] = 0x000000010273d1b4 x[9] = 0x0000000000000065 x[10] = 0x00000000c0000000 x[11] = 0x0000000000000000 +x[12] = 0x0000000112e2fd20 x[13] = 0x0000100000000010 x[14] = 0x0000000000000002 x[15] = 0x0000000000004010 +x[16] = 0x0000000000000000 x[17] = 0x00000001012f89f8 x[18] = 0x0000000000000000 x[19] = 0x000000000000000b +x[20] = 0x000000010273d180 x[21] = 0x00000001006c3b8c x[22] = 0x0000000000000000 x[23] = 0x000000000000000b +x[24] = 0x0000000000000000 x[25] = 0x0000000000000000 x[26] = 0x0000000100df4118 x[27] = 0x0000000100df4108 +x[28] = 0x00000001008bbf20 fp = 0x000000016fb69800 lr = 0x00000001012a8c44 sp = 0x000000016fb697d0 +ThreadSanitizer can not provide additional info. +SUMMARY: ThreadSanitizer: SEGV itertoolsmodule.c:838 in teedataobject_clear +==80422==ABORTING diff --git a/itt_race.py b/itt_race.py new file mode 100644 index 000000000000000..49403b2f234b6e3 --- /dev/null +++ b/itt_race.py @@ -0,0 +1,45 @@ +import itertools, collections +from test.support import threading_helper + +# 1) itertools.count: concurrent next() -> lost/dup increments if C fast-path unsynced +def test_count(): + c = itertools.count() + got = [] + def w(): + local = [] + for _ in range(20000): + local.append(next(c)) + got.extend(local) + threading_helper.run_concurrently(w, nthreads=8) + dup = [v for v, n in collections.Counter(got).items() if n > 1] + return f"count: total={len(got)} unique={len(set(got))} dups={len(dup)}" + +# 2) itertools.cycle: concurrent next() +def test_cycle(): + cy = itertools.cycle([1,2,3,4,5]) + errs = [] + def w(): + try: + for _ in range(20000): + next(cy) + except Exception as e: + errs.append(repr(e)) + threading_helper.run_concurrently(w, nthreads=8) + return f"cycle: errors={len(errs)} {errs[:2]}" + +# 3) itertools.tee: concurrent iteration of one branch +def test_tee(): + a, b = itertools.tee(iter(range(2_000_000)), 2) + errs = [] + def w(it): + try: + for _ in it: + pass + except Exception as e: + errs.append(repr(e)) + threading_helper.run_concurrently(w, nthreads=8, args=(a,)) + return f"tee: errors={len(errs)} {errs[:2]}" + +print(test_count()) +print(test_cycle()) +print(test_tee()) diff --git a/reentrant.py b/reentrant.py new file mode 100644 index 000000000000000..dfcbfc49351d1e3 --- /dev/null +++ b/reentrant.py @@ -0,0 +1,22 @@ +import itertools, faulthandler, sys +faulthandler.dump_traceback_later(8, exit=True) # if it hangs 8s -> dump + kill + +# A source iterator whose __next__ re-enters the same tee branch. +class Reenter: + def __init__(self): self.n=0; self.t=None + def __iter__(self): return self + def __next__(self): + self.n += 1 + if self.n == 1 and self.t is not None: + try: + next(self.t) # re-enter the SAME tee mid-fetch + except RuntimeError as e: + print("GOT RuntimeError (expected, by-design):", e) + if self.n > 3: raise StopIteration + return self.n + +src = Reenter() +a, b = itertools.tee(src, 2) +src.t = a +print("result:", list(a)) +print("NO_DEADLOCK") diff --git a/sd2.out b/sd2.out new file mode 100644 index 000000000000000..1265a39bc0226a6 --- /dev/null +++ b/sd2.out @@ -0,0 +1 @@ +CHURN_DONE errors= 0 [] diff --git a/sd_race.py b/sd_race.py new file mode 100644 index 000000000000000..cf6124520f050f9 --- /dev/null +++ b/sd_race.py @@ -0,0 +1,31 @@ +import functools +from test.support import threading_helper + +# singledispatch caches the resolved impl per argument type in an unsynchronized +# WeakKeyDictionary (dispatch_cache) with a plain nonlocal cache_token. On the +# free-threaded build, concurrent first dispatches race the cache fill/read. +# Re-arm each round by clearing the cache, then race the refill across threads. + +@functools.singledispatch +def g(x): + return 0 + +TYPES = [type(f"T{i}", (), {}) for i in range(64)] +INSTANCES = [T() for T in TYPES] + +errors = [] + +def hammer(): + try: + for obj in INSTANCES: + g(obj) # dispatch on type(obj) -> cache miss/fill/read + except Exception as e: + errors.append(repr(e)) + +for _ in range(60): + g._clear_cache() # empty cache -> next round all threads race the fill + threading_helper.run_concurrently(hammer, nthreads=16) + if errors: + break + +print("ROUNDS_DONE errors=", len(errors), errors[:3]) diff --git a/sd_race2.py b/sd_race2.py new file mode 100644 index 000000000000000..84c89c46da6da56 --- /dev/null +++ b/sd_race2.py @@ -0,0 +1,21 @@ +import functools +from test.support import threading_helper + +@functools.singledispatch +def g(x): + return 0 + +errors = [] +def churn(): + try: + for i in range(400): + T = type(f"X{i}", (), {}) # fresh type; dies next iter -> WeakKeyDict removal callback + g(T()) # dispatch_cache[T]=impl races with concurrent _commit_removals + except Exception as e: + errors.append(repr(e)) + +for _ in range(40): + threading_helper.run_concurrently(churn, nthreads=16) + if errors: + break +print("CHURN_DONE errors=", len(errors), errors[:5]) diff --git a/t5.out b/t5.out new file mode 100644 index 000000000000000..854008a48a7a584 --- /dev/null +++ b/t5.out @@ -0,0 +1,5 @@ +.. +---------------------------------------------------------------------- +Ran 2 tests in 8.402s + +OK diff --git a/tee_cross.py b/tee_cross.py new file mode 100644 index 000000000000000..175318fa4071b9f --- /dev/null +++ b/tee_cross.py @@ -0,0 +1,17 @@ +import itertools +from test.support import threading_helper +# cross-branch: a,b share the same teedataobject; consume each in its own thread +errs = [] +def consume(it): + try: + for _ in it: pass + except Exception as e: + errs.append(repr(e)) +for _ in range(30): + a, b = itertools.tee(iter(range(500_000)), 2) + branches = [a, b] + def w(i=[0]): + idx = i[0]; i[0]+=1 + consume(branches[idx % 2]) + threading_helper.run_concurrently(w, nthreads=8) +print("CROSS_DONE errors=", len(errs), errs[:3]) diff --git a/tee_same.py b/tee_same.py new file mode 100644 index 000000000000000..575e02bd45f6468 --- /dev/null +++ b/tee_same.py @@ -0,0 +1,11 @@ +import itertools +from test.support import threading_helper +errs=[] +for _ in range(40): + a, b = itertools.tee(iter(range(300_000)), 2) + def w(): + try: + for _ in a: pass + except Exception as e: errs.append(repr(e)) + threading_helper.run_concurrently(w, nthreads=8) +print("SAME_DONE errors=", len(errs), errs[:3], flush=True) diff --git a/ts.out b/ts.out new file mode 100644 index 000000000000000..53d8f320bc8221a --- /dev/null +++ b/ts.out @@ -0,0 +1 @@ +SAME_DONE errors= 0 [] diff --git a/ts2.out b/ts2.out new file mode 100644 index 000000000000000..53d8f320bc8221a --- /dev/null +++ b/ts2.out @@ -0,0 +1 @@ +SAME_DONE errors= 0 [] diff --git a/tt.out b/tt.out new file mode 100644 index 000000000000000..ce8220d9adcc1e2 --- /dev/null +++ b/tt.out @@ -0,0 +1,526 @@ +.================== +WARNING: ThreadSanitizer: data race (pid=97330) + Write of size 8 at 0x0001261a2630 by thread T1427: + #0 teedataobject_clear itertoolsmodule.c:855 (python.exe:arm64+0x10043094c) + #1 teedataobject_dealloc itertoolsmodule.c:864 (python.exe:arm64+0x1004305f4) + #2 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013cd7c) + #3 _Py_brc_merge_refcounts brc.c:131 (python.exe:arm64+0x10028bfac) + #4 _Py_HandlePending ceval_gil.c:1388 (python.exe:arm64+0x10030dfc4) + #5 _PyEval_EvalFrameDefault generated_cases.c.h:11414 (python.exe:arm64+0x100293a8c) + #6 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #7 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #8 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #9 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #10 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #11 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #12 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c7c4) + #13 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous read of size 8 at 0x0001261a2630 by thread T1426: + #0 tee_next itertoolsmodule.c:974 (python.exe:arm64+0x10042fcb8) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c7c4) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T1427 (tid=24906107, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c594) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044c0a0) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044b0b4) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #16 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #17 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #18 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #19 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #20 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #21 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) + #22 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #23 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #24 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #25 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #26 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #27 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #28 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #29 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #30 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #31 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) + #32 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #33 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #34 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #35 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #36 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #37 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #38 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) + #39 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #40 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #41 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #42 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #43 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #44 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #45 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #46 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #47 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #48 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) + #49 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #50 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #51 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #52 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #53 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #54 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #55 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) + #56 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #57 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #58 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #59 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #60 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #61 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #62 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #63 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #64 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #65 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #66 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #67 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #68 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #69 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #70 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #71 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #72 _PyEval_EvalFrameDefault generated_cases.c.h:3161 (python.exe:arm64+0x1002a6fc8) + #73 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #74 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #75 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #76 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #77 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #78 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #79 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #80 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #81 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #82 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #83 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #84 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #85 _PyObject_VectorcallDictTstate call.c:146 (python.exe:arm64+0x10008efcc) + #86 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #87 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #88 slot_tp_init typeobject.c:11175 (python.exe:arm64+0x1001b3d08) + #89 type_call typeobject.c:2484 (python.exe:arm64+0x100198d68) + #90 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #91 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #92 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #93 _PyEval_EvalFrameDefault generated_cases.c.h:3474 (python.exe:arm64+0x1002a4090) + #94 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #95 builtin_exec bltinmodule.c.h:676 (python.exe:arm64+0x1002877e8) + #96 cfunction_vectorcall_FASTCALL_KEYWORDS methodobject.c:465 (python.exe:arm64+0x1001347b8) + #97 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #98 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #99 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #100 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #101 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #102 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #103 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #104 pymain_run_module main.c:354 (python.exe:arm64+0x1003a2718) + #105 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1d70) + #106 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #107 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #108 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T1426 (tid=24906106, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c594) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044c0a0) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044b0b4) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #16 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #17 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #18 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #19 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #20 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #21 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) + #22 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #23 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #24 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #25 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #26 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #27 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #28 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #29 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #30 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #31 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) + #32 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #33 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #34 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #35 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #36 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #37 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #38 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) + #39 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #40 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #41 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #42 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #43 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #44 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #45 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #46 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #47 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #48 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) + #49 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #50 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #51 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #52 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #53 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #54 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #55 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) + #56 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #57 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #58 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #59 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #60 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #61 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #62 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #63 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #64 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #65 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #66 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #67 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #68 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #69 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #70 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #71 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #72 _PyEval_EvalFrameDefault generated_cases.c.h:3161 (python.exe:arm64+0x1002a6fc8) + #73 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #74 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #75 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #76 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #77 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #78 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #79 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #80 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #81 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #82 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #83 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #84 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #85 _PyObject_VectorcallDictTstate call.c:146 (python.exe:arm64+0x10008efcc) + #86 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #87 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #88 slot_tp_init typeobject.c:11175 (python.exe:arm64+0x1001b3d08) + #89 type_call typeobject.c:2484 (python.exe:arm64+0x100198d68) + #90 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #91 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #92 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #93 _PyEval_EvalFrameDefault generated_cases.c.h:3474 (python.exe:arm64+0x1002a4090) + #94 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #95 builtin_exec bltinmodule.c.h:676 (python.exe:arm64+0x1002877e8) + #96 cfunction_vectorcall_FASTCALL_KEYWORDS methodobject.c:465 (python.exe:arm64+0x1001347b8) + #97 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #98 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #99 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #100 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #101 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #102 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #103 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #104 pymain_run_module main.c:354 (python.exe:arm64+0x1003a2718) + #105 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1d70) + #106 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #107 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #108 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:855 in teedataobject_clear +================== +================== +WARNING: ThreadSanitizer: data race (pid=97330) + Write of size 8 at 0x0001261a2c30 by thread T1427: + #0 teedataobject_clear itertoolsmodule.c:855 (python.exe:arm64+0x10043094c) + #1 teedataobject_dealloc itertoolsmodule.c:864 (python.exe:arm64+0x1004305f4) + #2 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013cd7c) + #3 _Py_brc_merge_refcounts brc.c:131 (python.exe:arm64+0x10028bfac) + #4 _Py_HandlePending ceval_gil.c:1388 (python.exe:arm64+0x10030dfc4) + #5 _PyEval_EvalFrameDefault generated_cases.c.h (python.exe:arm64+0x100298b10) + #6 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #7 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #8 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #9 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #10 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #11 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #12 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c7c4) + #13 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous read of size 8 at 0x0001261a2c30 by thread T1426: + #0 tee_next itertoolsmodule.c:974 (python.exe:arm64+0x10042fcb8) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) + #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c7c4) + #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T1427 (tid=24906107, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c594) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044c0a0) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044b0b4) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #16 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #17 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #18 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #19 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #20 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #21 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) + #22 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #23 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #24 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #25 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #26 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #27 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #28 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #29 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #30 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #31 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) + #32 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #33 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #34 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #35 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #36 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #37 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #38 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) + #39 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #40 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #41 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #42 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #43 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #44 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #45 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #46 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #47 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #48 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) + #49 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #50 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #51 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #52 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #53 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #54 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #55 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) + #56 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #57 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #58 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #59 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #60 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #61 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #62 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #63 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #64 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #65 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #66 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #67 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #68 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #69 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #70 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #71 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #72 _PyEval_EvalFrameDefault generated_cases.c.h:3161 (python.exe:arm64+0x1002a6fc8) + #73 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #74 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #75 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #76 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #77 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #78 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #79 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #80 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #81 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #82 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #83 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #84 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #85 _PyObject_VectorcallDictTstate call.c:146 (python.exe:arm64+0x10008efcc) + #86 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #87 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #88 slot_tp_init typeobject.c:11175 (python.exe:arm64+0x1001b3d08) + #89 type_call typeobject.c:2484 (python.exe:arm64+0x100198d68) + #90 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #91 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #92 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #93 _PyEval_EvalFrameDefault generated_cases.c.h:3474 (python.exe:arm64+0x1002a4090) + #94 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #95 builtin_exec bltinmodule.c.h:676 (python.exe:arm64+0x1002877e8) + #96 cfunction_vectorcall_FASTCALL_KEYWORDS methodobject.c:465 (python.exe:arm64+0x1001347b8) + #97 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #98 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #99 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #100 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #101 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #102 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #103 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #104 pymain_run_module main.c:354 (python.exe:arm64+0x1003a2718) + #105 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1d70) + #106 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #107 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #108 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T1426 (tid=24906106, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c594) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044c0a0) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044b0b4) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) + #15 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #16 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #17 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #18 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #19 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #20 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #21 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) + #22 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #23 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #24 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #25 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #26 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #27 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #28 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #29 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #30 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #31 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) + #32 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #33 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #34 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #35 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #36 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #37 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #38 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) + #39 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #40 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #41 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #42 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #43 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #44 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #45 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #46 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #47 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #48 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) + #49 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #50 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #51 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #52 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #53 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #54 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #55 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) + #56 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #57 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #58 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #59 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #60 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #61 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #62 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #63 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #64 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #65 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #66 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #67 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #68 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) + #69 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #70 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #71 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #72 _PyEval_EvalFrameDefault generated_cases.c.h:3161 (python.exe:arm64+0x1002a6fc8) + #73 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #74 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #75 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) + #76 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #77 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #78 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) + #79 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #80 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #81 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #82 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #83 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #84 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #85 _PyObject_VectorcallDictTstate call.c:146 (python.exe:arm64+0x10008efcc) + #86 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) + #87 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) + #88 slot_tp_init typeobject.c:11175 (python.exe:arm64+0x1001b3d08) + #89 type_call typeobject.c:2484 (python.exe:arm64+0x100198d68) + #90 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #91 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #92 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #93 _PyEval_EvalFrameDefault generated_cases.c.h:3474 (python.exe:arm64+0x1002a4090) + #94 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #95 builtin_exec bltinmodule.c.h:676 (python.exe:arm64+0x1002877e8) + #96 cfunction_vectorcall_FASTCALL_KEYWORDS methodobject.c:465 (python.exe:arm64+0x1001347b8) + #97 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #98 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #99 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #100 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #101 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #102 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #103 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #104 pymain_run_module main.c:354 (python.exe:arm64+0x1003a2718) + #105 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1d70) + #106 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #107 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #108 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:855 in teedataobject_clear +================== +. +---------------------------------------------------------------------- +Ran 2 tests in 8.176s + +OK +ThreadSanitizer: reported 2 warnings diff --git a/x.out b/x.out new file mode 100644 index 000000000000000..9c28e14383c1a4b --- /dev/null +++ b/x.out @@ -0,0 +1 @@ +XB_DONE errors= 0 [] diff --git a/xb.out b/xb.out new file mode 100644 index 000000000000000..a156f52fcabaa12 --- /dev/null +++ b/xb.out @@ -0,0 +1,254 @@ +================== +WARNING: ThreadSanitizer: data race (pid=88651) + Read of size 8 at 0x000110c0ae30 by thread T3: + #0 tee_next itertoolsmodule.c:964 (python.exe:arm64+0x10042fb94) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c318) + #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous write of size 8 at 0x000110c0ae30 by thread T6: + #0 tee_next itertoolsmodule.c:964 (python.exe:arm64+0x10042fc7c) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c318) + #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T3 (tid=24821733, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0e8) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bbf4) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac08) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) + #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #27 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T6 (tid=24821736, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0e8) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bbf4) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac08) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) + #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #27 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:964 in tee_next +================== +================== +WARNING: ThreadSanitizer: data race (pid=88651) + Atomic write of size 1 at 0x0001161b280a by thread T4: + #0 tee_next itertoolsmodule.c:964 (python.exe:arm64+0x10042fd90) + #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c318) + #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Previous write of size 1 at 0x0001161b280a by thread T2: + #0 _Py_NewReference object.c:2764 (python.exe:arm64+0x10014688c) + #1 _PyObject_GC_New gc_free_threading.c:2754 (python.exe:arm64+0x100302834) + #2 tee_next itertoolsmodule.c:964 (python.exe:arm64+0x10042fbe0) + #3 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #4 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #5 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #6 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #7 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #8 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #9 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) + #10 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #11 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #12 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #13 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #14 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #15 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #16 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #17 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #18 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #19 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c318) + #20 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + + Thread T4 (tid=24821734, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0e8) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bbf4) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac08) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) + #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #27 main python.c:15 (python.exe:arm64+0x100000a04) + + Thread T2 (tid=24821732, running) created by main thread at: + #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) + #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) + #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) + #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0e8) + #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bbf4) + #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac08) + #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) + #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) + #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) + #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) + #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) + #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) + #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) + #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) + #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) + #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) + #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) + #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) + #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) + #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) + #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) + #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) + #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) + #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) + #27 main python.c:15 (python.exe:arm64+0x100000a04) + +SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:964 in tee_next +================== +ThreadSanitizer:DEADLYSIGNAL +==88651==ERROR: ThreadSanitizer: SEGV on unknown address 0x00000000000c (pc 0x000103cb4c50 bp 0x000171062150 sp 0x000171062120 T24821734) +==88651==The signal is caused by a READ memory access. +==88651==Hint: address points to the zero page. + #0 __tsan_atomic32_load (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x58c50) + #1 tee_next itertoolsmodule.c:964 (python.exe:arm64+0x10042fe4c) + #2 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #3 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #4 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #5 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #6 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #7 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #8 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) + #9 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #10 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #11 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #12 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #13 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #14 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #15 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #16 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #17 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #18 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c318) + #19 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + #20 __tsan_thread_start_func (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f678) + #21 _pthread_start (libsystem_pthread.dylib:arm64e+0x6c04) + #22 thread_start (libsystem_pthread.dylib:arm64e+0x1ba4) + +==88651==Register values: + x[0] = 0x00000001500fc000 x[1] = 0x0000100000000010 x[2] = 0x00000000d6715ef0 x[3] = 0x0000000000000004 + x[4] = 0x0000000000000003 x[5] = 0x0000000000000000 x[6] = 0x0000000000000005 x[7] = 0x0000000000000000 + x[8] = 0x00000001500fc034 x[9] = 0x000000000000005e x[10] = 0x00000000c0000000 x[11] = 0x0000000000000000 +x[12] = 0x0000000154cbd2e0 x[13] = 0x0000100000000010 x[14] = 0x0000000000000002 x[15] = 0x0000000000004010 +x[16] = 0x0000000000000000 x[17] = 0x0000000103d049f8 x[18] = 0x0000000000000000 x[19] = 0x000000000000000c +x[20] = 0x00000001500fc000 x[21] = 0x0000000103283e50 x[22] = 0x0000000000000000 x[23] = 0x0000000000000011 +x[24] = 0x0000000000000000 x[25] = 0x00000001506f0240 x[26] = 0x0000000110c549c0 x[27] = 0x00000001506f02b8 +x[28] = 0x0000000000000003 fp = 0x0000000171062150 lr = 0x0000000103cb4c44 sp = 0x0000000171062120 +ThreadSanitizer can not provide additional info. +SUMMARY: ThreadSanitizer: SEGV itertoolsmodule.c:964 in tee_next +==88651==ABORTING diff --git a/xb.py b/xb.py new file mode 100644 index 000000000000000..858bfcee787c0f9 --- /dev/null +++ b/xb.py @@ -0,0 +1,13 @@ +import itertools +from test.support import threading_helper +errs=[] +for _ in range(15): + a,b = itertools.tee(iter(range(100_000)),2) + br=[a,b]; c=[0] + def w(): + i=c[0]; c[0]+=1 + try: + for _ in br[i%2]: pass + except Exception as e: errs.append(repr(e)) + threading_helper.run_concurrently(w, nthreads=6) +print("XB_DONE errors=",len(errs),errs[:3],flush=True) diff --git a/xb2.out b/xb2.out new file mode 100644 index 000000000000000..fd6a593097f74b2 --- /dev/null +++ b/xb2.out @@ -0,0 +1,40 @@ +ThreadSanitizer:DEADLYSIGNAL +==89267==ERROR: ThreadSanitizer: SEGV on unknown address 0x00000000000c (pc 0x000104f40c50 bp 0x00016ee5e140 sp 0x00016ee5e110 T24825894) +==89267==The signal is caused by a READ memory access. +==89267==Hint: address points to the zero page. + #0 __tsan_atomic32_load (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x58c50) + #1 tee_next itertoolsmodule.c:968 (python.exe:arm64+0x10042ff3c) + #2 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) + #3 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #4 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #5 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #6 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #7 context_run context.c:731 (python.exe:arm64+0x1002dba98) + #8 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) + #9 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) + #10 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) + #11 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) + #12 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) + #13 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) + #14 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) + #15 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) + #16 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) + #17 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) + #18 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c40c) + #19 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) + #20 __tsan_thread_start_func (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f678) + #21 _pthread_start (libsystem_pthread.dylib:arm64e+0x6c04) + #22 thread_start (libsystem_pthread.dylib:arm64e+0x1ba4) + +==89267==Register values: + x[0] = 0x000000010eaf8000 x[1] = 0x0000100000000010 x[2] = 0x00000000fdb92ef0 x[3] = 0x0000000000000004 + x[4] = 0x0000000000000003 x[5] = 0x0000000000000000 x[6] = 0x0000000000000005 x[7] = 0x0000000000000000 + x[8] = 0x000000010eaf8034 x[9] = 0x000000000000002e x[10] = 0x00000000c0000000 x[11] = 0x0000000000000000 +x[12] = 0x000000011595f6c8 x[13] = 0x0000100000000010 x[14] = 0x0000000000000002 x[15] = 0x0000000000004010 +x[16] = 0x0000000000000000 x[17] = 0x0000000104f909f8 x[18] = 0x0000000000000000 x[19] = 0x000000000000000c +x[20] = 0x000000010eaf8000 x[21] = 0x000000010447bf40 x[22] = 0x0000000000000000 x[23] = 0x0000000000000028 +x[24] = 0x0000000000000000 x[25] = 0x000000016ee5e150 x[26] = 0x000000016ee5e160 x[27] = 0x000000010eafc2b8 +x[28] = 0x0000000000000003 fp = 0x000000016ee5e140 lr = 0x0000000104f40c44 sp = 0x000000016ee5e110 +ThreadSanitizer can not provide additional info. +SUMMARY: ThreadSanitizer: SEGV itertoolsmodule.c:968 in tee_next +==89267==ABORTING From c7f1112df8ab066858acd244677a52f69260db28 Mon Sep 17 00:00:00 2001 From: tonghuaroot Date: Sun, 5 Jul 2026 13:43:46 +0800 Subject: [PATCH 2/6] gh-153062: Remove files added by mistake Drop scratch files accidentally staged in the previous commit. --- a.out | 1 - c1.out | 1217 ------------------------------------------------- c2.out | 202 -------- d1.out | 1 - d2.out | 1 - f1.out | 1 - h.out | 1 - heavy.py | 13 - iso_count.out | 1 - iso_count.py | 21 - iso_cycle.out | 1 - iso_cycle.py | 21 - iso_tee2m.out | 1 - iso_tee2m.py | 21 - itt.out | 1098 -------------------------------------------- itt_race.py | 45 -- reentrant.py | 22 - sd2.out | 1 - sd_race.py | 31 -- sd_race2.py | 21 - t5.out | 5 - tee_cross.py | 17 - tee_same.py | 11 - ts.out | 1 - ts2.out | 1 - tt.out | 526 --------------------- x.out | 1 - xb.out | 254 ----------- xb.py | 13 - xb2.out | 40 -- 30 files changed, 3590 deletions(-) delete mode 100644 a.out delete mode 100644 c1.out delete mode 100644 c2.out delete mode 100644 d1.out delete mode 100644 d2.out delete mode 100644 f1.out delete mode 100644 h.out delete mode 100644 heavy.py delete mode 100644 iso_count.out delete mode 100644 iso_count.py delete mode 100644 iso_cycle.out delete mode 100644 iso_cycle.py delete mode 100644 iso_tee2m.out delete mode 100644 iso_tee2m.py delete mode 100644 itt.out delete mode 100644 itt_race.py delete mode 100644 reentrant.py delete mode 100644 sd2.out delete mode 100644 sd_race.py delete mode 100644 sd_race2.py delete mode 100644 t5.out delete mode 100644 tee_cross.py delete mode 100644 tee_same.py delete mode 100644 ts.out delete mode 100644 ts2.out delete mode 100644 tt.out delete mode 100644 x.out delete mode 100644 xb.out delete mode 100644 xb.py delete mode 100644 xb2.out diff --git a/a.out b/a.out deleted file mode 100644 index 322695b7778fc5c..000000000000000 --- a/a.out +++ /dev/null @@ -1 +0,0 @@ -ThreadSanitizer:DEADLYSIGNAL diff --git a/c1.out b/c1.out deleted file mode 100644 index 516d5710c89cb11..000000000000000 --- a/c1.out +++ /dev/null @@ -1,1217 +0,0 @@ -================== -WARNING: ThreadSanitizer: data race (pid=91334) - Read of size 8 at 0x00010ee349e0 by thread T4: - #0 tee_next itertoolsmodule.c:957 (python.exe:arm64+0x10042fafc) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous write of size 8 at 0x00010ee349e0 by thread T6: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fd94) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T4 (tid=24844925, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) - #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #27 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T6 (tid=24844927, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) - #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #27 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:957 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=91334) - Read of size 4 at 0x000124170228 by thread T5: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fe20) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous write of size 4 at 0x000124170228 by thread T6: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042ff00) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T5 (tid=24844926, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) - #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #27 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T6 (tid=24844927, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) - #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #27 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=91334) - Read of size 8 at 0x0001241714b0 by thread T4: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fe38) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous write of size 8 at 0x0001241714b0 by thread T3: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042ff10) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T4 (tid=24844925, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) - #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #27 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T3 (tid=24844924, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) - #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #27 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=91334) - Read of size 8 at 0x00010ee34f60 by thread T8: - #0 tee_next itertoolsmodule.c:957 (python.exe:arm64+0x10042fafc) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous write of size 8 at 0x00010ee34f60 by thread T12: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fd94) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T8 (tid=24845003, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T12 (tid=24845007, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:957 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=91334) - Read of size 4 at 0x0001201c0228 by thread T7: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fe20) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous write of size 4 at 0x0001201c0228 by thread T12: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042ff00) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T7 (tid=24845002, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T12 (tid=24845007, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=91334) - Write of size 8 at 0x0001180c2ba8 by thread T10: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042ff10) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous write of size 8 at 0x0001180c2ba8 by thread T11: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042ff10) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T10 (tid=24845005, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T11 (tid=24845006, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=91334) - Read of size 8 at 0x00011c063458 by thread T7: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fe38) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous write of size 8 at 0x00011c063458 by thread T12: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042ff10) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T7 (tid=24845002, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T12 (tid=24845007, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=91334) - Write of size 8 at 0x0001100c7a30 by thread T11: - #0 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x1004304ac) - #1 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x100430154) - #2 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013cd7c) - #3 _Py_brc_merge_refcounts brc.c:131 (python.exe:arm64+0x10028bfac) - #4 _Py_HandlePending ceval_gil.c:1388 (python.exe:arm64+0x10030dfc4) - #5 _PyEval_EvalFrameDefault generated_cases.c.h (python.exe:arm64+0x100296360) - #6 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #7 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #8 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #9 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #10 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #11 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #12 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #13 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #14 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #15 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #16 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #17 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #18 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #19 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous read of size 8 at 0x0001100c7a30 by thread T8: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fc44) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T11 (tid=24845006, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T8 (tid=24845003, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:841 in teedataobject_clear -================== -================== -WARNING: ThreadSanitizer: data race (pid=91334) - Write of size 8 at 0x00011c069430 by thread T10: - #0 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x1004304ac) - #1 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x100430154) - #2 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013cd7c) - #3 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013cf64) - #4 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x100430568) - #5 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x100430154) - #6 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013cd7c) - #7 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013cf64) - #8 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x100430568) - #9 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x100430154) - #10 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013cd7c) - #11 _Py_brc_merge_refcounts brc.c:131 (python.exe:arm64+0x10028bfac) - #12 _Py_HandlePending ceval_gil.c:1388 (python.exe:arm64+0x10030dfc4) - #13 _PyEval_EvalFrameDefault generated_cases.c.h (python.exe:arm64+0x100296360) - #14 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #15 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #16 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #17 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #18 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #19 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #20 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #21 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #22 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #23 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #24 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #25 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #26 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #27 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous read of size 8 at 0x00011c069430 by thread T11: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fc44) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T10 (tid=24845005, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T11 (tid=24845006, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:841 in teedataobject_clear -================== -================== -WARNING: ThreadSanitizer: data race (pid=91334) - Read of size 8 at 0x0001180c0e30 by thread T9: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fc44) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous write of size 8 at 0x0001180c0e30 by thread T10: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fd2c) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T9 (tid=24845004, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T10 (tid=24845005, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=91334) - Write of size 4 at 0x0001201cbc2c by thread T9: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fec4) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous write of size 4 at 0x0001201cbc2c by thread T10: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fee8) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T9 (tid=24845004, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T10 (tid=24845005, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=91334) - Read of size 4 at 0x00011405622c by thread T30: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fe8c) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous write of size 4 at 0x00011405622c by thread T25: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fec4) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T30 (tid=24845042, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T25 (tid=24845037, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next -================== -ThreadSanitizer:DEADLYSIGNAL -==91334==ERROR: ThreadSanitizer: SEGV on unknown address 0x00000000000c (pc 0x000101dfcc50 bp 0x00016ff5e340 sp 0x00016ff5e310 T24845037) -==91334==The signal is caused by a READ memory access. -==91334==Hint: address points to the zero page. - #0 __tsan_atomic32_load (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x58c50) - #1 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fe48) - #2 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #3 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #4 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #5 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #6 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #7 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #8 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #9 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #10 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #11 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #12 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #13 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #14 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #15 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #16 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - #17 __tsan_thread_start_func (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f678) - #18 _pthread_start (libsystem_pthread.dylib:arm64e+0x6c04) - #19 thread_start (libsystem_pthread.dylib:arm64e+0x1ba4) - -==91334==Register values: - x[0] = 0x0000000101da0000 x[1] = 0x0000100000000010 x[2] = 0x00000000e8322ff0 x[3] = 0x0000000000000004 - x[4] = 0x0000000000000003 x[5] = 0x0000000000000000 x[6] = 0x0000000000000005 x[7] = 0x0000000000000000 - x[8] = 0x0000000101da0034 x[9] = 0x000000000000002f x[10] = 0x00000000c0000000 x[11] = 0x0000000000000000 -x[12] = 0x00000001524154a8 x[13] = 0x0000100000000010 x[14] = 0x0000000000000002 x[15] = 0x0000000000004010 -x[16] = 0x0000000000000000 x[17] = 0x0000000101e4c9f8 x[18] = 0x0000000000000000 x[19] = 0x000000000000000c -x[20] = 0x0000000101da0000 x[21] = 0x0000000101363e4c x[22] = 0x0000000000000000 x[23] = 0x000000010e2aaa00 -x[24] = 0x0000000000000000 x[25] = 0x0000000103ef0240 x[26] = 0x000000010ee34400 x[27] = 0x0000000103ef02b8 -x[28] = 0x0000000000000003 fp = 0x000000016ff5e340 lr = 0x0000000101dfcc44 sp = 0x000000016ff5e310 -ThreadSanitizer can not provide additional info. -SUMMARY: ThreadSanitizer: SEGV itertoolsmodule.c:958 in tee_next -==91334==ABORTING diff --git a/c2.out b/c2.out deleted file mode 100644 index 3dc00e6eced67f2..000000000000000 --- a/c2.out +++ /dev/null @@ -1,202 +0,0 @@ -================== -WARNING: ThreadSanitizer: data race (pid=91352) - Write of size 8 at 0x000302db4a20 by thread T8: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fd94) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous read of size 8 at 0x000302db4a20 by thread T2: - #0 tee_next itertoolsmodule.c:957 (python.exe:arm64+0x10042fafc) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T8 (tid=24845082, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) - #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #27 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T2 (tid=24845076, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) - #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #27 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:958 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=91352) - Read of size 8 at 0x000302db4aa0 by thread T10: - #0 tee_next itertoolsmodule.c:957 (python.exe:arm64+0x10042fafc) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous write of size 8 at 0x000302db4aa0 by thread T16: - #0 tee_next itertoolsmodule.c:958 (python.exe:arm64+0x10042fd94) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c324) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T10 (tid=24845153, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T16 (tid=24845161, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0f4) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bc00) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac14) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:957 in tee_next -================== -SAME_DONE errors= 0 [] -ThreadSanitizer: reported 2 warnings diff --git a/d1.out b/d1.out deleted file mode 100644 index 9c28e14383c1a4b..000000000000000 --- a/d1.out +++ /dev/null @@ -1 +0,0 @@ -XB_DONE errors= 0 [] diff --git a/d2.out b/d2.out deleted file mode 100644 index 53d8f320bc8221a..000000000000000 --- a/d2.out +++ /dev/null @@ -1 +0,0 @@ -SAME_DONE errors= 0 [] diff --git a/f1.out b/f1.out deleted file mode 100644 index 322695b7778fc5c..000000000000000 --- a/f1.out +++ /dev/null @@ -1 +0,0 @@ -ThreadSanitizer:DEADLYSIGNAL diff --git a/h.out b/h.out deleted file mode 100644 index 44a5217ad3b71e1..000000000000000 --- a/h.out +++ /dev/null @@ -1 +0,0 @@ -HEAVY_DONE errors= 0 [] diff --git a/heavy.py b/heavy.py deleted file mode 100644 index 7f5e3c1a143b464..000000000000000 --- a/heavy.py +++ /dev/null @@ -1,13 +0,0 @@ -import itertools -from test.support import threading_helper -errs=[] -for r in range(40): - a,b,c = itertools.tee(iter(range(80_000)), 3) - br=[a,b,c]; cnt=[0] - def w(): - i=cnt[0]; cnt[0]+=1 - try: - for _ in br[i%3]: pass - except Exception as e: errs.append(repr(e)) - threading_helper.run_concurrently(w, nthreads=16) -print("HEAVY_DONE errors=",len(errs),errs[:3],flush=True) diff --git a/iso_count.out b/iso_count.out deleted file mode 100644 index d9197fb3fbd9cc1..000000000000000 --- a/iso_count.out +++ /dev/null @@ -1 +0,0 @@ -count DONE diff --git a/iso_count.py b/iso_count.py deleted file mode 100644 index 0441dd58e9ec27a..000000000000000 --- a/iso_count.py +++ /dev/null @@ -1,21 +0,0 @@ -import itertools -from test.support import threading_helper -errs=[] -def w_count(): - c=g - for _ in range(20000): - next(c) -def w_cycle(): - for _ in range(20000): next(cy) -def w_tee(): - for _ in a: pass -if "count"=="count": - g=itertools.count() - threading_helper.run_concurrently(w_count, nthreads=8) -elif "count"=="cycle": - cy=itertools.cycle([1,2,3,4,5]) - threading_helper.run_concurrently(w_cycle, nthreads=8) -else: - a,b=itertools.tee(iter(range(2_000_000)),2) - threading_helper.run_concurrently(w_tee, nthreads=8) -print("count DONE", flush=True) diff --git a/iso_cycle.out b/iso_cycle.out deleted file mode 100644 index d71ada2490687b0..000000000000000 --- a/iso_cycle.out +++ /dev/null @@ -1 +0,0 @@ -cycle DONE diff --git a/iso_cycle.py b/iso_cycle.py deleted file mode 100644 index 11d111baed674a4..000000000000000 --- a/iso_cycle.py +++ /dev/null @@ -1,21 +0,0 @@ -import itertools -from test.support import threading_helper -errs=[] -def w_count(): - c=g - for _ in range(20000): - next(c) -def w_cycle(): - for _ in range(20000): next(cy) -def w_tee(): - for _ in a: pass -if "cycle"=="count": - g=itertools.count() - threading_helper.run_concurrently(w_count, nthreads=8) -elif "cycle"=="cycle": - cy=itertools.cycle([1,2,3,4,5]) - threading_helper.run_concurrently(w_cycle, nthreads=8) -else: - a,b=itertools.tee(iter(range(2_000_000)),2) - threading_helper.run_concurrently(w_tee, nthreads=8) -print("cycle DONE", flush=True) diff --git a/iso_tee2m.out b/iso_tee2m.out deleted file mode 100644 index 0778dcae9d749b0..000000000000000 --- a/iso_tee2m.out +++ /dev/null @@ -1 +0,0 @@ -tee2m DONE diff --git a/iso_tee2m.py b/iso_tee2m.py deleted file mode 100644 index 560be82043d6414..000000000000000 --- a/iso_tee2m.py +++ /dev/null @@ -1,21 +0,0 @@ -import itertools -from test.support import threading_helper -errs=[] -def w_count(): - c=g - for _ in range(20000): - next(c) -def w_cycle(): - for _ in range(20000): next(cy) -def w_tee(): - for _ in a: pass -if "tee2m"=="count": - g=itertools.count() - threading_helper.run_concurrently(w_count, nthreads=8) -elif "tee2m"=="cycle": - cy=itertools.cycle([1,2,3,4,5]) - threading_helper.run_concurrently(w_cycle, nthreads=8) -else: - a,b=itertools.tee(iter(range(2_000_000)),2) - threading_helper.run_concurrently(w_tee, nthreads=8) -print("tee2m DONE", flush=True) diff --git a/itt.out b/itt.out deleted file mode 100644 index 99abf077a005ee8..000000000000000 --- a/itt.out +++ /dev/null @@ -1,1098 +0,0 @@ -================== -WARNING: ThreadSanitizer: data race (pid=80422) - Read of size 4 at 0x0003101401a8 by thread T23: - #0 tee_next itertoolsmodule.c:935 (python.exe:arm64+0x10042f460) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Previous write of size 4 at 0x0003101401a8 by thread T24: - #0 tee_next itertoolsmodule.c:945 (python.exe:arm64+0x10042f78c) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Thread T23 (tid=24777592, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T24 (tid=24777593, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:935 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=80422) - Read of size 8 at 0x000322070220 by thread T21: - #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f710) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Previous write of size 8 at 0x000322070220 by thread T24: - #0 tee_next itertoolsmodule.c:936 (python.exe:arm64+0x10042f554) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Thread T21 (tid=24777590, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T24 (tid=24777593, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:942 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=80422) - Read of size 8 at 0x0003101401a0 by thread T19: - #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f650) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Previous write of size 8 at 0x0003101401a0 by thread T24: - #0 tee_next itertoolsmodule.c:939 (python.exe:arm64+0x10042f5d0) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Thread T19 (tid=24777588, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T24 (tid=24777593, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:942 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=80422) - Read of size 8 at 0x0003220702e0 by thread T19: - #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f674) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Previous write of size 8 at 0x0003220702e0 by thread T21: - #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f74c) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Thread T19 (tid=24777588, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T21 (tid=24777590, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:942 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=80422) - Write of size 8 at 0x00030292a230 by thread T18: - #0 tee_next itertoolsmodule.c:936 (python.exe:arm64+0x10042f568) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Previous read of size 8 at 0x00030292a230 by thread T24: - #0 tee_next itertoolsmodule.c:936 (python.exe:arm64+0x10042f480) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Thread T18 (tid=24777587, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T24 (tid=24777593, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:936 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=80422) - Write of size 4 at 0x0003101401a8 by thread T19: - #0 tee_next itertoolsmodule.c:945 (python.exe:arm64+0x10042f78c) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Previous write of size 4 at 0x0003101401a8 by thread T24: - #0 tee_next itertoolsmodule.c:945 (python.exe:arm64+0x10042f78c) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Thread T19 (tid=24777588, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T24 (tid=24777593, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:945 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=80422) - Read of size 4 at 0x000322070228 by thread T20: - #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f65c) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Previous write of size 4 at 0x000322070228 by thread T24: - #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f73c) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Thread T20 (tid=24777589, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T24 (tid=24777593, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:942 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=80422) - Write of size 4 at 0x0003101401a8 by thread T24: - #0 tee_next itertoolsmodule.c:945 (python.exe:arm64+0x10042f78c) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Previous write of size 4 at 0x0003101401a8 by thread T18: - #0 tee_next itertoolsmodule.c:940 (python.exe:arm64+0x10042f640) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Thread T24 (tid=24777593, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T18 (tid=24777587, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:945 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=80422) - Read of size 4 at 0x0003141b0c2c by thread T20: - #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f6c8) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Previous write of size 4 at 0x0003141b0c2c by thread T18: - #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f700) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Thread T20 (tid=24777589, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T18 (tid=24777587, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:942 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=80422) - Write of size 4 at 0x0003141b0c2c by thread T24: - #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f700) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Previous write of size 4 at 0x0003141b0c2c by thread T18: - #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f724) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Thread T24 (tid=24777593, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T18 (tid=24777587, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:942 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=80422) - Write of size 4 at 0x0003141b0c28 by thread T20: - #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f73c) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Previous write of size 4 at 0x0003141b0c28 by thread T24: - #0 tee_next itertoolsmodule.c:942 (python.exe:arm64+0x10042f73c) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2888) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #6 context_run context.c:731 (python.exe:arm64+0x1002db3dc) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100297c48) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028dc9c) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x10008fdac) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x10009155c) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x1000948ec) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x10008fa24) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x10008fa98) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044bacc) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389600) - - Thread T20 (tid=24777589, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T24 (tid=24777593, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388834) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388670) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044b89c) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044b3a8) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044a3bc) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100134d6c) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008ebb0) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008f80c) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e030) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100298c74) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4584) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c1df0) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x1002885f0) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029a600) - #15 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #16 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #17 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #18 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #19 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #20 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #21 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #22 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #23 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #24 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:942 in tee_next -================== -ThreadSanitizer:DEADLYSIGNAL -==80422==ERROR: ThreadSanitizer: SEGV on unknown address 0x00000000000b (pc 0x0001012a8c50 bp 0x00016fb69800 sp 0x00016fb697d0 T24777466) -==80422==The signal is caused by a READ memory access. -==80422==Hint: address points to the zero page. - #0 __tsan_atomic32_load (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x58c50) - #1 teedataobject_clear itertoolsmodule.c:838 (python.exe:arm64+0x10042fb88) - #2 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x10042f8fc) - #3 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) - #4 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013c8a8) - #5 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x10042fd10) - #6 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x10042f8fc) - #7 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) - #8 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013c8a8) - #9 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x10042fd10) - #10 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x10042f8fc) - #11 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) - #12 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013c8a8) - #13 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x10042fd10) - #14 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x10042f8fc) - #15 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) - #16 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013c8a8) - #17 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x10042fd10) - #18 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x10042f8fc) - #19 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) - #20 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013c8a8) - #21 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x10042fd10) - #22 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x10042f8fc) - #23 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) - #24 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013c8a8) - #25 teedataobject_clear itertoolsmodule.c:841 (python.exe:arm64+0x10042fd10) - #26 teedataobject_dealloc itertoolsmodule.c:850 (python.exe:arm64+0x10042f8fc) - #27 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) - #28 _Py_DecRefShared object.c:433 (python.exe:arm64+0x10013c8a8) - #29 tee_dealloc itertoolsmodule.c:1047 (python.exe:arm64+0x10042f274) - #30 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013c6c0) - #31 _Py_MergeZeroLocalRefcount object.c (python.exe:arm64+0x10013c940) - #32 _PyFrame_ClearLocals frame.c:101 (python.exe:arm64+0x1002fc970) - #33 _PyFrame_ClearExceptCode frame.c:126 (python.exe:arm64+0x1002fd3d0) - #34 _PyEval_FrameClearAndPop ceval.c:2014 (python.exe:arm64+0x1002aa080) - #35 _PyEval_EvalFrameDefault generated_cases.c.h (python.exe:arm64+0x1002a4e1c) - #36 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028d810) - #37 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x10036540c) - #38 run_mod pythonrun.c:1472 (python.exe:arm64+0x10036514c) - #39 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360460) - #40 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10035fbd4) - #41 pymain_run_file main.c:430 (python.exe:arm64+0x1003a25c4) - #42 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1988) - #43 pymain_main main.c:826 (python.exe:arm64+0x1003a1e6c) - #44 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a1f40) - #45 main python.c:15 (python.exe:arm64+0x100000a04) - #46 (0x00019fbc9d50) - -==80422==Register values: - x[0] = 0x000000010273d180 x[1] = 0x0000100000000010 x[2] = 0x00000000c2526578 x[3] = 0x0000000000000004 - x[4] = 0x0000000000000003 x[5] = 0x0000000000000000 x[6] = 0x0000000000000005 x[7] = 0x00000001009c8b10 - x[8] = 0x000000010273d1b4 x[9] = 0x0000000000000065 x[10] = 0x00000000c0000000 x[11] = 0x0000000000000000 -x[12] = 0x0000000112e2fd20 x[13] = 0x0000100000000010 x[14] = 0x0000000000000002 x[15] = 0x0000000000004010 -x[16] = 0x0000000000000000 x[17] = 0x00000001012f89f8 x[18] = 0x0000000000000000 x[19] = 0x000000000000000b -x[20] = 0x000000010273d180 x[21] = 0x00000001006c3b8c x[22] = 0x0000000000000000 x[23] = 0x000000000000000b -x[24] = 0x0000000000000000 x[25] = 0x0000000000000000 x[26] = 0x0000000100df4118 x[27] = 0x0000000100df4108 -x[28] = 0x00000001008bbf20 fp = 0x000000016fb69800 lr = 0x00000001012a8c44 sp = 0x000000016fb697d0 -ThreadSanitizer can not provide additional info. -SUMMARY: ThreadSanitizer: SEGV itertoolsmodule.c:838 in teedataobject_clear -==80422==ABORTING diff --git a/itt_race.py b/itt_race.py deleted file mode 100644 index 49403b2f234b6e3..000000000000000 --- a/itt_race.py +++ /dev/null @@ -1,45 +0,0 @@ -import itertools, collections -from test.support import threading_helper - -# 1) itertools.count: concurrent next() -> lost/dup increments if C fast-path unsynced -def test_count(): - c = itertools.count() - got = [] - def w(): - local = [] - for _ in range(20000): - local.append(next(c)) - got.extend(local) - threading_helper.run_concurrently(w, nthreads=8) - dup = [v for v, n in collections.Counter(got).items() if n > 1] - return f"count: total={len(got)} unique={len(set(got))} dups={len(dup)}" - -# 2) itertools.cycle: concurrent next() -def test_cycle(): - cy = itertools.cycle([1,2,3,4,5]) - errs = [] - def w(): - try: - for _ in range(20000): - next(cy) - except Exception as e: - errs.append(repr(e)) - threading_helper.run_concurrently(w, nthreads=8) - return f"cycle: errors={len(errs)} {errs[:2]}" - -# 3) itertools.tee: concurrent iteration of one branch -def test_tee(): - a, b = itertools.tee(iter(range(2_000_000)), 2) - errs = [] - def w(it): - try: - for _ in it: - pass - except Exception as e: - errs.append(repr(e)) - threading_helper.run_concurrently(w, nthreads=8, args=(a,)) - return f"tee: errors={len(errs)} {errs[:2]}" - -print(test_count()) -print(test_cycle()) -print(test_tee()) diff --git a/reentrant.py b/reentrant.py deleted file mode 100644 index dfcbfc49351d1e3..000000000000000 --- a/reentrant.py +++ /dev/null @@ -1,22 +0,0 @@ -import itertools, faulthandler, sys -faulthandler.dump_traceback_later(8, exit=True) # if it hangs 8s -> dump + kill - -# A source iterator whose __next__ re-enters the same tee branch. -class Reenter: - def __init__(self): self.n=0; self.t=None - def __iter__(self): return self - def __next__(self): - self.n += 1 - if self.n == 1 and self.t is not None: - try: - next(self.t) # re-enter the SAME tee mid-fetch - except RuntimeError as e: - print("GOT RuntimeError (expected, by-design):", e) - if self.n > 3: raise StopIteration - return self.n - -src = Reenter() -a, b = itertools.tee(src, 2) -src.t = a -print("result:", list(a)) -print("NO_DEADLOCK") diff --git a/sd2.out b/sd2.out deleted file mode 100644 index 1265a39bc0226a6..000000000000000 --- a/sd2.out +++ /dev/null @@ -1 +0,0 @@ -CHURN_DONE errors= 0 [] diff --git a/sd_race.py b/sd_race.py deleted file mode 100644 index cf6124520f050f9..000000000000000 --- a/sd_race.py +++ /dev/null @@ -1,31 +0,0 @@ -import functools -from test.support import threading_helper - -# singledispatch caches the resolved impl per argument type in an unsynchronized -# WeakKeyDictionary (dispatch_cache) with a plain nonlocal cache_token. On the -# free-threaded build, concurrent first dispatches race the cache fill/read. -# Re-arm each round by clearing the cache, then race the refill across threads. - -@functools.singledispatch -def g(x): - return 0 - -TYPES = [type(f"T{i}", (), {}) for i in range(64)] -INSTANCES = [T() for T in TYPES] - -errors = [] - -def hammer(): - try: - for obj in INSTANCES: - g(obj) # dispatch on type(obj) -> cache miss/fill/read - except Exception as e: - errors.append(repr(e)) - -for _ in range(60): - g._clear_cache() # empty cache -> next round all threads race the fill - threading_helper.run_concurrently(hammer, nthreads=16) - if errors: - break - -print("ROUNDS_DONE errors=", len(errors), errors[:3]) diff --git a/sd_race2.py b/sd_race2.py deleted file mode 100644 index 84c89c46da6da56..000000000000000 --- a/sd_race2.py +++ /dev/null @@ -1,21 +0,0 @@ -import functools -from test.support import threading_helper - -@functools.singledispatch -def g(x): - return 0 - -errors = [] -def churn(): - try: - for i in range(400): - T = type(f"X{i}", (), {}) # fresh type; dies next iter -> WeakKeyDict removal callback - g(T()) # dispatch_cache[T]=impl races with concurrent _commit_removals - except Exception as e: - errors.append(repr(e)) - -for _ in range(40): - threading_helper.run_concurrently(churn, nthreads=16) - if errors: - break -print("CHURN_DONE errors=", len(errors), errors[:5]) diff --git a/t5.out b/t5.out deleted file mode 100644 index 854008a48a7a584..000000000000000 --- a/t5.out +++ /dev/null @@ -1,5 +0,0 @@ -.. ----------------------------------------------------------------------- -Ran 2 tests in 8.402s - -OK diff --git a/tee_cross.py b/tee_cross.py deleted file mode 100644 index 175318fa4071b9f..000000000000000 --- a/tee_cross.py +++ /dev/null @@ -1,17 +0,0 @@ -import itertools -from test.support import threading_helper -# cross-branch: a,b share the same teedataobject; consume each in its own thread -errs = [] -def consume(it): - try: - for _ in it: pass - except Exception as e: - errs.append(repr(e)) -for _ in range(30): - a, b = itertools.tee(iter(range(500_000)), 2) - branches = [a, b] - def w(i=[0]): - idx = i[0]; i[0]+=1 - consume(branches[idx % 2]) - threading_helper.run_concurrently(w, nthreads=8) -print("CROSS_DONE errors=", len(errs), errs[:3]) diff --git a/tee_same.py b/tee_same.py deleted file mode 100644 index 575e02bd45f6468..000000000000000 --- a/tee_same.py +++ /dev/null @@ -1,11 +0,0 @@ -import itertools -from test.support import threading_helper -errs=[] -for _ in range(40): - a, b = itertools.tee(iter(range(300_000)), 2) - def w(): - try: - for _ in a: pass - except Exception as e: errs.append(repr(e)) - threading_helper.run_concurrently(w, nthreads=8) -print("SAME_DONE errors=", len(errs), errs[:3], flush=True) diff --git a/ts.out b/ts.out deleted file mode 100644 index 53d8f320bc8221a..000000000000000 --- a/ts.out +++ /dev/null @@ -1 +0,0 @@ -SAME_DONE errors= 0 [] diff --git a/ts2.out b/ts2.out deleted file mode 100644 index 53d8f320bc8221a..000000000000000 --- a/ts2.out +++ /dev/null @@ -1 +0,0 @@ -SAME_DONE errors= 0 [] diff --git a/tt.out b/tt.out deleted file mode 100644 index ce8220d9adcc1e2..000000000000000 --- a/tt.out +++ /dev/null @@ -1,526 +0,0 @@ -.================== -WARNING: ThreadSanitizer: data race (pid=97330) - Write of size 8 at 0x0001261a2630 by thread T1427: - #0 teedataobject_clear itertoolsmodule.c:855 (python.exe:arm64+0x10043094c) - #1 teedataobject_dealloc itertoolsmodule.c:864 (python.exe:arm64+0x1004305f4) - #2 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013cd7c) - #3 _Py_brc_merge_refcounts brc.c:131 (python.exe:arm64+0x10028bfac) - #4 _Py_HandlePending ceval_gil.c:1388 (python.exe:arm64+0x10030dfc4) - #5 _PyEval_EvalFrameDefault generated_cases.c.h:11414 (python.exe:arm64+0x100293a8c) - #6 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #7 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #8 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #9 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #10 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #11 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #12 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c7c4) - #13 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous read of size 8 at 0x0001261a2630 by thread T1426: - #0 tee_next itertoolsmodule.c:974 (python.exe:arm64+0x10042fcb8) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c7c4) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T1427 (tid=24906107, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c594) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044c0a0) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044b0b4) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #16 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #17 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #18 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #19 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #20 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #21 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) - #22 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #23 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #24 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #25 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #26 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #27 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #28 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #29 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #30 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #31 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) - #32 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #33 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #34 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #35 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #36 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #37 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #38 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) - #39 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #40 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #41 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #42 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #43 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #44 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #45 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #46 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #47 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #48 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) - #49 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #50 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #51 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #52 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #53 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #54 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #55 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) - #56 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #57 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #58 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #59 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #60 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #61 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #62 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #63 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #64 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #65 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #66 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #67 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #68 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #69 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #70 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #71 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #72 _PyEval_EvalFrameDefault generated_cases.c.h:3161 (python.exe:arm64+0x1002a6fc8) - #73 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #74 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #75 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #76 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #77 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #78 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #79 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #80 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #81 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #82 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #83 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #84 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #85 _PyObject_VectorcallDictTstate call.c:146 (python.exe:arm64+0x10008efcc) - #86 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #87 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #88 slot_tp_init typeobject.c:11175 (python.exe:arm64+0x1001b3d08) - #89 type_call typeobject.c:2484 (python.exe:arm64+0x100198d68) - #90 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #91 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #92 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #93 _PyEval_EvalFrameDefault generated_cases.c.h:3474 (python.exe:arm64+0x1002a4090) - #94 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #95 builtin_exec bltinmodule.c.h:676 (python.exe:arm64+0x1002877e8) - #96 cfunction_vectorcall_FASTCALL_KEYWORDS methodobject.c:465 (python.exe:arm64+0x1001347b8) - #97 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #98 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #99 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #100 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #101 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #102 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #103 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #104 pymain_run_module main.c:354 (python.exe:arm64+0x1003a2718) - #105 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1d70) - #106 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #107 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #108 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T1426 (tid=24906106, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c594) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044c0a0) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044b0b4) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #16 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #17 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #18 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #19 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #20 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #21 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) - #22 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #23 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #24 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #25 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #26 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #27 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #28 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #29 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #30 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #31 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) - #32 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #33 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #34 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #35 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #36 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #37 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #38 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) - #39 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #40 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #41 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #42 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #43 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #44 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #45 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #46 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #47 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #48 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) - #49 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #50 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #51 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #52 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #53 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #54 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #55 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) - #56 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #57 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #58 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #59 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #60 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #61 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #62 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #63 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #64 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #65 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #66 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #67 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #68 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #69 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #70 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #71 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #72 _PyEval_EvalFrameDefault generated_cases.c.h:3161 (python.exe:arm64+0x1002a6fc8) - #73 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #74 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #75 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #76 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #77 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #78 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #79 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #80 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #81 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #82 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #83 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #84 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #85 _PyObject_VectorcallDictTstate call.c:146 (python.exe:arm64+0x10008efcc) - #86 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #87 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #88 slot_tp_init typeobject.c:11175 (python.exe:arm64+0x1001b3d08) - #89 type_call typeobject.c:2484 (python.exe:arm64+0x100198d68) - #90 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #91 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #92 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #93 _PyEval_EvalFrameDefault generated_cases.c.h:3474 (python.exe:arm64+0x1002a4090) - #94 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #95 builtin_exec bltinmodule.c.h:676 (python.exe:arm64+0x1002877e8) - #96 cfunction_vectorcall_FASTCALL_KEYWORDS methodobject.c:465 (python.exe:arm64+0x1001347b8) - #97 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #98 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #99 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #100 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #101 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #102 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #103 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #104 pymain_run_module main.c:354 (python.exe:arm64+0x1003a2718) - #105 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1d70) - #106 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #107 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #108 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:855 in teedataobject_clear -================== -================== -WARNING: ThreadSanitizer: data race (pid=97330) - Write of size 8 at 0x0001261a2c30 by thread T1427: - #0 teedataobject_clear itertoolsmodule.c:855 (python.exe:arm64+0x10043094c) - #1 teedataobject_dealloc itertoolsmodule.c:864 (python.exe:arm64+0x1004305f4) - #2 _Py_Dealloc object.c:3319 (python.exe:arm64+0x10013cd7c) - #3 _Py_brc_merge_refcounts brc.c:131 (python.exe:arm64+0x10028bfac) - #4 _Py_HandlePending ceval_gil.c:1388 (python.exe:arm64+0x10030dfc4) - #5 _PyEval_EvalFrameDefault generated_cases.c.h (python.exe:arm64+0x100298b10) - #6 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #7 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #8 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #9 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #10 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #11 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #12 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c7c4) - #13 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous read of size 8 at 0x0001261a2c30 by thread T1426: - #0 tee_next itertoolsmodule.c:974 (python.exe:arm64+0x10042fcb8) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 _PyEval_EvalFrameDefault generated_cases.c.h:4205 (python.exe:arm64+0x100298304) - #8 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #9 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #10 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #11 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #12 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #13 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #14 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c7c4) - #15 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T1427 (tid=24906107, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c594) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044c0a0) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044b0b4) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #16 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #17 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #18 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #19 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #20 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #21 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) - #22 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #23 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #24 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #25 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #26 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #27 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #28 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #29 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #30 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #31 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) - #32 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #33 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #34 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #35 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #36 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #37 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #38 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) - #39 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #40 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #41 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #42 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #43 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #44 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #45 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #46 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #47 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #48 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) - #49 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #50 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #51 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #52 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #53 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #54 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #55 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) - #56 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #57 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #58 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #59 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #60 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #61 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #62 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #63 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #64 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #65 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #66 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #67 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #68 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #69 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #70 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #71 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #72 _PyEval_EvalFrameDefault generated_cases.c.h:3161 (python.exe:arm64+0x1002a6fc8) - #73 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #74 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #75 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #76 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #77 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #78 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #79 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #80 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #81 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #82 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #83 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #84 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #85 _PyObject_VectorcallDictTstate call.c:146 (python.exe:arm64+0x10008efcc) - #86 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #87 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #88 slot_tp_init typeobject.c:11175 (python.exe:arm64+0x1001b3d08) - #89 type_call typeobject.c:2484 (python.exe:arm64+0x100198d68) - #90 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #91 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #92 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #93 _PyEval_EvalFrameDefault generated_cases.c.h:3474 (python.exe:arm64+0x1002a4090) - #94 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #95 builtin_exec bltinmodule.c.h:676 (python.exe:arm64+0x1002877e8) - #96 cfunction_vectorcall_FASTCALL_KEYWORDS methodobject.c:465 (python.exe:arm64+0x1001347b8) - #97 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #98 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #99 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #100 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #101 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #102 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #103 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #104 pymain_run_module main.c:354 (python.exe:arm64+0x1003a2718) - #105 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1d70) - #106 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #107 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #108 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T1426 (tid=24906106, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c594) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044c0a0) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044b0b4) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 _PyEval_EvalFrameDefault generated_cases.c.h:2510 (python.exe:arm64+0x10029acbc) - #15 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #16 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #17 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #18 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #19 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #20 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #21 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) - #22 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #23 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #24 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #25 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #26 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #27 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #28 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #29 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #30 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #31 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) - #32 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #33 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #34 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #35 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #36 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #37 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #38 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) - #39 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #40 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #41 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #42 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #43 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #44 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #45 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #46 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #47 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #48 _PyEval_EvalFrameDefault generated_cases.c.h:4559 (python.exe:arm64+0x100297c3c) - #49 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #50 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #51 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #52 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #53 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #54 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #55 _PyEval_EvalFrameDefault generated_cases.c.h:2831 (python.exe:arm64+0x10029a068) - #56 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #57 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #58 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #59 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #60 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #61 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #62 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #63 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #64 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #65 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #66 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #67 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #68 _PyObject_VectorcallPrepend call.c:877 (python.exe:arm64+0x100091d18) - #69 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #70 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #71 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #72 _PyEval_EvalFrameDefault generated_cases.c.h:3161 (python.exe:arm64+0x1002a6fc8) - #73 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #74 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #75 _PyObject_VectorcallDictTstate call.c:135 (python.exe:arm64+0x10008f014) - #76 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #77 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #78 slot_tp_call typeobject.c:10937 (python.exe:arm64+0x1001a6cb4) - #79 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #80 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #81 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #82 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #83 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #84 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #85 _PyObject_VectorcallDictTstate call.c:146 (python.exe:arm64+0x10008efcc) - #86 _PyObject_Call_Prepend call.c:504 (python.exe:arm64+0x100090a68) - #87 call_method typeobject.c:3100 (python.exe:arm64+0x1001a6f08) - #88 slot_tp_init typeobject.c:11175 (python.exe:arm64+0x1001b3d08) - #89 type_call typeobject.c:2484 (python.exe:arm64+0x100198d68) - #90 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #91 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #92 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #93 _PyEval_EvalFrameDefault generated_cases.c.h:3474 (python.exe:arm64+0x1002a4090) - #94 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #95 builtin_exec bltinmodule.c.h:676 (python.exe:arm64+0x1002877e8) - #96 cfunction_vectorcall_FASTCALL_KEYWORDS methodobject.c:465 (python.exe:arm64+0x1001347b8) - #97 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #98 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #99 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #100 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #101 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #102 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #103 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #104 pymain_run_module main.c:354 (python.exe:arm64+0x1003a2718) - #105 Py_RunMain main.c:796 (python.exe:arm64+0x1003a1d70) - #106 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #107 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #108 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:855 in teedataobject_clear -================== -. ----------------------------------------------------------------------- -Ran 2 tests in 8.176s - -OK -ThreadSanitizer: reported 2 warnings diff --git a/x.out b/x.out deleted file mode 100644 index 9c28e14383c1a4b..000000000000000 --- a/x.out +++ /dev/null @@ -1 +0,0 @@ -XB_DONE errors= 0 [] diff --git a/xb.out b/xb.out deleted file mode 100644 index a156f52fcabaa12..000000000000000 --- a/xb.out +++ /dev/null @@ -1,254 +0,0 @@ -================== -WARNING: ThreadSanitizer: data race (pid=88651) - Read of size 8 at 0x000110c0ae30 by thread T3: - #0 tee_next itertoolsmodule.c:964 (python.exe:arm64+0x10042fb94) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c318) - #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous write of size 8 at 0x000110c0ae30 by thread T6: - #0 tee_next itertoolsmodule.c:964 (python.exe:arm64+0x10042fc7c) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c318) - #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T3 (tid=24821733, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0e8) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bbf4) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac08) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) - #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #27 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T6 (tid=24821736, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0e8) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bbf4) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac08) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) - #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #27 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:964 in tee_next -================== -================== -WARNING: ThreadSanitizer: data race (pid=88651) - Atomic write of size 1 at 0x0001161b280a by thread T4: - #0 tee_next itertoolsmodule.c:964 (python.exe:arm64+0x10042fd90) - #1 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #2 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #3 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #4 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #5 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #6 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #7 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #9 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #11 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #12 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #13 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #14 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #15 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #16 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #17 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c318) - #18 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Previous write of size 1 at 0x0001161b280a by thread T2: - #0 _Py_NewReference object.c:2764 (python.exe:arm64+0x10014688c) - #1 _PyObject_GC_New gc_free_threading.c:2754 (python.exe:arm64+0x100302834) - #2 tee_next itertoolsmodule.c:964 (python.exe:arm64+0x10042fbe0) - #3 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #4 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #5 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #6 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #7 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #8 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #9 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) - #10 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #11 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #12 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #13 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #14 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #15 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #16 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #17 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #18 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #19 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c318) - #20 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - - Thread T4 (tid=24821734, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0e8) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bbf4) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac08) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) - #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #27 main python.c:15 (python.exe:arm64+0x100000a04) - - Thread T2 (tid=24821732, running) created by main thread at: - #0 pthread_create (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f708) - #1 do_start_joinable_thread thread_pthread.h:281 (python.exe:arm64+0x100388ebc) - #2 PyThread_start_joinable_thread thread_pthread.h:323 (python.exe:arm64+0x100388cf8) - #3 ThreadHandle_start _threadmodule.c:475 (python.exe:arm64+0x10044c0e8) - #4 do_start_new_thread _threadmodule.c:1919 (python.exe:arm64+0x10044bbf4) - #5 thread_PyThread_start_joinable_thread _threadmodule.c:2042 (python.exe:arm64+0x10044ac08) - #6 cfunction_call methodobject.c:564 (python.exe:arm64+0x100135428) - #7 _PyObject_MakeTpCall call.c:242 (python.exe:arm64+0x10008f26c) - #8 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fec8) - #9 _Py_VectorCall_StackRefSteal ceval.c:726 (python.exe:arm64+0x10028e6ec) - #10 _PyEval_EvalFrameDefault generated_cases.c.h:3686 (python.exe:arm64+0x100299330) - #11 gen_send_ex genobject.c:374 (python.exe:arm64+0x1000c4c40) - #12 gen_iternext genobject.c:767 (python.exe:arm64+0x1000c24ac) - #13 builtin_next bltinmodule.c:1776 (python.exe:arm64+0x100288cac) - #14 cfunction_vectorcall_FASTCALL methodobject.c:449 (python.exe:arm64+0x1001346b8) - #15 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #16 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #17 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #18 PyEval_EvalCode ceval.c:679 (python.exe:arm64+0x10028decc) - #19 run_eval_code_obj pythonrun.c:1369 (python.exe:arm64+0x100365a94) - #20 run_mod pythonrun.c:1472 (python.exe:arm64+0x1003657d4) - #21 _PyRun_SimpleFileObject pythonrun.c:518 (python.exe:arm64+0x100360ae8) - #22 _PyRun_AnyFileObject pythonrun.c:81 (python.exe:arm64+0x10036025c) - #23 pymain_run_file main.c:430 (python.exe:arm64+0x1003a2c4c) - #24 Py_RunMain main.c:796 (python.exe:arm64+0x1003a2010) - #25 pymain_main main.c:826 (python.exe:arm64+0x1003a24f4) - #26 Py_BytesMain main.c:850 (python.exe:arm64+0x1003a25c8) - #27 main python.c:15 (python.exe:arm64+0x100000a04) - -SUMMARY: ThreadSanitizer: data race itertoolsmodule.c:964 in tee_next -================== -ThreadSanitizer:DEADLYSIGNAL -==88651==ERROR: ThreadSanitizer: SEGV on unknown address 0x00000000000c (pc 0x000103cb4c50 bp 0x000171062150 sp 0x000171062120 T24821734) -==88651==The signal is caused by a READ memory access. -==88651==Hint: address points to the zero page. - #0 __tsan_atomic32_load (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x58c50) - #1 tee_next itertoolsmodule.c:964 (python.exe:arm64+0x10042fe4c) - #2 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #3 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #4 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #5 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #6 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #7 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #8 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) - #9 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #10 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #11 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #12 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #13 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #14 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #15 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #16 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #17 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #18 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c318) - #19 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - #20 __tsan_thread_start_func (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f678) - #21 _pthread_start (libsystem_pthread.dylib:arm64e+0x6c04) - #22 thread_start (libsystem_pthread.dylib:arm64e+0x1ba4) - -==88651==Register values: - x[0] = 0x00000001500fc000 x[1] = 0x0000100000000010 x[2] = 0x00000000d6715ef0 x[3] = 0x0000000000000004 - x[4] = 0x0000000000000003 x[5] = 0x0000000000000000 x[6] = 0x0000000000000005 x[7] = 0x0000000000000000 - x[8] = 0x00000001500fc034 x[9] = 0x000000000000005e x[10] = 0x00000000c0000000 x[11] = 0x0000000000000000 -x[12] = 0x0000000154cbd2e0 x[13] = 0x0000100000000010 x[14] = 0x0000000000000002 x[15] = 0x0000000000004010 -x[16] = 0x0000000000000000 x[17] = 0x0000000103d049f8 x[18] = 0x0000000000000000 x[19] = 0x000000000000000c -x[20] = 0x00000001500fc000 x[21] = 0x0000000103283e50 x[22] = 0x0000000000000000 x[23] = 0x0000000000000011 -x[24] = 0x0000000000000000 x[25] = 0x00000001506f0240 x[26] = 0x0000000110c549c0 x[27] = 0x00000001506f02b8 -x[28] = 0x0000000000000003 fp = 0x0000000171062150 lr = 0x0000000103cb4c44 sp = 0x0000000171062120 -ThreadSanitizer can not provide additional info. -SUMMARY: ThreadSanitizer: SEGV itertoolsmodule.c:964 in tee_next -==88651==ABORTING diff --git a/xb.py b/xb.py deleted file mode 100644 index 858bfcee787c0f9..000000000000000 --- a/xb.py +++ /dev/null @@ -1,13 +0,0 @@ -import itertools -from test.support import threading_helper -errs=[] -for _ in range(15): - a,b = itertools.tee(iter(range(100_000)),2) - br=[a,b]; c=[0] - def w(): - i=c[0]; c[0]+=1 - try: - for _ in br[i%2]: pass - except Exception as e: errs.append(repr(e)) - threading_helper.run_concurrently(w, nthreads=6) -print("XB_DONE errors=",len(errs),errs[:3],flush=True) diff --git a/xb2.out b/xb2.out deleted file mode 100644 index fd6a593097f74b2..000000000000000 --- a/xb2.out +++ /dev/null @@ -1,40 +0,0 @@ -ThreadSanitizer:DEADLYSIGNAL -==89267==ERROR: ThreadSanitizer: SEGV on unknown address 0x00000000000c (pc 0x000104f40c50 bp 0x00016ee5e140 sp 0x00016ee5e110 T24825894) -==89267==The signal is caused by a READ memory access. -==89267==Hint: address points to the zero page. - #0 __tsan_atomic32_load (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x58c50) - #1 tee_next itertoolsmodule.c:968 (python.exe:arm64+0x10042ff3c) - #2 _PyEval_EvalFrameDefault generated_cases.c.h:6379 (python.exe:arm64+0x1002a2f44) - #3 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #4 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #5 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #6 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #7 context_run context.c:731 (python.exe:arm64+0x1002dba98) - #8 method_vectorcall_FASTCALL_KEYWORDS descrobject.c:421 (python.exe:arm64+0x1000a7798) - #9 PyObject_Vectorcall call.c:327 (python.exe:arm64+0x10008fe2c) - #10 _Py_VectorCallInstrumentation_StackRefSteal ceval.c:768 (python.exe:arm64+0x10028ee24) - #11 _PyEval_EvalFrameDefault generated_cases.c.h:1906 (python.exe:arm64+0x10029c124) - #12 _PyEval_Vector ceval.c:2171 (python.exe:arm64+0x10028e358) - #13 _PyFunction_Vectorcall call.c (python.exe:arm64+0x100090468) - #14 _PyObject_VectorcallPrepend call.c:855 (python.exe:arm64+0x100091c18) - #15 method_vectorcall classobject.c:55 (python.exe:arm64+0x100094fa8) - #16 _PyObject_Call call.c:348 (python.exe:arm64+0x1000900e0) - #17 PyObject_Call call.c:373 (python.exe:arm64+0x100090154) - #18 thread_run _threadmodule.c:388 (python.exe:arm64+0x10044c40c) - #19 pythread_wrapper thread_pthread.h:234 (python.exe:arm64+0x100389c88) - #20 __tsan_thread_start_func (libclang_rt.tsan_osx_dynamic.dylib:arm64e+0x2f678) - #21 _pthread_start (libsystem_pthread.dylib:arm64e+0x6c04) - #22 thread_start (libsystem_pthread.dylib:arm64e+0x1ba4) - -==89267==Register values: - x[0] = 0x000000010eaf8000 x[1] = 0x0000100000000010 x[2] = 0x00000000fdb92ef0 x[3] = 0x0000000000000004 - x[4] = 0x0000000000000003 x[5] = 0x0000000000000000 x[6] = 0x0000000000000005 x[7] = 0x0000000000000000 - x[8] = 0x000000010eaf8034 x[9] = 0x000000000000002e x[10] = 0x00000000c0000000 x[11] = 0x0000000000000000 -x[12] = 0x000000011595f6c8 x[13] = 0x0000100000000010 x[14] = 0x0000000000000002 x[15] = 0x0000000000004010 -x[16] = 0x0000000000000000 x[17] = 0x0000000104f909f8 x[18] = 0x0000000000000000 x[19] = 0x000000000000000c -x[20] = 0x000000010eaf8000 x[21] = 0x000000010447bf40 x[22] = 0x0000000000000000 x[23] = 0x0000000000000028 -x[24] = 0x0000000000000000 x[25] = 0x000000016ee5e150 x[26] = 0x000000016ee5e160 x[27] = 0x000000010eafc2b8 -x[28] = 0x0000000000000003 fp = 0x000000016ee5e140 lr = 0x0000000104f40c44 sp = 0x000000016ee5e110 -ThreadSanitizer can not provide additional info. -SUMMARY: ThreadSanitizer: SEGV itertoolsmodule.c:968 in tee_next -==89267==ABORTING From 0563ec980e18161ba20d429b5ef65376785c66d1 Mon Sep 17 00:00:00 2001 From: tonghuaroot Date: Sun, 5 Jul 2026 17:44:26 +0800 Subject: [PATCH 3/6] gh-153062: Keep the default build on the simple tee iteration path The free-threading snapshot and revalidation add per-element overhead on the default build, where the GIL already serializes access. Guard that path under Py_GIL_DISABLED so the default build keeps the original iteration and the free-threaded path is unchanged. --- Modules/itertoolsmodule.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index 7e3dc48d3922ec1..f9b1aafd35aa68f 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -951,6 +951,24 @@ tee_next(PyObject *op) teeobject *to = teeobject_CAST(op); PyObject *value; +#ifndef Py_GIL_DISABLED + /* The GIL already serializes access, so keep the simple path without the + snapshot and revalidation that the free-threaded build needs. */ + if (to->index >= LINKCELLS) { + PyObject *link = teedataobject_jumplink(to->state, to->dataobj); + if (link == NULL) { + return NULL; + } + Py_SETREF(to->dataobj, (teedataobject *)link); + to->index = 0; + } + value = teedataobject_getitem(to->dataobj, to->index); + if (value == NULL) { + return NULL; + } + to->index++; + return value; +#else for (;;) { teedataobject *dataobj; int index; @@ -991,6 +1009,7 @@ tee_next(PyObject *op) Py_XDECREF(link); Py_DECREF(dataobj); } +#endif } static int From 3dab9e09c3ab2aa353ef10159a50dc97df468053 Mon Sep 17 00:00:00 2001 From: tonghuaroot Date: Fri, 10 Jul 2026 09:19:20 +0800 Subject: [PATCH 4/6] gh-153062: Add a critical section to tee_copy_impl --- Modules/itertoolsmodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index f9b1aafd35aa68f..72bfab1abaf9cae 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -1028,8 +1028,10 @@ tee_copy_impl(teeobject *to) if (newto == NULL) { return NULL; } + Py_BEGIN_CRITICAL_SECTION(to); newto->dataobj = (teedataobject *)Py_NewRef(to->dataobj); newto->index = to->index; + Py_END_CRITICAL_SECTION(); newto->weakreflist = NULL; newto->state = to->state; PyObject_GC_Track(newto); From 175194b2be900d5800395be3c9d60151a7b2225e Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Thu, 9 Jul 2026 18:58:34 -0700 Subject: [PATCH 5/6] Add tee test to test_itertools.py module. --- .../test_free_threading/test_itertools.py | 88 +++++++++++++++++-- 1 file changed, 80 insertions(+), 8 deletions(-) diff --git a/Lib/test/test_free_threading/test_itertools.py b/Lib/test/test_free_threading/test_itertools.py index 670d4ca8835e0d2..7392bd739acd709 100644 --- a/Lib/test/test_free_threading/test_itertools.py +++ b/Lib/test/test_free_threading/test_itertools.py @@ -1,5 +1,14 @@ import unittest -from itertools import accumulate, batched, chain, combinations_with_replacement, cycle, permutations, zip_longest +from itertools import ( + accumulate, + batched, + chain, + combinations_with_replacement, + cycle, + permutations, + tee, + zip_longest, +) from test.support import threading_helper @@ -15,20 +24,23 @@ def work_iterator(it): class ItertoolsThreading(unittest.TestCase): - @threading_helper.reap_threads def test_accumulate(self): number_of_iterations = 10 for _ in range(number_of_iterations): it = accumulate(tuple(range(40))) - threading_helper.run_concurrently(work_iterator, nthreads=10, args=[it]) + threading_helper.run_concurrently( + work_iterator, nthreads=10, args=[it] + ) @threading_helper.reap_threads def test_batched(self): number_of_iterations = 10 for _ in range(number_of_iterations): it = batched(tuple(range(1000)), 2) - threading_helper.run_concurrently(work_iterator, nthreads=10, args=[it]) + threading_helper.run_concurrently( + work_iterator, nthreads=10, args=[it] + ) @threading_helper.reap_threads def test_cycle(self): @@ -46,28 +58,88 @@ def test_chain(self): number_of_iterations = 10 for _ in range(number_of_iterations): it = chain(*[(1,)] * 200) - threading_helper.run_concurrently(work_iterator, nthreads=6, args=[it]) + threading_helper.run_concurrently( + work_iterator, nthreads=6, args=[it] + ) @threading_helper.reap_threads def test_combinations_with_replacement(self): number_of_iterations = 6 for _ in range(number_of_iterations): it = combinations_with_replacement(tuple(range(2)), 2) - threading_helper.run_concurrently(work_iterator, nthreads=6, args=[it]) + threading_helper.run_concurrently( + work_iterator, nthreads=6, args=[it] + ) @threading_helper.reap_threads def test_permutations(self): number_of_iterations = 6 for _ in range(number_of_iterations): it = permutations(tuple(range(4)), 2) - threading_helper.run_concurrently(work_iterator, nthreads=6, args=[it]) + threading_helper.run_concurrently( + work_iterator, nthreads=6, args=[it] + ) @threading_helper.reap_threads def test_zip_longest(self): number_of_iterations = 10 for _ in range(number_of_iterations): it = zip_longest(list(range(4)), list(range(8)), fillvalue=0) - threading_helper.run_concurrently(work_iterator, nthreads=10, args=[it]) + threading_helper.run_concurrently( + work_iterator, nthreads=10, args=[it] + ) + + +class TestTeeConcurrent(unittest.TestCase): + # itertools.tee branches share a linked list of internal data cells. + # Concurrent iteration must not corrupt that shared state or crash the + # free-threaded build. A crash shows up as the interpreter dying (not as a + # caught exception); tee is documented as not thread-safe, so a + # ``RuntimeError`` from the re-entrancy guard is an allowed outcome and is + # tolerated here. + + def test_same_branch(self): + # Many threads consume the same tee branch. + errors = [] + + def consume(it): + try: + for _ in it: + pass + except RuntimeError: + pass + except Exception as e: + errors.append(e) + + for _ in range(100): + a, _ = tee(iter(range(2000)), 2) + threading_helper.run_concurrently(consume, nthreads=8, args=(a,)) + + self.assertEqual(errors, [], msg=f"unexpected errors: {errors}") + + def test_sibling_branches(self): + # Each thread consumes a different sibling branch of the same tee. + errors = [] + + def make_worker(it): + def consume(): + try: + for _ in it: + pass + except RuntimeError: + pass + except Exception as e: + errors.append(e) + + return consume + + for _ in range(100): + branches = tee(iter(range(4000)), 8) + threading_helper.run_concurrently( + [make_worker(it) for it in branches] + ) + + self.assertEqual(errors, [], msg=f"unexpected errors: {errors}") if __name__ == "__main__": From 64dcacf3e2800121a1e23336b2996011940dc2b7 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Thu, 9 Jul 2026 18:59:47 -0700 Subject: [PATCH 6/6] Delete test_itertools_tee_race.py --- .../test_itertools_tee_race.py | 58 ------------------- 1 file changed, 58 deletions(-) delete mode 100644 Lib/test/test_free_threading/test_itertools_tee_race.py diff --git a/Lib/test/test_free_threading/test_itertools_tee_race.py b/Lib/test/test_free_threading/test_itertools_tee_race.py deleted file mode 100644 index eb8ceb86d65f2af..000000000000000 --- a/Lib/test/test_free_threading/test_itertools_tee_race.py +++ /dev/null @@ -1,58 +0,0 @@ -import itertools -import unittest - -from test.support import threading_helper - - -@threading_helper.requires_working_threading() -class TestTeeConcurrent(unittest.TestCase): - # itertools.tee branches share a linked list of internal data cells. - # Concurrent iteration must not corrupt that shared state or crash the - # free-threaded build. A crash shows up as the interpreter dying (not as a - # caught exception); tee is documented as not thread-safe, so a - # ``RuntimeError`` from the re-entrancy guard is an allowed outcome and is - # tolerated here. - - def test_same_branch(self): - # Many threads consume the same tee branch. - errors = [] - - def consume(it): - try: - for _ in it: - pass - except RuntimeError: - pass - except Exception as e: - errors.append(e) - - for _ in range(100): - a, _ = itertools.tee(iter(range(2000)), 2) - threading_helper.run_concurrently(consume, nthreads=8, args=(a,)) - - self.assertEqual(errors, [], msg=f"unexpected errors: {errors}") - - def test_sibling_branches(self): - # Each thread consumes a different sibling branch of the same tee. - errors = [] - - def make_worker(it): - def consume(): - try: - for _ in it: - pass - except RuntimeError: - pass - except Exception as e: - errors.append(e) - return consume - - for _ in range(100): - branches = itertools.tee(iter(range(4000)), 8) - threading_helper.run_concurrently([make_worker(it) for it in branches]) - - self.assertEqual(errors, [], msg=f"unexpected errors: {errors}") - - -if __name__ == "__main__": - unittest.main()