Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How make Linux core dumping for every process not only for deaemons?

share|improve this question

you need to change these

check your current core limit with ulimit

root@x:/tmp# ulimit -c

0 means no core is generated

root@x:/tmp# ulimit -c unlimited

set it to unlimited or any other value (this is max size of core file)

root@x:/tmp# ulimit -c

root@x:/tmp# ulimit -a
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 20
file size               (blocks, -f) unlimited
pending signals                 (-i) 16382
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) unlimited
v    irtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

This will change core limit for current session. You need to add this in /etc/init.d [file name depends on distribution] so that these values are set when computer boots.

share|improve this answer
But dump is created only for daemons not for normal processes based on my knowledge and… – Svisstack Jan 9 '12 at 15:36
No, coredump can be generated by any process. – daya Jan 9 '12 at 15:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .