IBM Support

Investigating probe processes that exit unexpectedly

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.

[{"Product":{"code":"SSSHTQ","label":"Tivoli Netcool\/OMNIbus"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Netcool\/OMNIbus","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"7.4.0;7.3.1;7.3.0;8.1.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 June 2018

UID

swg21292314