0

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

Thanks!

Svisstack
  • 236
  • 5
  • 12

2 Answers2

2

There is no difference between daemons and normal programs in the core dumping behavior. You just need to change the core limit: ulimit -c unlimited Make sure it is set unlimited with ulimit -c. To check if you have the right to change the core limit, run: ulimit -Hc.

To keep the core dump configuration for an user either change /etc/security/limits.conf or add into .bash_profile of the user: ulimit -c unlimited.

/etc/security/limits.conf allows you to change the limits for all users. This file is read by pam library when the users login on services that uses pam (login, ssh, pop3, etc.). The format of the file is documented in man -S5 limits.conf.

# Users that are members of coredump group have the core dump limit removed.
@coredump               soft    core            unlimited
# user joe can dump a core of maximum 100MB
#joe                    soft    core            102400
Mircea Vutcovici
  • 17,619
  • 4
  • 56
  • 83
1

default action for SIGQUIT is to generate core image. Thus just kill -3 the process of interest.

yrk
  • 2,487
  • 17
  • 22