4

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
  • May I ask why? What's the big deal?
    – rfunduk
    Oct 6, 2009 at 16:04

2 Answers 2

8

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

1
  • The above answer worked for me, can you suggest how to disable MnesiaCore file as well?
    – Mithun B
    May 22, 2017 at 10:18
1
+100

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
  • 1
    Thanks for the suggestion but I would rather have this work out of the box: I don't want to have to maintain another distro.
    – jldupont
    Sep 13, 2009 at 11:18
  • I'm pretty sure you either do this, or write a nice wish letter to the erlang development mailing list :) Anyway, I would love to be proven wrong.
    – Zed
    Sep 15, 2009 at 17:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.