Skip to content

Instantly share code, notes, and snippets.

@mpage
Created May 9, 2024 19:18
Show Gist options
  • Select an option

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

Select an option

Save mpage/e07497ad8dd444a789ff306cb7996acc to your computer and use it in GitHub Desktop.
WARNING: ThreadSanitizer: data race (pid=19565)
Write of size 8 at 0x55953d1a9478 by main thread:
#0 _PyInterpreterState_SetNotRunningMain /home/runner/work/cpython/cpython/Python/pystate.c:1063:26 (python+0x58b260) (BuildId: 0f41aec1d395f115999feb2aecd3c1abdad58831)
#1 pymain_run_python /home/runner/work/cpython/cpython/Modules/main.c:652:5 (python+0x5cf22b) (BuildId: 0f41aec1d395f115999feb2aecd3c1abdad58831)
#2 Py_RunMain /home/runner/work/cpython/cpython/Modules/main.c:718:5 (python+0x5cf22b)
#3 pymain_main /home/runner/work/cpython/cpython/Modules/main.c:748:12 (python+0x5d03b9) (BuildId: 0f41aec1d395f115999feb2aecd3c1abdad58831)
#4 Py_BytesMain /home/runner/work/cpython/cpython/Modules/main.c:772:12 (python+0x5d0439) (BuildId: 0f41aec1d395f115999feb2aecd3c1abdad58831)
#5 main /home/runner/work/cpython/cpython/./Programs/python.c:15:12 (python+0x159850) (BuildId: 0f41aec1d395f115999feb2aecd3c1abdad58831)
Previous read of size 8 at 0x55953d1a9478 by thread T1:
#0 _PyThreadState_IsRunningMain /home/runner/work/cpython/cpython/Python/pystate.c:1085:25 (python+0x58cd3f) (BuildId: 0f41aec1d395f115999feb2aecd3c1abdad58831)
#1 PyThreadState_Clear /home/runner/work/cpython/cpython/Python/pystate.c:1651:5 (python+0x58cd3f)
#2 thread_run /home/runner/work/cpython/cpython/./Modules/_threadmodule.c:354:5 (python+0x6732e8) (BuildId: 0f41aec1d395f115999feb2aecd3c1abdad58831)
#3 pythread_wrapper /home/runner/work/cpython/cpython/Python/thread_pthread.h:243:5 (python+0x5b520b) (BuildId: 0f41aec1d395f115999feb2aecd3c1abdad58831)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment