IBM Support

Mustgather: Using stackit.sh to collect native stack trace data on AIX

Troubleshooting


Problem

The stackit.sh tool can be used to generate the native stack traces from core files and hung processes on AIX®. The following information details how to run stackit.sh.

Resolving The Problem

The stackit.sh script below relies on dbx being installed on the system. Please refer to MustGather: Checking if the dbx utility is installed on AIX for more information.


stackit.sh
can be run against both a core file and against a hung process:



1. Running stackit.sh against a core file:
    ./stackit.sh -mailr -e {executable} -c {core.dmp name} > stackit.out

2. Running stackit.sh against a process:

    ./stackit.sh -mailr -p {process ID} > stackit.out

The stackit.sh script

Stackit as a .txt file
stackit.txt

Stackit as a .sh file

stackit.sh

[{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Debugging Tools","Platform":[{"code":"PF002","label":"AIX"}],"Version":"5.0","Edition":"J2SE","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21222460