当发生错误时,哪个二进制文件或代码片段在控制台上打印Segmentation fault?
最佳答案
当启用作业控制时,这就是调用 shell 的作业。用 bash 演示:
$ set +m # disable job control
$ bash -c 'kill -SEGV $$'
$ set -m # enable job control
$ bash -c 'kill -SEGV $$'
Segmentation fault (core dumped)
关于linux - 什么实际打印 "Segmentation fault"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32564735/