The following scripts can be used to collect backtrace from hanged processes using GDB.
How it works?
- Edit
trace.sh
and modify theexename
variable with the one used. - Run script as
./trace.sh JOB_ID
. In this case,JOB_ID
is the job id provided by the job schedular. - The script will trigger
trace_cmd.sh
and collect trace.
Limitations
- The
trace.sh
script is designed to run with openPBS job schedular.