15.21 诊断分段错误
问题
解决方案
import faulthandler
faulthandler.enable()bash % python3 -Xfaulthandler program.pyFatal Python error: Segmentation fault
Current thread 0x00007fff71106cc0:
File "example.py", line 6 in foo
File "example.py", line 10 in bar
File "example.py", line 14 in spam
File "example.py", line 19 in <module>
Segmentation fault讨论
Last updated