Is it possible to disable crash dump files?

조회 수: 3 (최근 30일)
Benjamin Weber
Benjamin Weber 2013년 11월 28일
답변: Philip Borghesani 2016년 6월 20일
Hi
I am using matlab-7.14r2012a on a Linux setup and I am running compiled Matlab code. I want to avoid that Matlab creates crash dump files in my home directory. Normally, Matlab creates a $HOME/matlab_crash_dump.XXXX whenever it crashes. I tried redirecting the dump using the "-R -logfile -R filename " option at compile time which works fine but the crash dump is not redirected but duplicated, meaning that the content of matlab_crash_cump.XXXX is appended to filename . Is it possible to completely redirect the crash dump or even disable it?
Regards
PS: I know that it would be better to locate the reason for the crash, I am on it but the program is rather large so it takes a lot of time.
  댓글 수: 2
Pratul Chauhan
Pratul Chauhan 2016년 6월 9일
Dear Benjamin Did you manage to find the solution, I am having an exact issue like you.
Benjamin Weber
Benjamin Weber 2016년 6월 20일
Hi Pratul. I did not really find a solution, just a workaround. Ever since posting this question I have been using a cronjob to periodically delete the dump files (as Jan suggested, too). However, for me this is only a work around as the real issue is actually high file server load when hundreds of Matlab processes crash simultaneously (I use condor to run tons of jobs simultaneously) and, hence, hundreds of dump files get written concurrently.

댓글을 달려면 로그인하십시오.

답변 (2개)

Jan
Jan 2016년 6월 9일
Crash dump files can contain sensitive information. They should be created reliably even if the code does not run as expected. Therefore the home directory is the best location to store these files in.
I'm using a cron job to remove all but the last dumb file.

Philip Borghesani
Philip Borghesani 2016년 6월 20일
There may be a way for you to disable the crash dump files for your tasks, I suggest contacting support directly. The methods of controlling what, when and where crash dump files are created very with MATLAB versions.

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by