How To
Summary
Support are asking for a stacktrace or backtrace of a core file in ITNM 4.2 what do I do?
One of the processes has created a core dump and now Support are asking for a stack trace using dbx or gdb. Here are the steps you should take.
Environment
Steps
-
Check which process created the core file using the
file
command.
In the following examples, the core file name is core.15270054.01043046
$ file core.15270054.01043046
core.15270054.01043046 AIX core file fulldump AIX core file fulldump 64-bit, ncp_ctrl
The output shows that the core file was created by ncp_ctrl. -
Create a file called
/tmp/dbx.cmds
.
It should contain one line:
where corefile proc thread kthread fd map quit
-
Run this command:
dbx -c /tmp/dbx.cmds $NCHOME/precision/platform/aix5/bin/ncp_ctrl PATH_TO_CORE > /tmp/dbx.out 2>&1
Replace PATH_TO_CORE with the full path to the core file.
For example, if the full path is
/opt/IBM/tivoli/netcool/precision/PD/core/ncp_ctrl/core.15270054.01043046
then your command will look like this:
dbx -c /tmp/dbx.cmds $NCHOME/precision/platform/aix5/bin/ncp_ctrl /opt/IBM/tivoli/netcool/precision/PD/core/ncp_ctrl/core.15270054.01043046 > /tmp/dbx.out 2>&1
Remember to replacencp_ctrl
for the name of the binary that created the core dump (see step 1).
Send/tmp/dbx.out
to IBM Support.
-
Check which process created the core file using the
file
command.
In the following examples, the core file name is core.18397
$file core.18397
core.18397: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from 'ncp_virtualdomain -domain AGG_P
The output shows that the core file was created by ncp_virtualdomain. -
Create a file called
/tmp/gdb.cmds
.
It should contain one line:
where info registers thread apply all where quit
-
Run this command:
gdb -batch -x /tmp/gdb.cmds $NCHOME/precision/platform/linux2x86/bin/ncp_virtualdomain PATH_TO_CORE > /tmp/gdb.out 2>&1
Replace PATH_TO_CORE with the full path to the core file.
For example, if the full path is
/opt/IBM/tivoli/netcool/precision/PD/core/ncp_virtualdomain/core.18397
then your command will look like this:
gdb -batch -x /tmp/gdb.cmds $NCHOME/precision/platform/linux2x86/bin/ncp_virtualdomain /opt/IBM/tivoli/netcool/precision/PD/core/ncp_virtualdomaon/core.18397 > /tmp/gdb.out 2>&1
Remember to replacencp_virtualdomain
for the name of the binary that created the core dump (see step 1).
Send/tmp/gdb.out
to IBM Support.
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
22 April 2020
UID
ibm16195793