IBM Support

How to get useful information from a core file for Support.

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

These instructions require specific debug tools being installed.
For AIX use the command line tool called dbx
For Linux use gdb.

Steps

AIX
  1. 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.

  2. Create a file called /tmp/dbx.cmds.
    It should contain one line:
    where corefile proc thread kthread fd map quit

  3. 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 replace ncp_ctrl for the name of the binary that created the core dump (see step 1).
    Send /tmp/dbx.out to IBM Support.

Linux
  1. 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.

  2. Create a file called /tmp/gdb.cmds.
    It should contain one line:
    where info registers thread apply all where quit

  3. 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 replace ncp_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

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSSHRK","label":"Tivoli Network Manager IP Edition"},"ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"4.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
22 April 2020

UID

ibm16195793