阅读背景:

C程序如何在不终止的情况下生成自己的核心转储?

来源:互联网 

I want a C program to produce a core dump under certain circumstances. This is a program that runs in a production environment and isn't easily stopped and restarted to adjust other kinds of debugging code. Also, since it's in a production environment, I don't want to call abort(). The issues under investigation aren't easily replicated in a non-production environment. What I'd like is for the program, when it detects certain issues, to produce a core dump on its own, preferably with enough information to rename the file, and then continue.I want a C program to produce a core dump under




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: