系统不生成core文件的原因

1. Free space is not enough. 2. The ulimit for core is set to 0 in the account where the program is running. This disables core file creation.
3. The process sets a current working directory where it does not have write permissions. Since the core file is written into the current working directory, the core file cannot be written.Note: Use the chcore or syscorepath command to avoid this failure.  
4. By default, all core files that are generated on an AIX system will have the name core. If a process is core dumping and the core file is being written, and another process terminates and attempts to write a core file in the same directory, the file core will be busy and the second process will not be able to write to the file.Note: Use the chcore or syscorepath command and unique core file naming to avoid this failure.  
5. The process has set the SA_NODUMP flag in the call to sigaction(). You would need the source code for the program to verify that this is the reason for the core dump failure.  Any program can prevent a core dump by setting this flag in a sigaction request.
6. If the suid or sgid bit is set on the executable, then it is possible that a core file will not be created. This can happen if the real user or group ID is not identical to the effective user or group ID.
7. A process attempts to write a core file into a directory where a core file already exists and the ownership and permissions on the file do not allow it to be overwritten.  
8. A process attempts to write a core file into a directory where a core file already exists. This core file is owned by another user but has write permissions enabled on either group or other. The attempt to write the new core file results in the core file being zeroed out.
9. A process traps the signal whose default action is to create a core file but does not call the abort() function to actually create the core file.
10. A process ignores a signal that would, by default, generate a core file.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值