If the first character of the pattern is a '|', the kernel will treat the rest of the pattern as a command to run. The core dump will be written to the standard input of that program instead of to a file.
The default core_pattern is:
|/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e
So we instead put core.%p into the file so we get a core file.
echo "core.%p" > /proc/sys/kernel/core_pattern
put ulimit -c unlimited into your .bashrc
No comments:
Post a Comment