import subprocess
subprocess.Popen(['python', '-c', 'import os; os.kill(os.getpid(),11)']).wait()
subprocess.Popen(['python', '-c', 'exit(-11)']).wait()
Determining if a python subprocess segmentation faults