Skip to main content

Problem:

When customer run their application with core_on_error=1 in the cobconfig.cfg file.  There may be a  problem occassionally getting more than one core file.  

Resolution:

To change the naming convention of the core file then:

On AIX 5.2 (or later), you change the name used for a core dump

file, from core, to core.. by exporting the CORE_NAMING

environment variable (to any value).

On Solaris, the 'coreadm' command allows you to configure the

format of the filename, and location, of the core file.

The 'coreadm' utility is also listed as a new feature in HP/UX

11i v3.

On Linux, you can change the name used for a core dump file,

from core, to core., via the following command (run as root):

    echo 1 > /proc/sys/kernel/core_uses_pid

and return to the default name of 'core', using:

    echo 0 >  /proc/sys/kernel/core_uses_pid

SUSE 9

sysctl -a | grep kernel.core_

kernel.core_pattern = /itdmfd1/nptmp/core.user-%u.sig-%s.exec-%e.pid-%p

kernel.core_uses_pid = 0

Old KB# 2096