Unban the generation of core files
ulimit -c unlimited
Set core file generation rules
echo "/tmp/core-%e-%p-%t" >> /proc/sys/kernel/core_pattern
debugging
gdb program core
Unban the generation of core files
ulimit -c unlimited
Set core file generation rules
echo "/tmp/core-%e-%p-%t" >> /proc/sys/kernel/core_pattern
debugging
gdb program core