參考:https://stackoverflow.com/questions/13403824/empty-core-dump-file-after-segmentation-fault
1.受限要開啟coredump的大小限制。ulimit -c unlimited
2.core文件不能在掛在分區生成,必須放到本地分區上。
If you run the core file in a mounted drive.The core file can't be written to a mounted drive but must be written to the local drive.
https://stackoverflow.com/questions/13403824/empty-core-dump-file-after-segmentation-fault