Erlang: how to disable “crash dump” & “core dump” generation?

北城以北 提交于 2019-12-06 04:14:37

问题


Is there any way to disable the generation of "crash dump" & "core dump" files when running 'erl' ?

PS: I know about the "+d" option of erl but I want to completely disable the generation of crash/core dumps.


回答1:


If you are into dirty patching, you can insert a return statement right at the top of the erl_crash_dump_v function in break.c, and recompile.




回答2:


You may also set the ERL_CRASH_DUMP environment variable to "/dev/null". It designates to which file the crash dump should be written.

See: https://github.com/yrashk/erlang/blob/e1282325ed75e52a98d58f5bd9fb0fa27896173f/erts/emulator/beam/break.c#L684



来源:https://stackoverflow.com/questions/1412365/erlang-how-to-disable-crash-dump-core-dump-generation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!