Core Dump¶
Enable¶
ulimit -c unlimited
Configure Output¶
echo "%e.core.%s.%p" > /proc/sys/kernel/core_pattern
%p
- PID%%
- output one '%'%u
- UID%g
- GID%s
- Signal number%t
- UNIX timestamp%h
- Hostname%e
- Executable filename%<OTHER>
- both are dropped%<NUL>
- '%' is dropped
NOTE: Adding a pipe (|
) at the front will permit running a script or application to consume the core dump. This application runs as root
.
See core(5)
for more.