Question & Answer
Question
strace tusc truss: Can process system calls be tracked in UNIX ?
Answer
UNIX platforms provide a number of utilities to determine the cause of process issues using process tracing;
This example is for the MTTrapd probe on Solaris:
Tracing a running process that exits unexpectedly:-
ps -ef | grep nco_p_mttrapd
PID root .... nco_p_mttrapd
truss - fl -p PID
20805/1: Received signal #15, SIGTERM, in sigsuspend() [default]
20805/1: siginfo: SIGTERM pid=20787 uid=0
20805/1: sigsuspend(0xFFBEF748) Err#4 EINTR
20805/1: *** process killed ***
In this case the process was killed with -15 by user 0 (root) by process 20787.
The command truss on other platforms are trace on Linux/AIX and tusc on HP-UX.
Linux/AIX also have strace as a discrete product.
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21292314