If you set an appropriate naming pattern for the
core files in
/proc/sys/kernel/core_pattern, you can at least partially solve the problem:
* set a generic filename, so that subsequent core dumps overwrite the older ones
* or set a full path to a partition that is not critical
* or set a full path to a particular directory, and have a daemon that makes use of
inotify to limit the number of files in that directory to a manageable size (even just a script that uses the
inotify-tools)
* or use a
cron job to search for and delete excess core files