* Re: Something is killing my process - how to find out what it is
2005-10-28 16:43 Something is killing my process - how to find out what it is banzai
2005-10-28 19:23 ` Ann Majeske
@ 2005-10-30 5:27 ` Michael Paoli
1 sibling, 0 replies; 3+ messages in thread
From: Michael Paoli @ 2005-10-30 5:27 UTC (permalink / raw)
Gather some information and start narrowing the possibilities.
Capture the exit value of the process that's presumably getting
signaled. If the process isn't capturing the signal, or is using that
signal in setting its exit value, the exit value may help determine
what "signal" caused the process to be terminated. If it appears to be
a signal that could be generated automagically by the system on
certain program errors (e.g. SIGSEGV), then it may be a but in the
program, rather than some other process signaling it (e.g. the kernel
is
zapping it when it tries to do something illegal).
If the timing is rather predictable, gather some information on
processes running around that time. With suitable triggering on
capturing the exit value of the process, it should be possible to grab
a
snapshot of processes right after the process exits. If you're running
process accounting, you should also be able to determine what processes
may have exited shortly before that (e.g. in case one of them signaled
it).
Look for likely suspect processes - if the process is getting signaled,
the signal would come from a process (possibly including itself) with
the same EUID, or EUID of 0. Check the documentation for the details
on
RUID/EUID/SSUID and signaling capabilities if necessary.
If you have and enable audit capabilities you may be able to determine
precisely what signaled it and when.
If you have utilities truss, strace, tusc, or equivalent, you may be
able to run a relevant trace to determine exactly why the process
exited, and to potentially trace suspect processes that may be
signaling
it.
banzai wrote:
> Any ideas on the best way to monitor a daemon/process 'A' that is being
> killed by another process 'B' which is unknown ?
> I have v4.0f with collect utility and the process A dies at approximately
> the same time each day - the process A does not die itself - i'm quite sure
> it is receiving a signal from something (on the same system i.e. not
> remotely/rexec/rsh etc) else - process B. But it happens so quickly I can't
> trap/find out what is going on. Collect doesn't seem to be able to track
> this (from what I have seen).
^ permalink raw reply [flat|nested] 3+ messages in thread