On most Operating Systems, when a User Mode process crashes, a core dump file is not generated by default. The core dump file is necessary to understand why the process crashed.
Select the Operating System :
Important: In R80.x, for both Gaia 2.6.18 and 3.10 the core dump generation is enabled by default and controlled by clish “show/set core-dump” commands.
R7x Gaia OS / SecurePlatform OS 2.6
Refer to
- To enable the generation of User Mode core dump files on-the-fly:
- Enter Expert mode:
# expert
- Set the size of core dump file to 'unlimited'
# ulimit -a
# ulimit -c unlimited
# ulimit -a
Note: to disable, run 'ulimit -c 0
' command
- Make sure the following line exists and set to 1 (one) in '
/etc/sysctl.conf
' file
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
- Make sure this directory exists
/var/log/dump/usermode
If not, then create it
# mkdir -p /var/log/dump/usermode
- To enable the generation of User Mode core dump files permanently:
- Enter Expert mode:
# expert
- Enable generation of core dump files:
# um_core enable
Notes:
- to disable, run '
um_core disable
' command
- how the '
um_core
' script works :
- the '
um_core [enable|disable]
' script creates/removes a file '/etc/sysconfig/enable_cores
'
- script called '
/etc/initscript
' runs 'ulimit -c unlimited
' command, if '/etc/sysconfig/enable_cores
' exists
- Make sure the following line exists and set to 1 (one) in '
/etc/sysctl.conf
' file
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
- Make sure this directory exists:
/var/log/dump/usermode
If not, then create it
# mkdir -p /var/log/dump/usermode
# reboot
- Core dump files should be located here
/var/log/dump/usermode/ProcessName.PID.core
Refer to
- To enable the generation of User Mode core dump files on-the-fly :
- Enter Expert mode:
# expert
- Set the size of core dump file to 'unlimited'
# ulimit -a
# ulimit -c unlimited
# ulimit -a
Note: to disable, run 'ulimit -c 0
' command
- Make sure the following line exists and set to 1 (one) in '
/etc/sysctl.conf
' file
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
- Verify that the proper level of the dump is set for LKCD utility
# less -N -M /etc/sysconfig/dump
Go to the bottom of the file - the parameters and their values should be as follows
(if other numbers appear, then edit this file in Vi editor)
DUMP_ACTIVE=1
DUMPDEV=/dev/vmdump
DUMPDIR=/var/log/dump
DUMP_SAVE=1
DUMP_LEVEL=8
DUMP_FLAGS=0
DUMP_COMPRESS=0
PANIC_TIMEOUT=5
- Save the configuration for LKCD utility:
# /sbin/lkcd config
- Make sure this directory exists
/var/log/dump/usermode
If not, then create it
# mkdir -p /var/log/dump/usermode
- To enable the generation of User Mode core dump files permanently:
- Enter Expert mode:
# expert
- Set the size of core dump file to 'unlimited'
# echo 'ulimit -c unlimited' >> /etc/rc.local
Another way, is to add 'ulimit -c unlimited
' line to '/etc/rc.d/init.d/cpboot
' script
- after the line with '
/opt/CPshrd-RXX/tmp/.CPprofile.sh
'
- and before the line with '
case $1 in
'
Note: to disable, use 'ulimit -c 0
' command
- Make sure the following line exists and set to 1 (one) in '
/etc/sysctl.conf
' file
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
- Verify that the proper level of the dump is set for LKCD utility
# less -N -M /etc/sysconfig/dump
Go to the bottom of the file - the parameters and their values should be as follows
(if other numbers appear, then edit this file in Vi editor)
DUMP_ACTIVE=1
DUMPDEV=/dev/vmdump
DUMPDIR=/var/log/dump
DUMP_SAVE=1
DUMP_LEVEL=8
DUMP_FLAGS=0
DUMP_COMPRESS=0
PANIC_TIMEOUT=5
- Save the configuration for LKCD utility
# /sbin/lkcd config
- Make sure this directory exists
/var/log/dump/usermode
If not, then create it
# mkdir -p /var/log/dump/usermode
# reboot
- Core dump files should be located here
/var/log/dump/usermode/ProcessName.PID.core
RedHat Enterprise Linux OS
Refer to sk77080 - How to use GDB to get function stack from User Mode process
- To enable the generation of User Mode core dump files on-the-fly :
# ulimit -a
# ulimit -c unlimited
# ulimit -a
Note: to disable, run 'ulimit -c 0
' command
- To enable the generation of User Mode core dump files permanently :
# echo 'ulimit -c unlimited' >> /etc/rc.local
# reboot
Note: to disable, use 'ulimit -c 0
' command
- Make sure this directory exists
/var/log/dump/usermode
If not, then create it
# mkdir -p /var/log/dump/usermode
- Core dump files should be located here
/var/log/dump/usermode/ProcessName.PID.core
IPSO OS
Refer to the following articles:
Windows OS (post-Vista)
Refer to the following articles :
|
This solution is about products that are no longer supported and it will not be updated
|
Applies To:
- Run cpstat os from expert mode to determine OS base.