We have answer of your question!

100% solved queries, no empty question

Question: How to generate a core dump in Linux when a process gets a segmentation fault?


0

Advertisement


I have a process in Linux that's getting a segmentation fault. How can I tell it to generate a core dump when it fails?

Question author Nathan-fellman | Source

Answer


1


Advertisement


This depends on what shell you are using. If you are using bash, then the ulimit command controls several settings relating to program execution, such as whether you should dump core. If you type

ulimit -c unlimited

then that will tell bash that its programs can dump cores of any size. You can specify a size such as 52M instead of unlimited if you want, but in practice this shouldn't be necessary since the size of core files will probably never be an issue for you.

In tcsh, you'd type

limit coredumpsize unlimited
Answer author Eli-courtwright

Advertisement


Tickanswer.com is providing the only single recommended solution of the question How to generate a core dump in Linux when a process gets a segmentation fault? under the categories i.e linux , bash , unix , coredump , tcsh , . Our team of experts filter the best solution for you.

You may also add your answer!