#687·viztracer

snaptrace_threaddestructor 在解释器完成后调用 PyGILState_Ensure(), 导致 SIGSEGV

作者: jakezur2创建于 2026年8月13日更新于 2026年8月13日

#0 0x... in ??() from libpython3.12.so.1.0 <- consistent with new_threadstate #1 0x... in ??() from libpython3.12.so.1.0 <- consistent with PyGILState_Ensure #2 snaptrace_threaddestructor (key=0x...) at src/viztracer/modules/snaptrace.c:285 #3 snaptrace_threaddestructor (key=0x...) at src/viztracer/modules/snaptrace.c:281 #4 0x... in ??() from libc.so.6 <- pthread TLS destructor sweep #5 0x... in ??() from libc.so.6 #6 0x... in ??() from libc.so.6 <- thread exit

内容来源: gaogaotiantian/viztracer