segmentation fault

How do you debug a Python segmentation fault?

Most Python exceptions come with a useful traceback, but a segmentation fault simply ends the process with a message like "Segmentation fault (core dumped)." When this happens, what…